Endpoint
/api/v2/tenants/{tenantId}/alerts
Path Parameters
tenantId
string

ackUrl
string

(Optional) Acknowledge URL.

alertTime
string

(Optional) Time when the alert was triggered.

alertType
string

(Optional) Alert types. Use Get Alert Types API to fetch the list of alert types. Supported alert types are: monitoring, maintenance, appliance, agent, obsolete, scheduled maintenance.

app
string

Alert management applications. Use the Get Alert Technologies API to view supported alert management technologies.

availability
string

(Optional) Values: True/False. If set to true, creates availability alerts.

component
string

(Optional) Device component.

currentState
string

Current state of alert. For example: OK, warning, critical, or info.

description
string

(Optional) Brief description of the entities that led to the alert generation. Note: You can find the origin of the alert and identify crossed types of threshold of the applied metrics. Primarily, details may include metric, monitor description, device type, template name, group, site, service level, and component.

device
object

Create alerts on a device. At least one field is required in order to identify the device:

device.hostName
device.ipAddress
device.macAddress
device.providerUUID
device.resourceUUID
device.systemUUID
extAlertId
string

(Optional) External alert ID.

monitorName
string

(Optional) Monitor name.

resource
object

Create alerts on a resource. At least one field is required in order to identify the device:

resource.extResourceId
External ID of resource.
resource.hostName
The host name.
resource.id
The resource unique ID. Use the Search Resources API to get a list of resources.
resource.ipAddress
Resource IP address.
resourceName
string

(Optional) Resource name.

rtype
string

(Optional) Resource type.

serviceName
string

Service name.

subject
string

Summary content of the generated alert. Content includes metrics that lead to the alert.

[
  {
    "alertTime": "2017-10-01T00:00:00+0000",
    "alertType": "Maintenance",
    "app": "OPSRAMP",
    "component": "C",
    "currentState": "CRITICAL",
    "description": "api call test",
    "device": {
      "hostName": "Think-pad",
      "ipAddress": "172.2.229.109",
      "macAddress": "2E:8B:EB:32:7A:F9",
      "providerUUID": "11767",
      "resourceUUID": "DEV0000011767",
      "systemUUID": "11767"
    },
    "monitorName": "test",
    "serviceName": "CPU",
    "subject": "Test API Alert 1 for car"
  },
  {
    "alertTime": "2017-10-02T00:00:00+0000",
    "alertType": "Maintenance",
    "app": "OPSRAMP",
    "component": "C",
    "currentState": "CRITICAL",
    "description": "api call test",
    "device": {
      "hostName": "Think-pad-i5",
      "ipAddress": "172.2.228.110",
      "macAddress": "3B:5E:EB:52:3E:B5",
      "providerUUID": "11768",
      "resourceUUID": "DEV0000011768",
      "systemUUID": "11768"
    },
    "monitorName": "test",
    "serviceName": "CPU",
    "subject": "Test API Alert 2 for car"
  },
  {
    "alertTime": "2017-10-01T00:00:00+0000",
    "alertType": "Maintenance",
    "app": "OPSRAMP",
    "component": "C",
    "currentState": "CRITICAL",
    "description": "api call test",
    "monitorName": "test",
    "resource": {
      "id": "5b850347-8798-45aa-9332-c7ff3dd1c60e"
    },
    "serviceName": "MEMORY",
    "subject": "Test API Alert 1 for car"
  },
  {
    "alertTime": "2018-11-02 10:52:55",
    "alertType": "Monitoring",
    "app": "OPSRAMP",
    "component": "MEMORY",
    "currentState": "CRITICAL",
    "description": "Api calls ",
    "masterAgentUUID": "5b850347-8798-45aa-9332-c7ff3dd1c60e",
    "oldState": "OK",
    "resource": {
      "extResourceId": "646438712529389643",
      "ipAddress": "172.24.132.47"
    },
    "serviceName": "MEMORY",
    "subject": "The Physical Memory Usage on the device is 56%"
  }
]

Responses

OK

[
  "a6c952c1-2d2d-4c82-a16d-5870a2c7e4e6",
  "c1461bc2-eed5-4559-9d78-6ca6f35be8c5",
  "3885d3fc-4e92-4a9d-871a-a5940cf7079b",
  "62b5d1c7-5e17-4027-9d9e-a8d566590468"
]