Skip to content

Environment Monitor REST API

YagelNasManit edited this page Sep 8, 2017 · 14 revisions

Environment monitor REST API

  1. Monitor Configuration
  2. Current environment status
  3. Aggregated environment status
  4. Resource status over time

1. Monitor Configuration

Description

Service enables monitor users to retrieve information regarding active environment.monitor environments and resource that are checked.

Request

URI: /config/environments

Supported operations: GET

Headers

Accept: application/json

Response

Returns list of current active environments along with resources checked for each particular environment.

Example

GET http://{hostname}/config/environments

2. Current environment status

Description

Service returns results of latest environment checks for all active environments or single environment passed as path variable.

Request

URI: /environment/status/current

Supported operations: GET

Headers

Accept: application/json

Response

Returns list of current active environments along with resources checked for each particular environment.

Available parameters

Name Type Obligation Details
environmentName String optional environmentName as defined in EnvMonitor.xml

Example

GET http://{hostname}/environment/status/current

GET http://{hostname}/environment/status/current/{environmentName}

3. Aggregated environment status

Description

Service returns results of environment checks summarized by resource and status.

Request

URI: /environment/status/aggregated

Supported operations: GET

Headers

Accept: application/json

Response

Resulting list of environment checks summarized by resource and status.

Available parameters

Name Type Obligation Details
environmentName String mandatory environmentName as defined in EnvMonitor.xml
resources String optional comma separated list of resource id's to aggregate data defined in EnvMonitor.xml
startDate ISO Date mandatory ISO formatted aggregation timeframe start
endDate ISO Date mandatory ISO formatted aggregation timeframe end

Example

GET http://{hostname}/environment/status/aggregated/dev?startDate=2017-08-26T21:00:00.000Z&endDate=2017-08-27T19:56:03.834Z

4. Resource status over time

Description

Service returns resource check results for particular period

Request

URI: /resource/status

Supported operations: GET

Headers

Accept: application/json

Response

Returns list of resource check results for particular period.

Available parameters

Name Type Obligation Details
resource String optional resource id as defined in EnvMonitor.xml
startDate ISO Date mandatory ISO formatted aggregation timeframe start
endDate ISO Date mandatory ISO formatted aggregation timeframe end

Example

GET http://{hostname}/resource/status/dev/resource1?startDate=2017-08-26T21:00:00.000Z&endDate=2017-08-27T19:58:23.084Z