Smeets
2 months agoComet
AccountMetrics - Cannot query field "tunnelAge" on type "Metrics"
We would like to query connectivity metrics using the accountMetrics API. This works as expected for metrics such as bytesUpstream, bytesDownstream. However, it fails for some other metrics such as t...
- 2 months ago
Hello Smeets,
The request doesn't work because tunnelAge is not defined in the API schema as a valid metric for that part of the request. The valid metrics are visible here: https://api.catonetworks.com/documentation/#definition-Metrics
Not being defined in the schema usually means that it was a deliberate decision, so if you would like to see this metric there, you can submit an RFE via Cato Support to ask for it to be added.
tunnelAge is available as a timeseries metric (which is a different part of the schema), so that might get you going in the meantime?