Download OpenAPI specification:Download
Alarm management endpoints for Monitoring as a Service by IONOS Cloud.
Monitoring as a Service (or just MaaS) is a PaaS service by IONOS Cloud. It is a complimentary “always-on” service that is provided to all compute instances (public cloud servers as well as IONOS Cloud Cubes). “Always-on” means that the user can start using the service directly after provisioning a virtual instance, without the need to select any options or configure additional properties.
What’s more, MaaS is readily available for the already-provisioned VMs, without requiring additional software or any changes to running virtual instances.
The “always-on” monitoring service collects instance metrics and provides options to set up threshold-based alarms and triggers for further actions. Monitoring as a Service currently supports email actions; additional action types will be added in future versions.
The Monitoring API can be used to manage (create/read/update/delete) monitoring alarms and actions.
Manage a reusable set of Actions. An Action can be assigned to an arbitrary number of Alarms.
This operation is restricted to contract owner, admin, and users with 'accessAndManageMonitoring' and Share/Edit access permissions for the data center, hosting the VM.
List all Actions for a particular contract.
depth | number Default: "0" Controls the detail depth of the response objects.
|
orderBy | string Default: "createdDate" Enum: "createdDate" "lastModifiedDate" Define the property to be used for ordering the returned list. |
{- "id": "actions",
- "type": "collection",
- "href": "",
- "items": [
- {
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "action",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "Name of the Action",
- "type": "EMAIL",
- "typeProperties": {
- "emailTo": "user@domain.com"
}, - "executions": [
- "615d1585-c6cd-4173-aca4-e18b243fd610"
]
}, - "entities": {
- "executions": {
- "id": "executions",
- "type": "collection",
- "href": "",
- "items": [
- {
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "execution",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "actionId": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "actionLastModifiedDate": "2021-07-14T13:34:21Z",
- "alarmTransitionId": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "date": "2021-07-14T13:34:21Z",
- "message": "Email sent to \"user@cloud.ionos.com\" with MessageID \"abed6adc-cce2-4472-8932-728667fbc4e4\"",
- "state": "SUCCESS"
}
}
]
}
}
}
]
}
Create an Action that can be assigned to an arbitrary number of Alarms.
"name" must not be null or blank
"type" must be of a valid type (EMAIL)
"typeProperties.emailTo" must be a well-formed email address that is not null or blank
The Action to be created. Please see the description section above for the required request body attributes.
object Properties of the resource. |
{- "properties": {
- "name": "Name of the Action",
- "type": "EMAIL",
- "typeProperties": {
- "emailTo": "user@domain.com"
}
}
}
{- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "action",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "Name of the Action",
- "type": "EMAIL",
- "typeProperties": {
- "emailTo": "user@domain.com"
}, - "executions": [
- "615d1585-c6cd-4173-aca4-e18b243fd610"
]
}, - "entities": {
- "executions": {
- "id": "executions",
- "type": "collection",
- "href": ""
}
}
}
Get an Action by the Action ID.
actionId required | string Example: 615d1585-c6cd-4173-aca4-e18b243fd610 Unique resource identifier |
depth | number Default: "0" Controls the detail depth of the response objects.
|
{- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "action",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "Name of the Action",
- "type": "EMAIL",
- "typeProperties": {
- "emailTo": "user@domain.com"
}, - "executions": [
- "615d1585-c6cd-4173-aca4-e18b243fd610"
]
}, - "entities": {
- "executions": {
- "id": "executions",
- "type": "collection",
- "href": "",
- "items": [
- {
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "execution",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "actionId": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "actionLastModifiedDate": "2021-07-14T13:34:21Z",
- "alarmTransitionId": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "date": "2021-07-14T13:34:21Z",
- "message": "Email sent to \"user@cloud.ionos.com\" with MessageID \"abed6adc-cce2-4472-8932-728667fbc4e4\"",
- "state": "SUCCESS"
}
}
]
}
}
}
Update an Action with the specified Action ID.
"name" must not be null or blank
"type" must be of a valid type (EMAIL)
"typeProperties.emailTo" must be a well-formed email address that is not null or blank.
actionId required | string Example: 615d1585-c6cd-4173-aca4-e18b243fd610 Unique resource identifier |
The Action to be updated. Please see the description section above for the required request body attributes.
object Properties of the resource. |
{- "properties": {
- "name": "Name of the Action",
- "type": "EMAIL",
- "typeProperties": {
- "emailTo": "user@domain.com"
}
}
}
{- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "action",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "Name of the Action",
- "type": "EMAIL",
- "typeProperties": {
- "emailTo": "user@domain.com"
}, - "executions": [
- "615d1585-c6cd-4173-aca4-e18b243fd610"
]
}, - "entities": {
- "executions": {
- "id": "executions",
- "type": "collection",
- "href": ""
}
}
}
Delete an Action with the specified Action ID.
actionId required | string Example: 615d1585-c6cd-4173-aca4-e18b243fd610 Unique resource identifier |
{- "errorUuid": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "httpStatus": "400|401|404",
- "messages": [
- {
- "errorCode": "400|401|404",
- "message": "User does not have the necessary privilege(s) | The request body could not be parsed | The user-provided resource did not pass all validations | The requested resource does not exist"
}
]
}
List all executions for the specified Action.
actionId required | string Example: 615d1585-c6cd-4173-aca4-e18b243fd610 Unique resource identifier |
depth | number Default: "0" Controls the detail depth of the response objects.
|
orderBy | string Default: "createdDate" Enum: "createdDate" "lastModifiedDate" Define the property to be used for ordering the returned list. |
{- "id": "executions",
- "type": "collection",
- "href": "",
- "items": [
- {
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "execution",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "actionId": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "actionLastModifiedDate": "2021-07-14T13:34:21Z",
- "alarmTransitionId": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "date": "2021-07-14T13:34:21Z",
- "message": "Email sent to \"user@cloud.ionos.com\" with MessageID \"abed6adc-cce2-4472-8932-728667fbc4e4\"",
- "state": "SUCCESS"
}
}
]
}
Get an Action execution by Action and execution IDs.
actionId required | string Example: 615d1585-c6cd-4173-aca4-e18b243fd610 Unique resource identifier |
executionId required | string Example: 715d1585-c6cd-4173-aca4-e18b243fd720 Unique resource identifier |
{- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "execution",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "actionId": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "actionLastModifiedDate": "2021-07-14T13:34:21Z",
- "alarmTransitionId": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "date": "2021-07-14T13:34:21Z",
- "message": "Email sent to \"user@cloud.ionos.com\" with MessageID \"abed6adc-cce2-4472-8932-728667fbc4e4\"",
- "state": "SUCCESS"
}
}
Manage Alarms. An Alarm contains an expression to be evaluated against the resource. When the expression matches the resource, the Alarm is considered 'triggered'. An Alarm can have associated Actions, to be taken if the expression matches.
This operation is restricted to contract owner, admin, and users with 'accessAndManageMonitoring' and Share/Edit access permissions for the data center, hosting the VM.
List all Alarms for a particular contract.
depth | number Default: "0" Controls the detail depth of the response objects.
|
orderBy | string Default: "createdDate" Enum: "createdDate" "lastModifiedDate" Define the property to be used for ordering the returned list. |
{- "id": "alarms",
- "type": "collection",
- "href": "",
- "items": [
- {
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "alarm",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "The name of the Alarm",
- "expression": {
- "comparisonOperator": "GREATER_THAN_OR_EQUAL_TO_THRESHOLD",
- "comparisonThreshold": "50",
- "metric": "instance_cpu_utilization_average",
- "range": "P1D",
- "rangeAggregation": "AVERAGE",
- "source": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}, - "unit": "PER_HOUR"
}, - "location": "de/fra",
- "state": "FIRING",
- "stateTransitionedDate": "2019-08-24T14:15:22Z",
- "alarmDelay": "P1D"
}, - "entities": {
- "firingActions": {
- "id": "actions",
- "type": "collection",
- "href": "",
- "items": [
- {
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "action",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "Name of the Action",
- "type": "EMAIL",
- "typeProperties": {
- "emailTo": "user@domain.com"
}, - "executions": [
- "615d1585-c6cd-4173-aca4-e18b243fd610"
]
}, - "entities": {
- "executions": {
- "id": "executions",
- "type": "collection",
- "href": "",
- "items": [
- null
]
}
}
}
]
}, - "transitions": {
- "id": "transitions",
- "type": "collection",
- "href": "",
- "items": [
- {
- "href": "",
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "transition",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "alarmLastModifiedDate": "2019-08-24T14:15:22Z",
- "date": "2019-08-24T14:15:22Z",
- "newState": "FIRING",
- "oldState": "OK",
- "reason": "Alarm transition from OK to FIRING"
}
}
]
}
}
}
]
}
Create an Alarm. All of the following properties must be provided: "name" and "expression" ("comparisonThreshold", "metric" and "source").
"name": the name of the Alarm
"expression.source": the virtual instance for which you want to configure the Alarm
"expression.metric": the metric (CPU|Network|Storage)
"expression.comparisonThreshold": the threshold value to be applied for the Alarm
'range': required when setting a 'rangeAggregation'
The Alarm to be created. Please see the description section above for the required request body attributes.
object Properties of the resource. | |
object (AlarmEntitiesRequest) |
{- "properties": {
- "name": "The name of the Alarm",
- "expression": {
- "comparisonOperator": "GREATER_THAN_OR_EQUAL_TO_THRESHOLD",
- "comparisonThreshold": "50",
- "metric": "instance_cpu_utilization_average",
- "range": "P1D",
- "rangeAggregation": "AVERAGE",
- "source": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}, - "unit": "PER_HOUR"
}, - "alarmDelay": "P1D"
}, - "entities": {
- "firingActions": {
- "items": [
- {
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610"
}
]
}
}
}
{- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "alarm",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "The name of the Alarm",
- "expression": {
- "comparisonOperator": "GREATER_THAN_OR_EQUAL_TO_THRESHOLD",
- "comparisonThreshold": "50",
- "metric": "instance_cpu_utilization_average",
- "range": "P1D",
- "rangeAggregation": "AVERAGE",
- "source": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}, - "unit": "PER_HOUR"
}, - "location": "de/fra",
- "state": "FIRING",
- "stateTransitionedDate": "2019-08-24T14:15:22Z",
- "alarmDelay": "P1D"
}, - "entities": {
- "firingActions": {
- "executions": {
- "id": "executions",
- "type": "collection",
- "href": ""
}
}, - "transitions": {
- "id": "transitions",
- "type": "collection",
- "href": ""
}
}
}
Get an Alarm by the Alarm ID.
alarmId required | string |
{- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "alarm",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "The name of the Alarm",
- "expression": {
- "comparisonOperator": "GREATER_THAN_OR_EQUAL_TO_THRESHOLD",
- "comparisonThreshold": "50",
- "metric": "instance_cpu_utilization_average",
- "range": "P1D",
- "rangeAggregation": "AVERAGE",
- "source": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}, - "unit": "PER_HOUR"
}, - "location": "de/fra",
- "state": "FIRING",
- "stateTransitionedDate": "2019-08-24T14:15:22Z",
- "alarmDelay": "P1D"
}, - "entities": {
- "firingActions": {
- "id": "actions",
- "type": "collection",
- "href": "",
- "items": [
- {
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "action",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "Name of the Action",
- "type": "EMAIL",
- "typeProperties": {
- "emailTo": "user@domain.com"
}, - "executions": [
- "615d1585-c6cd-4173-aca4-e18b243fd610"
]
}, - "entities": {
- "executions": {
- "id": "executions",
- "type": "collection",
- "href": "",
- "items": [
- {
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "execution",
- "href": "",
- "metadata": {
- "createdBy": null,
- "createdByUserId": null,
- "createdDate": null,
- "etag": null,
- "lastModifiedBy": null,
- "lastModifiedByUserId": null,
- "lastModifiedDate": null,
- "state": null
}, - "properties": {
- "actionId": null,
- "actionLastModifiedDate": null,
- "alarmTransitionId": null,
- "date": null,
- "message": null,
- "state": null
}
}
]
}
}
}
]
}, - "transitions": {
- "id": "transitions",
- "type": "collection",
- "href": "",
- "items": [
- {
- "href": "",
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "transition",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "alarmLastModifiedDate": "2019-08-24T14:15:22Z",
- "date": "2019-08-24T14:15:22Z",
- "newState": "FIRING",
- "oldState": "OK",
- "reason": "Alarm transition from OK to FIRING"
}
}
]
}
}
}
Update an Alarm. All the following properties must be provided: "name" and "expression" ("comparisonThreshold", "metric" and "source").
"name": the name of the Alarm
"expression.source": the virtual instance for which you want to configure the Alarm
"expression.metric": the metric (CPU|Network|Storage)
"expression.comparisonThreshold": the threshold value to be applied for the Alarm
'range': required when setting a 'rangeAggregation'
alarmId required | string Example: 9460588f-f6ee-435f-a688-f798021b319d |
The Alarm to be updated. Please see the description section above for the required request body attributes.
object Properties of the resource. | |
object (AlarmEntitiesRequest) |
{- "properties": {
- "name": "The name of the Alarm",
- "expression": {
- "comparisonOperator": "GREATER_THAN_OR_EQUAL_TO_THRESHOLD",
- "comparisonThreshold": "50",
- "metric": "instance_cpu_utilization_average",
- "range": "P1D",
- "rangeAggregation": "AVERAGE",
- "source": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}, - "unit": "PER_HOUR"
}, - "alarmDelay": "P1D"
}, - "entities": {
- "firingActions": {
- "items": [
- {
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610"
}
]
}
}
}
{- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "alarm",
- "href": "",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "name": "The name of the Alarm",
- "expression": {
- "comparisonOperator": "GREATER_THAN_OR_EQUAL_TO_THRESHOLD",
- "comparisonThreshold": "50",
- "metric": "instance_cpu_utilization_average",
- "range": "P1D",
- "rangeAggregation": "AVERAGE",
- "source": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
}, - "unit": "PER_HOUR"
}, - "location": "de/fra",
- "state": "FIRING",
- "stateTransitionedDate": "2019-08-24T14:15:22Z",
- "alarmDelay": "P1D"
}, - "entities": {
- "firingActions": {
- "executions": {
- "id": "executions",
- "type": "collection",
- "href": ""
}
}, - "transitions": {
- "id": "transitions",
- "type": "collection",
- "href": ""
}
}
}
Delete an Alarm with the specified ID.
alarmId required | string Example: 9460588f-f6ee-435f-a688-f798021b319d |
{- "errorUuid": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "httpStatus": "400|401|404",
- "messages": [
- {
- "errorCode": "400|401|404",
- "message": "User does not have the necessary privilege(s) | The request body could not be parsed | The user-provided resource did not pass all validations | The requested resource does not exist"
}
]
}
List all Alarm transitions for a particular contract.
alarmId required | string Example: 9460588f-f6ee-435f-a688-f798021b319d |
depth | number Default: "0" Controls the detail depth of the response objects.
|
orderBy | string Default: "createdDate" Enum: "createdDate" "lastModifiedDate" Define the property to be used for ordering the returned list. |
{- "id": "transitions",
- "type": "collection",
- "href": "",
- "items": [
- {
- "href": "",
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "transition",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "alarmLastModifiedDate": "2019-08-24T14:15:22Z",
- "date": "2019-08-24T14:15:22Z",
- "newState": "FIRING",
- "oldState": "OK",
- "reason": "Alarm transition from OK to FIRING"
}
}
]
}
Get an Alarm transition by Alarm and transition IDs.
alarmId required | string Example: 9460588f-f6ee-435f-a688-f798021b319d |
transitionId required | string Example: 8460588f-f6ee-435f-a688-f798021b319d |
{- "href": "",
- "id": "615d1585-c6cd-4173-aca4-e18b243fd610",
- "type": "transition",
- "metadata": {
- "createdBy": "user@example.com",
- "createdByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "createdDate": "2021-07-14T13:34:21Z",
- "etag": "18826140a08571f056da2c646a01a747",
- "lastModifiedBy": "user@example.com",
- "lastModifiedByUserId": "ccbb6982-6130-46b0-8d02-0b10fc407205",
- "lastModifiedDate": "2021-07-14T13:34:21Z",
- "state": "AVAILABLE"
}, - "properties": {
- "alarmLastModifiedDate": "2019-08-24T14:15:22Z",
- "date": "2019-08-24T14:15:22Z",
- "newState": "FIRING",
- "oldState": "OK",
- "reason": "Alarm transition from OK to FIRING"
}
}