Query System Point Metrics (v2.0)
POST/v2.0/api/tenants/:tenant_id/monitor/sys_point_metrics
Query the details of the system point metrics.
Request
Path Parameters
ID of the tenant.
- application/json
Body
Query request for getting sysmetrics
- Array [
- ]
The end time of the point metrics query. End times need to be specified in ISO8601 UTC format.
filter Filter
Filters according to the specifications.
Elements of the filter.
Path of the filter.
Site of the filter.
Type of the filter.
Wn Path
Possible values: [10sec
, 1min
, 5min
, 1hour
, 1day
, 1month
]
The interval time.
metrics Metrics[]
The details of the point metric. Metrics need to specified according to 2.0 specifications. Invalid metrics will be ignored and the result will not include them.
Name: Required(error = REQUIRED_PROPERTY: Schema check failed - {} is a required property) Pattern(error = INVALID_FILTER: Schema check failed - Invalid value for param {}, regexp = ^[A-Za-z]+$)
Statistics: Required(error = REQUIRED_PROPERTY: Schema check failed - {} is a required property)
Unit: Required(error = REQUIRED_PROPERTY: Schema check failed - {} is a required property) Pattern(error = INVALID_FILTER: Schema check failed - Invalid value for param {}, regexp = ^[A-Za-z]+$)
The name of the point metric. Maz size = 128.
The start time to get the point metrics. Start times need to be specified in ISO8601 UTC format.
view View
View
Possible values: [ELEMENT
, INTERFACE
, CELLULAR_MODULE
, DIRECTION
, SITE
, APP
, PATH
, PATH_TYPE
, WANINTERFACE
, PRIORITY
, TRAFFIC_TYPE
, COMMON
, CLIENT_MAC_ADDRESS
, USER
, USER_EMAIL
, RESOLUTION_QUALITY
, None
]
The individual view values.
The summary of the view.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
The time period of the query interval.
The details of the point metric. Metrics need to specified according to 2.0 specifications. Invalid metrics will be ignored and the result will not include them.
The start time to get the point metrics. Start times need to be specified in ISO8601 UTC format.
view View
The individual and summary views.
Possible values: [ELEMENT
, INTERFACE
, CELLULAR_MODULE
, DIRECTION
, SITE
, APP
, PATH
, PATH_TYPE
, WANINTERFACE
, PRIORITY
, TRAFFIC_TYPE
, COMMON
, CLIENT_MAC_ADDRESS
, USER
, USER_EMAIL
, RESOLUTION_QUALITY
, None
]
The individual view values.
The summary of the view.
{
"interval": "string",
"metrics": {},
"start_time": "2024-07-29",
"view": {
"individual": "ELEMENT",
"summary": true
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_REQUEST_ERROR_0001"
},
{
"code": "SCHEMA_MISMATCH"
},
{
"code": "METRIC_NOT_SUPPORTED"
},
{
"code": "FUTURE_TIME_ERROR"
}
]
}
}