/metric/{metric_name}/timeseries
DevelopingGET
/metric/{metric_name}/timeseriesLast modified: 2 months ago
Returns a timeseries for the metric supplied in the URL.
Request
Path Params
metric_name
string
required
Query Params
from
string
required
Timestamp. Example: 1588603852.
until
string
optional
Timestamp. Example: 1588690252.
resolution
string
optional
Resolution of results in seconds. Should be a multiple of 600. Defaults to 600 if not supplied. Example: 600.
max_graph_width
string
optional
Automatically determines the best resolution for the specified graph width. This parameter takes precedence over any value specified as "resolution". Example: 1000.
format
string
optional
Outputs CSV format if specified. Otherwise defaults to JSON. This parameter is for debug purposes and is not guaranteed to remain available. Example: csv.
Request samples
Responses
An example Response(200)
An example Response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"status": {
"created_timestamp": 1657637341,
"created_string": "Tue 12 Jul 2022 @ 14:49 (UTC)",
"duration": 4.639,
"language": "en-gb",
"timezone": {
"timezone_type": 3,
"timezone": "UTC"
},
"code": 200,
"oldest_cached_component_age": 352,
"session_id": "103bfbd9f2cdd43fe809104eefc713f7",
"org_onboarding_status_id": 300,
"api_host": "api-stage.anomify.ai",
"user_onboarding_flags": {
"main_intro": true,
"alerts_intro": false,
"alerts_from_search": false,
"training_intro": false,
"alert_created": true,
"test_alert_sent": true,
"two_alerts_sent": true,
"pattern_trained": true
}
},
"data": {
"1605047400": {
"yhat_lower": 16.744999999999997,
"yhat_real_lower": 16.744999999999997,
"yhat_upper": 16.744999999999997
},
"1605048000": {
"3sigma_upper": 18.12899999999999,
"yhat_lower": 13.977000000000002,
"yhat_real_lower": 13.977000000000002,
"yhat_upper": 19.03544999999999
},
"1605048600": {
"3sigma_upper": 18.828284133902464,
"yhat_lower": 11.836382532764196,
"yhat_real_lower": 11.836382532764196,
"yhat_upper": 19.769698340597586
},
"1605049200": {
"3sigma_upper": 19.65042622402243,
"yhat_lower": 11.934573775977565,
"yhat_real_lower": 11.934573775977565,
"yhat_upper": 20.63294753522355
},
"1605049800": {
"3sigma_upper": 20.364235910167864,
"yhat_lower": 9.912564089832136,
"yhat_real_lower": 9.912564089832136,
"yhat_upper": 21.382447705676256
},
"1605050400": {
"3sigma_upper": 21.09623354734709,
"yhat_lower": 7.800099785986239,
"yhat_real_lower": 7.800099785986239,
"yhat_upper": 22.151045224714444
},
"1605051000": {
"3sigma_upper": 20.884002977991734,
"yhat_lower": 7.198568450579691,
"yhat_real_lower": 7.198568450579691,
"yhat_upper": 21.928203126891322
}
}
}
Last modified: 2 months ago