Created
July 25, 2022 12:43
-
-
Save shairyar/a0e31a4b2fcedacf011d9cad89247c1e to your computer and use it in GitHub Desktop.
Query to help fetch object count for each action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query PaginatedMetricsListQuery( | |
$appId: String!, | |
$start: DateTime, | |
$end: DateTime, | |
$timeframe: TimeframeEnum, | |
$query: [MetricAggregation!]! | |
$limit: Int, | |
$offset: Int | |
){ | |
app(id: $appId) { | |
id | |
metrics { | |
list(start: $start, end: $end, query: $query, timeframe: $timeframe, limit: $limit, offset: $offset, ) { | |
start | |
end | |
total | |
rows { | |
id | |
name | |
tags { | |
key | |
value | |
} | |
fields { | |
key | |
value | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
query params