Skip to content

Instantly share code, notes, and snippets.

@shairyar
Created May 16, 2024 07:07
Show Gist options
  • Save shairyar/b696ce00b12b30e9129a5076f8135874 to your computer and use it in GitHub Desktop.
Save shairyar/b696ce00b12b30e9129a5076f8135874 to your computer and use it in GitHub Desktop.
List of actions with throughput
query PaginatedMetricsListQuery($appId: String!, $timeframe: TimeframeEnum, $query: [MetricAggregation!]!, $limit: Int, $offset: Int) {
app(id: $appId) {
id
metrics {
list(
query: $query
timeframe: $timeframe
limit: $limit
offset: $offset
) {
start
end
total
rows {
id
name
fields {
key
value
}
}
}
}
}
}
@shairyar
Copy link
Author

Query variables

{
  "appId": "YOUR-APP-ID",
  "timeframe": "R30D",
  "query": [
    {
      "name": "transaction_duration",
      "tags": [
        {
          "key": "action",
          "value": "*"
        },
        {
          "key": "namespace",
          "value": "*"
        }
      ],
      "fields": [
        {
          "field": "COUNT",
          "aggregate": "SUM"
        }
      ]
    }
  ],
  "offset": 0,
  "limit": 50
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment