Getting metric values for ServiceID
Request URL
Request
{
"serviceId" : "eyduYW1lJzonbm9kZS1hcHAtMicsJ3RlYW1JRCc6JzU5ZWRkZDE1LTIwMjQtNDA1OS05OGFlLTc5YTJjZTViYTEzNCcsJ3R5cGUnOidBJ30=.1",
"metricName" : "Endpoint load",
"scope" : "endpoint",
"scopeId" : "eyduYW1lJzonamF2YS1kZW1vLWVycm9yY29kZTMnLCd0ZWFtSUQnOjI5MzEyYjliLTJhMDctNDhiMy1hYTZmLWNmZTVmZjg1ZGY2OSwndHlwZSc6J0EnfQ==.1_L2FwaXMxL2N1cnJlbmF0LzEyMw==",
"duration" : {
"start" : "2023-02-01T09:00",
"end" : "2023-03-01T09:00"
},
"timezone" : "GMT"
}
Parameters | Description |
---|---|
serviceId | serviceId for which metrics are required given by /api/v1/services |
metricName | metricName for which values are required given by /api/v1/metrics |
scope | instance type for which metric values are required |
scopeId | scopeId of the given scope for which metric values are required given by /api/v1/entities |
start | start time of the metric values required |
end | end time of the metric values required |
timezone | timezone for which metric values are required |
timeStamp | time at which the metric value occurred |
Response
{
"message": "1 record(s) found",
"success": true,
"data": {
{
"values": [
{
"timeStamp": "2023-02-01T09:00",
"value": "4"
}
]
}
}
}