/monitor
Mount Point: /api/monitor
POST
Creates a monitor. If you provide a monitor with a blank or null ID then an ID will be generated
Request Body
| element: | monitor |
| media types: | */* application/xml |
The MonitorDTO to create
Response Body
| element: | monitor |
| media types: | application/json |
Will return CREATED HTTP response if successful
Status Codes
| HTTP Status Code | Description |
|---|---|
| 200 OK | OK |
| 404 Not Found | Not found - see returned ExceptionDTO |
| 400 Bad Request | Bad request - see returned ExceptionDTO |
| 401 Unauthorized | Authentication required. |
| 403 Forbidden | Authorization required - access forbidden |
PUT
Updates an existing monitor. The severity level must be one of the allowable severity levels.
Request Body
| element: | monitor |
| media types: | */* application/xml |
The MonitorDTO to update (should have the correct ID and be well-formed)
Response Body
| element: | monitor |
| media types: | application/json |
Will return OK HTTP response if successful
Status Codes
| HTTP Status Code | Description |
|---|---|
| 200 OK | OK |
| 404 Not Found | Not found - see returned ExceptionDTO |
| 400 Bad Request | Bad request - see returned ExceptionDTO |
| 401 Unauthorized | Authentication required. |
| 403 Forbidden | Authorization required - access forbidden |