- Home
- API Enriched
- Observability
- observability
- GET Monitor History.
GET Monitor History.
const url = 'https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/observability/synthetic_monitor/namespaces/example/monitor-history';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example-corp.console.ves.volterra.io/api/v1/api/production/us-east-1/namespaces/default/api/observability/synthetic_monitor/namespaces/example/monitor-history \ --header 'Authorization: <Authorization>'Returns the healthy and critical statuses for the specified monitor.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Namespace Request namespace.
Query Parameters
Section titled “Query Parameters”Monitor_type. X-required Monitor type.
Start_time. X-required Start time for requested history.
End_time. End time for requested history (default: current time)
Step_size. Step size for time series aggregation.
Monitor_name. X-required Monitor name.
Responses
Section titled “Responses”A successful response.
Health history data for monitor by region.
object
: { “segment”: [ { “start_time”: “2023-01-10T18:00:00Z”, “end_time”: “2023-01-14T18:00:00Z”, “health”: “Healthy”, “health_reason”: “HTTP(s) Monitor was 4.0 day(s) in Healthy state” }, { “start_time”: “2023-01-14T18:00:00Z”, “end_time”: “2023-01-15T00:00:00Z”, “health”: “Critical”, “health_reason”: “HTTP(s) Monitor was 6.0 hour(s) in Critical state” }, … ], “source”: “Global”, “provider”: "" } A list of the monitor history event segments.
Monitor health history by region.
object
Region provider.
{ “start_time”: “2021-02-07T23:32:07Z”, “end_time”: “2021-02-25T16:00:00Z”, “health”: “Critical”, “health_reason”: “HTTP(s) Monitor was 17.7 day(s) in critical state” }, { “start_time”: “2021-02-25T16:00:00Z”, “end_time”: “2021-07-10T08:00:00Z”, “health”: “Healthy”, “health_reason”: “HTTP(s) Monitor was 11.2 day(s) in Healthy state” }, … ] List of monitor history health segments.
object
End time of requested history segment (default: current time)
Monitor health.
Description of health status.
Start time of requested history segment.
Region
Examplegenerated
{ "histories": [ { "provider": "example", "segments": [ { "end_time": "example", "health": "example", "health_reason": "example", "start_time": "example" } ], "source": "example" } ]}Returned when operation is not authorized.
Examplegenerated
exampleReturned when there is no permission to access resource.
Examplegenerated
exampleReturned when resource is not found.
Examplegenerated
exampleReturned when operation on resource is conflicting with current value.
Examplegenerated
exampleReturned when operation has been rejected as it is happening too frequently.
Examplegenerated
exampleReturned when server encountered an error in processing API.
Examplegenerated
exampleReturned when service is unavailable temporarily.
Examplegenerated
exampleReturned when server timed out processing request.
Examplegenerated
example