Get CPU target for one or more services

GET {{baseUrl}}/metrics/cpu-target?startTime=<dateTime>&endTime=<dateTime>&resolutionSeconds=60&service=<string>&instance=<string>

Request Params

KeyDatatypeRequiredDescription
startTimestringEpoch/Unix timestamp of end of time range to return. Defaults to now() - 1 hour.
endTimestringEpoch/Unix timestamp of end of time range to return. Defaults to now().
resolutionSecondsnumberThe resolution of the returned data
servicestring(Required) Service ID to query. When multiple service query params are provided, they are ORed together
instancestringInstance ID to query. When multiple instance ID query params are provided, they are ORed together

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

[{&quot;labels&quot;:[{&quot;field&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;},{&quot;field&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;}],&quot;values&quot;:[{&quot;timestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;value&quot;:&quot;\u003cnumber\u003e&quot;,&quot;unit&quot;:false},{&quot;timestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;value&quot;:&quot;\u003cnumber\u003e&quot;,&quot;unit&quot;:-88035325}],&quot;unit&quot;:&quot;\u003cstring\u003e&quot;},{&quot;labels&quot;:[{&quot;field&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;},{&quot;field&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cstring\u003e&quot;}],&quot;values&quot;:[{&quot;timestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;value&quot;:&quot;\u003cnumber\u003e&quot;,&quot;unit&quot;:true},{&quot;timestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;value&quot;:&quot;\u003cnumber\u003e&quot;,&quot;unit&quot;:-1664528}],&quot;unit&quot;:&quot;\u003cstring\u003e&quot;}]