EDB Postgres Enterprise Manager REST APIs v6.0: Alerts v10.2

get__alert_config_global_

Code samples

GET /alert/config/global/

Gets Alerts for global level.

Parameters

NameInTypeRequiredDescription
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "id": 0,
    "alert_name": "string",
    "alert_template": 0,
    "description": "string",
    "enabled": true,
    "history_retention": 0,
    "frequency_min": 0,
    "operator": "string",
    "low_threshold_value": 0,
    "medium_threshold_value": 0,
    "high_threshold_value": 0,
    "send_email": true,
    "all_alert_enable": true,
    "email_group_id": 0,
    "low_alert_enable": true,
    "low_email_group_id": 0,
    "med_alert_enable": true,
    "med_email_group_id": 0,
    "high_alert_enable": true,
    "high_email_group_id": 0,
    "send_trap": true,
    "snmp_trap_version": 0,
    "low_send_trap": true,
    "med_send_trap": true,
    "high_send_trap": true,
    "params": [
      {
        "paramname": "string",
        "paramvalue": "string"
      }
    ],
    "execute_script": true,
    "execute_script_on_clear": true,
    "execute_script_on_pem_server": true,
    "script_code": "string",
    "submit_to_nagios": true,
    "override_default_config": true,
    "send_notification": true,
    "low_webhook_ids": [
      0
    ],
    "med_webhook_ids": [
      0
    ],
    "high_webhook_ids": [
      0
    ],
    "cleared_webhook_ids": [
      0
    ]
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Alert]falsenonenone
» idintegerfalsenoneAlert Id. NOTE: It is not applicable for POST request.
» alert_namestringfalsenoneName of the alert. NOTE: It is a mandatory parameter for the POST request.
» alert_templateintegerfalsenoneID of the alert template, positive integer value. NOTE: It is a mandatory parameter for the POST request.
» descriptionstringfalsenonenone
» enabledbooleanfalsenoneDefines whether this alert is enabled/disabled. NOTE: It is a mandatory parameter for the POST request.
» history_retentionintegerfalsenoneFor how many days to keep the history of this alert. Possible values are from 1 to 99999. NOTE: It is a mandatory parameter for the POST request.
» frequency_minintegerfalsenoneDefines how frequently the alert needs to be checked on PEM database server. Possible values are from 1 to 65534 minutes. NOTE: It is a mandatory parameter for the POST request.
» operatorstringfalsenoneDefines the operator for checking the threshold values. Valid string are ">" and "<". NOTE: It is a mandatory parameter for the POST request.
» low_threshold_valuenumberfalsenoneThreshold value for triggering the low alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» medium_threshold_valuenumberfalsenoneThreshold value for triggering the medium alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» high_threshold_valuenumberfalsenoneThreshold value for triggering the high alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» send_emailbooleanfalsenoneDefines whether to send an email, when the state of alert is changed.
» all_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'email_group_id' when state of the alert is changed.
» email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of alert is changed.
» low_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'low_email_group_id' when state of the alert is set to LOW.
» low_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to LOW.
» med_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'medium_email_group_id' when state of the alert is set to MEDIUM.
» med_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to MEDIUM.
» high_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'high_email_group_id' when state of the alert is set to HIGH.
» high_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to HIGH.
» send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when the state of the alert changes.
» snmp_trap_versionintegerfalsenoneDefines the SNMP trap version. Supported SNMP trap version is 1, 2 or 3
» low_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to LOW.
» med_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to MEDIUM.
» high_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to HIGH.
» params[AlertParams]falsenoneList of the parameter/value pair to be used by the alert template for checking the alerts. NOTE: The all parameter must be defined as per the alert template.
»» paramnamestringfalsenoneName of the parameter. NOTE: This has to present on the alert template parameter list.
»» paramvaluestringfalsenoneValue for the given parameter
» execute_scriptbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is changed to LOW/MEDIUM/HIGH.
» execute_script_on_clearbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is cleared.
» execute_script_on_pem_serverbooleanfalsenoneDefines whether to execute the provided script on the PEM Host, or on the host from where the object is being monitored by the agent.
» script_codestringfalsenoneThe script, which will be executed. It could be a shell/batch script. Please read the documention for detailed information.
» submit_to_nagiosbooleanfalsenoneDefines whether to send notification to the nagios, when state of the alert is chagned.
» override_default_configbooleanfalsenoneDefines whether the default webhook configuration is override or not.
» send_notificationbooleanfalsenoneDefines whether the webhook send notification enabled.
» low_webhook_ids[integer]falsenoneWebhook ids for which low alerts are configured.
» med_webhook_ids[integer]falsenoneWebhook ids for which medium alerts are configured.
» high_webhook_ids[integer]falsenoneWebhook ids for which high alerts are configured.
» cleared_webhook_ids[integer]falsenoneWebhook ids for which cleared alerts are configured.
Info

This operation does not require authentication

post__alert_config_global_

Code samples

POST /alert/config/global/

Create Alert for global level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

get__alert_config_global_{id}

Code samples

GET /alert/config/global/{id}

Gets Alerts for global level by alert_id.

Parameters

NameInTypeRequiredDescription
idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "send_email": true,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseAlert
Info

This operation does not require authentication

put__alert_config_global_{id}

Code samples

PUT /alert/config/global/{id}

Update Alert for global level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

delete__alert_config_global_{id}

Code samples

DELETE /alert/config/global/{id}

Delete the Alert object.

Parameters

NameInTypeRequiredDescription
idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessful deletionNone

Response Schema

Info

This operation does not require authentication

get__alert_config_agent_{agent_id}

Code samples

GET /alert/config/agent/{agent_id}

Gets Alerts for agent level by agent_id.

Parameters

NameInTypeRequiredDescription
agent_idpathintegertrueAgent ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "id": 0,
    "alert_name": "string",
    "alert_template": 0,
    "description": "string",
    "enabled": true,
    "history_retention": 0,
    "frequency_min": 0,
    "operator": "string",
    "low_threshold_value": 0,
    "medium_threshold_value": 0,
    "high_threshold_value": 0,
    "send_email": true,
    "all_alert_enable": true,
    "email_group_id": 0,
    "low_alert_enable": true,
    "low_email_group_id": 0,
    "med_alert_enable": true,
    "med_email_group_id": 0,
    "high_alert_enable": true,
    "high_email_group_id": 0,
    "send_trap": true,
    "snmp_trap_version": 0,
    "low_send_trap": true,
    "med_send_trap": true,
    "high_send_trap": true,
    "params": [
      {
        "paramname": "string",
        "paramvalue": "string"
      }
    ],
    "execute_script": true,
    "execute_script_on_clear": true,
    "execute_script_on_pem_server": true,
    "script_code": "string",
    "submit_to_nagios": true,
    "override_default_config": true,
    "send_notification": true,
    "low_webhook_ids": [
      0
    ],
    "med_webhook_ids": [
      0
    ],
    "high_webhook_ids": [
      0
    ],
    "cleared_webhook_ids": [
      0
    ]
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Alert]falsenonenone
» idintegerfalsenoneAlert Id. NOTE: It is not applicable for POST request.
» alert_namestringfalsenoneName of the alert. NOTE: It is a mandatory parameter for the POST request.
» alert_templateintegerfalsenoneID of the alert template, positive integer value. NOTE: It is a mandatory parameter for the POST request.
» descriptionstringfalsenonenone
» enabledbooleanfalsenoneDefines whether this alert is enabled/disabled. NOTE: It is a mandatory parameter for the POST request.
» history_retentionintegerfalsenoneFor how many days to keep the history of this alert. Possible values are from 1 to 99999. NOTE: It is a mandatory parameter for the POST request.
» frequency_minintegerfalsenoneDefines how frequently the alert needs to be checked on PEM database server. Possible values are from 1 to 65534 minutes. NOTE: It is a mandatory parameter for the POST request.
» operatorstringfalsenoneDefines the operator for checking the threshold values. Valid string are ">" and "<". NOTE: It is a mandatory parameter for the POST request.
» low_threshold_valuenumberfalsenoneThreshold value for triggering the low alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» medium_threshold_valuenumberfalsenoneThreshold value for triggering the medium alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» high_threshold_valuenumberfalsenoneThreshold value for triggering the high alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» send_emailbooleanfalsenoneDefines whether to send an email, when the state of alert is changed.
» all_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'email_group_id' when state of the alert is changed.
» email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of alert is changed.
» low_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'low_email_group_id' when state of the alert is set to LOW.
» low_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to LOW.
» med_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'medium_email_group_id' when state of the alert is set to MEDIUM.
» med_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to MEDIUM.
» high_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'high_email_group_id' when state of the alert is set to HIGH.
» high_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to HIGH.
» send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when the state of the alert changes.
» snmp_trap_versionintegerfalsenoneDefines the SNMP trap version. Supported SNMP trap version is 1, 2 or 3
» low_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to LOW.
» med_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to MEDIUM.
» high_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to HIGH.
» params[AlertParams]falsenoneList of the parameter/value pair to be used by the alert template for checking the alerts. NOTE: The all parameter must be defined as per the alert template.
»» paramnamestringfalsenoneName of the parameter. NOTE: This has to present on the alert template parameter list.
»» paramvaluestringfalsenoneValue for the given parameter
» execute_scriptbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is changed to LOW/MEDIUM/HIGH.
» execute_script_on_clearbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is cleared.
» execute_script_on_pem_serverbooleanfalsenoneDefines whether to execute the provided script on the PEM Host, or on the host from where the object is being monitored by the agent.
» script_codestringfalsenoneThe script, which will be executed. It could be a shell/batch script. Please read the documention for detailed information.
» submit_to_nagiosbooleanfalsenoneDefines whether to send notification to the nagios, when state of the alert is chagned.
» override_default_configbooleanfalsenoneDefines whether the default webhook configuration is override or not.
» send_notificationbooleanfalsenoneDefines whether the webhook send notification enabled.
» low_webhook_ids[integer]falsenoneWebhook ids for which low alerts are configured.
» med_webhook_ids[integer]falsenoneWebhook ids for which medium alerts are configured.
» high_webhook_ids[integer]falsenoneWebhook ids for which high alerts are configured.
» cleared_webhook_ids[integer]falsenoneWebhook ids for which cleared alerts are configured.
Info

This operation does not require authentication

post__alert_config_agent_{agent_id}

Code samples

POST /alert/config/agent/{agent_id}

Create Alert for agent level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
agent_idpathintegertrueAgent ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

get__alert_config_agent_{agent_id}_{alert_id}

Code samples

GET /alert/config/agent/{agent_id}/{alert_id}

Gets Alerts for agent level by agent_id and alert_id.

Parameters

NameInTypeRequiredDescription
agent_idpathintegertrueAgent ID
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "send_email": true,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseAlert
Info

This operation does not require authentication

put__alert_config_agent_{agent_id}_{alert_id}

Code samples

PUT /alert/config/agent/{agent_id}/{alert_id}

Update Alert for agent level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
agent_idpathintegertrueAgent ID
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

delete__alert_config_agent_{agent_id}_{alert_id}

Code samples

DELETE /alert/config/agent/{agent_id}/{alert_id}

Delete the Alert object.

Parameters

NameInTypeRequiredDescription
agent_idpathintegertrueAgent ID
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessful deletionNone

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}

Code samples

GET /alert/config/server/{server_id}

Gets Alerts for server level by server_id.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "id": 0,
    "alert_name": "string",
    "alert_template": 0,
    "description": "string",
    "enabled": true,
    "history_retention": 0,
    "frequency_min": 0,
    "operator": "string",
    "low_threshold_value": 0,
    "medium_threshold_value": 0,
    "high_threshold_value": 0,
    "send_email": true,
    "all_alert_enable": true,
    "email_group_id": 0,
    "low_alert_enable": true,
    "low_email_group_id": 0,
    "med_alert_enable": true,
    "med_email_group_id": 0,
    "high_alert_enable": true,
    "high_email_group_id": 0,
    "send_trap": true,
    "snmp_trap_version": 0,
    "low_send_trap": true,
    "med_send_trap": true,
    "high_send_trap": true,
    "params": [
      {
        "paramname": "string",
        "paramvalue": "string"
      }
    ],
    "execute_script": true,
    "execute_script_on_clear": true,
    "execute_script_on_pem_server": true,
    "script_code": "string",
    "submit_to_nagios": true,
    "override_default_config": true,
    "send_notification": true,
    "low_webhook_ids": [
      0
    ],
    "med_webhook_ids": [
      0
    ],
    "high_webhook_ids": [
      0
    ],
    "cleared_webhook_ids": [
      0
    ]
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Alert]falsenonenone
» idintegerfalsenoneAlert Id. NOTE: It is not applicable for POST request.
» alert_namestringfalsenoneName of the alert. NOTE: It is a mandatory parameter for the POST request.
» alert_templateintegerfalsenoneID of the alert template, positive integer value. NOTE: It is a mandatory parameter for the POST request.
» descriptionstringfalsenonenone
» enabledbooleanfalsenoneDefines whether this alert is enabled/disabled. NOTE: It is a mandatory parameter for the POST request.
» history_retentionintegerfalsenoneFor how many days to keep the history of this alert. Possible values are from 1 to 99999. NOTE: It is a mandatory parameter for the POST request.
» frequency_minintegerfalsenoneDefines how frequently the alert needs to be checked on PEM database server. Possible values are from 1 to 65534 minutes. NOTE: It is a mandatory parameter for the POST request.
» operatorstringfalsenoneDefines the operator for checking the threshold values. Valid string are ">" and "<". NOTE: It is a mandatory parameter for the POST request.
» low_threshold_valuenumberfalsenoneThreshold value for triggering the low alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» medium_threshold_valuenumberfalsenoneThreshold value for triggering the medium alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» high_threshold_valuenumberfalsenoneThreshold value for triggering the high alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» send_emailbooleanfalsenoneDefines whether to send an email, when the state of alert is changed.
» all_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'email_group_id' when state of the alert is changed.
» email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of alert is changed.
» low_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'low_email_group_id' when state of the alert is set to LOW.
» low_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to LOW.
» med_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'medium_email_group_id' when state of the alert is set to MEDIUM.
» med_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to MEDIUM.
» high_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'high_email_group_id' when state of the alert is set to HIGH.
» high_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to HIGH.
» send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when the state of the alert changes.
» snmp_trap_versionintegerfalsenoneDefines the SNMP trap version. Supported SNMP trap version is 1, 2 or 3
» low_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to LOW.
» med_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to MEDIUM.
» high_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to HIGH.
» params[AlertParams]falsenoneList of the parameter/value pair to be used by the alert template for checking the alerts. NOTE: The all parameter must be defined as per the alert template.
»» paramnamestringfalsenoneName of the parameter. NOTE: This has to present on the alert template parameter list.
»» paramvaluestringfalsenoneValue for the given parameter
» execute_scriptbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is changed to LOW/MEDIUM/HIGH.
» execute_script_on_clearbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is cleared.
» execute_script_on_pem_serverbooleanfalsenoneDefines whether to execute the provided script on the PEM Host, or on the host from where the object is being monitored by the agent.
» script_codestringfalsenoneThe script, which will be executed. It could be a shell/batch script. Please read the documention for detailed information.
» submit_to_nagiosbooleanfalsenoneDefines whether to send notification to the nagios, when state of the alert is chagned.
» override_default_configbooleanfalsenoneDefines whether the default webhook configuration is override or not.
» send_notificationbooleanfalsenoneDefines whether the webhook send notification enabled.
» low_webhook_ids[integer]falsenoneWebhook ids for which low alerts are configured.
» med_webhook_ids[integer]falsenoneWebhook ids for which medium alerts are configured.
» high_webhook_ids[integer]falsenoneWebhook ids for which high alerts are configured.
» cleared_webhook_ids[integer]falsenoneWebhook ids for which cleared alerts are configured.
Info

This operation does not require authentication

post__alert_config_server_{server_id}

Code samples

POST /alert/config/server/{server_id}

Create Alert for server level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_{alert_id}

Code samples

GET /alert/config/server/{server_id}/{alert_id}

Gets Alerts for server level by server_id and alert_id.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "send_email": true,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseAlert
Info

This operation does not require authentication

put__alert_config_server_{server_id}_{alert_id}

Code samples

PUT /alert/config/server/{server_id}/{alert_id}

Update Alert for server level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

delete__alert_config_server_{server_id}_{alert_id}

Code samples

DELETE /alert/config/server/{server_id}/{alert_id}

Delete the Alert object.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessful deletionNone

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}

Gets Alerts for database level by server_id and database_name.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "id": 0,
    "alert_name": "string",
    "alert_template": 0,
    "description": "string",
    "enabled": true,
    "history_retention": 0,
    "frequency_min": 0,
    "operator": "string",
    "low_threshold_value": 0,
    "medium_threshold_value": 0,
    "high_threshold_value": 0,
    "send_email": true,
    "all_alert_enable": true,
    "email_group_id": 0,
    "low_alert_enable": true,
    "low_email_group_id": 0,
    "med_alert_enable": true,
    "med_email_group_id": 0,
    "high_alert_enable": true,
    "high_email_group_id": 0,
    "send_trap": true,
    "snmp_trap_version": 0,
    "low_send_trap": true,
    "med_send_trap": true,
    "high_send_trap": true,
    "params": [
      {
        "paramname": "string",
        "paramvalue": "string"
      }
    ],
    "execute_script": true,
    "execute_script_on_clear": true,
    "execute_script_on_pem_server": true,
    "script_code": "string",
    "submit_to_nagios": true,
    "override_default_config": true,
    "send_notification": true,
    "low_webhook_ids": [
      0
    ],
    "med_webhook_ids": [
      0
    ],
    "high_webhook_ids": [
      0
    ],
    "cleared_webhook_ids": [
      0
    ]
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Alert]falsenonenone
» idintegerfalsenoneAlert Id. NOTE: It is not applicable for POST request.
» alert_namestringfalsenoneName of the alert. NOTE: It is a mandatory parameter for the POST request.
» alert_templateintegerfalsenoneID of the alert template, positive integer value. NOTE: It is a mandatory parameter for the POST request.
» descriptionstringfalsenonenone
» enabledbooleanfalsenoneDefines whether this alert is enabled/disabled. NOTE: It is a mandatory parameter for the POST request.
» history_retentionintegerfalsenoneFor how many days to keep the history of this alert. Possible values are from 1 to 99999. NOTE: It is a mandatory parameter for the POST request.
» frequency_minintegerfalsenoneDefines how frequently the alert needs to be checked on PEM database server. Possible values are from 1 to 65534 minutes. NOTE: It is a mandatory parameter for the POST request.
» operatorstringfalsenoneDefines the operator for checking the threshold values. Valid string are ">" and "<". NOTE: It is a mandatory parameter for the POST request.
» low_threshold_valuenumberfalsenoneThreshold value for triggering the low alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» medium_threshold_valuenumberfalsenoneThreshold value for triggering the medium alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» high_threshold_valuenumberfalsenoneThreshold value for triggering the high alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» send_emailbooleanfalsenoneDefines whether to send an email, when the state of alert is changed.
» all_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'email_group_id' when state of the alert is changed.
» email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of alert is changed.
» low_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'low_email_group_id' when state of the alert is set to LOW.
» low_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to LOW.
» med_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'medium_email_group_id' when state of the alert is set to MEDIUM.
» med_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to MEDIUM.
» high_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'high_email_group_id' when state of the alert is set to HIGH.
» high_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to HIGH.
» send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when the state of the alert changes.
» snmp_trap_versionintegerfalsenoneDefines the SNMP trap version. Supported SNMP trap version is 1, 2 or 3
» low_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to LOW.
» med_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to MEDIUM.
» high_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to HIGH.
» params[AlertParams]falsenoneList of the parameter/value pair to be used by the alert template for checking the alerts. NOTE: The all parameter must be defined as per the alert template.
»» paramnamestringfalsenoneName of the parameter. NOTE: This has to present on the alert template parameter list.
»» paramvaluestringfalsenoneValue for the given parameter
» execute_scriptbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is changed to LOW/MEDIUM/HIGH.
» execute_script_on_clearbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is cleared.
» execute_script_on_pem_serverbooleanfalsenoneDefines whether to execute the provided script on the PEM Host, or on the host from where the object is being monitored by the agent.
» script_codestringfalsenoneThe script, which will be executed. It could be a shell/batch script. Please read the documention for detailed information.
» submit_to_nagiosbooleanfalsenoneDefines whether to send notification to the nagios, when state of the alert is chagned.
» override_default_configbooleanfalsenoneDefines whether the default webhook configuration is override or not.
» send_notificationbooleanfalsenoneDefines whether the webhook send notification enabled.
» low_webhook_ids[integer]falsenoneWebhook ids for which low alerts are configured.
» med_webhook_ids[integer]falsenoneWebhook ids for which medium alerts are configured.
» high_webhook_ids[integer]falsenoneWebhook ids for which high alerts are configured.
» cleared_webhook_ids[integer]falsenoneWebhook ids for which cleared alerts are configured.
Info

This operation does not require authentication

post__alert_config_server_{server_id}_database_{database_name}

Code samples

POST /alert/config/server/{server_id}/database/{database_name}

Create Alert for database level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_{alert_id}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/{alert_id}

Gets Alerts for database level by server_id, database_name and alert_id.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "send_email": true,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseAlert
Info

This operation does not require authentication

put__alert_config_server_{server_id}_database_{database_name}_{alert_id}

Code samples

PUT /alert/config/server/{server_id}/database/{database_name}/{alert_id}

Update Alert for database level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

delete__alert_config_server_{server_id}_database_{database_name}_{alert_id}

Code samples

DELETE /alert/config/server/{server_id}/database/{database_name}/{alert_id}

Delete the Alert object.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessful deletionNone

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}

Gets Alerts for schema level by server_id, database_name and schema_name.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "id": 0,
    "alert_name": "string",
    "alert_template": 0,
    "description": "string",
    "enabled": true,
    "history_retention": 0,
    "frequency_min": 0,
    "operator": "string",
    "low_threshold_value": 0,
    "medium_threshold_value": 0,
    "high_threshold_value": 0,
    "send_email": true,
    "all_alert_enable": true,
    "email_group_id": 0,
    "low_alert_enable": true,
    "low_email_group_id": 0,
    "med_alert_enable": true,
    "med_email_group_id": 0,
    "high_alert_enable": true,
    "high_email_group_id": 0,
    "send_trap": true,
    "snmp_trap_version": 0,
    "low_send_trap": true,
    "med_send_trap": true,
    "high_send_trap": true,
    "params": [
      {
        "paramname": "string",
        "paramvalue": "string"
      }
    ],
    "execute_script": true,
    "execute_script_on_clear": true,
    "execute_script_on_pem_server": true,
    "script_code": "string",
    "submit_to_nagios": true,
    "override_default_config": true,
    "send_notification": true,
    "low_webhook_ids": [
      0
    ],
    "med_webhook_ids": [
      0
    ],
    "high_webhook_ids": [
      0
    ],
    "cleared_webhook_ids": [
      0
    ]
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Alert]falsenonenone
» idintegerfalsenoneAlert Id. NOTE: It is not applicable for POST request.
» alert_namestringfalsenoneName of the alert. NOTE: It is a mandatory parameter for the POST request.
» alert_templateintegerfalsenoneID of the alert template, positive integer value. NOTE: It is a mandatory parameter for the POST request.
» descriptionstringfalsenonenone
» enabledbooleanfalsenoneDefines whether this alert is enabled/disabled. NOTE: It is a mandatory parameter for the POST request.
» history_retentionintegerfalsenoneFor how many days to keep the history of this alert. Possible values are from 1 to 99999. NOTE: It is a mandatory parameter for the POST request.
» frequency_minintegerfalsenoneDefines how frequently the alert needs to be checked on PEM database server. Possible values are from 1 to 65534 minutes. NOTE: It is a mandatory parameter for the POST request.
» operatorstringfalsenoneDefines the operator for checking the threshold values. Valid string are ">" and "<". NOTE: It is a mandatory parameter for the POST request.
» low_threshold_valuenumberfalsenoneThreshold value for triggering the low alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» medium_threshold_valuenumberfalsenoneThreshold value for triggering the medium alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» high_threshold_valuenumberfalsenoneThreshold value for triggering the high alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» send_emailbooleanfalsenoneDefines whether to send an email, when the state of alert is changed.
» all_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'email_group_id' when state of the alert is changed.
» email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of alert is changed.
» low_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'low_email_group_id' when state of the alert is set to LOW.
» low_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to LOW.
» med_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'medium_email_group_id' when state of the alert is set to MEDIUM.
» med_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to MEDIUM.
» high_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'high_email_group_id' when state of the alert is set to HIGH.
» high_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to HIGH.
» send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when the state of the alert changes.
» snmp_trap_versionintegerfalsenoneDefines the SNMP trap version. Supported SNMP trap version is 1, 2 or 3
» low_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to LOW.
» med_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to MEDIUM.
» high_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to HIGH.
» params[AlertParams]falsenoneList of the parameter/value pair to be used by the alert template for checking the alerts. NOTE: The all parameter must be defined as per the alert template.
»» paramnamestringfalsenoneName of the parameter. NOTE: This has to present on the alert template parameter list.
»» paramvaluestringfalsenoneValue for the given parameter
» execute_scriptbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is changed to LOW/MEDIUM/HIGH.
» execute_script_on_clearbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is cleared.
» execute_script_on_pem_serverbooleanfalsenoneDefines whether to execute the provided script on the PEM Host, or on the host from where the object is being monitored by the agent.
» script_codestringfalsenoneThe script, which will be executed. It could be a shell/batch script. Please read the documention for detailed information.
» submit_to_nagiosbooleanfalsenoneDefines whether to send notification to the nagios, when state of the alert is chagned.
» override_default_configbooleanfalsenoneDefines whether the default webhook configuration is override or not.
» send_notificationbooleanfalsenoneDefines whether the webhook send notification enabled.
» low_webhook_ids[integer]falsenoneWebhook ids for which low alerts are configured.
» med_webhook_ids[integer]falsenoneWebhook ids for which medium alerts are configured.
» high_webhook_ids[integer]falsenoneWebhook ids for which high alerts are configured.
» cleared_webhook_ids[integer]falsenoneWebhook ids for which cleared alerts are configured.
Info

This operation does not require authentication

post__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}

Code samples

POST /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}

Create Alert for schema level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_{alert_id}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/{alert_id}

Gets Alerts for schema level by server_id, database_name, schema_name and alert_id.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "send_email": true,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseAlert
Info

This operation does not require authentication

put__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_{alert_id}

Code samples

PUT /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/{alert_id}

Update Alert for schema level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

delete__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_{alert_id}

Code samples

DELETE /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/{alert_id}

Delete the Alert object.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessful deletionNone

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_table_{table_name}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}

Gets Alerts for table level by server_id, database_name, schema_name and table_name.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
table_namepathstringtrueTable Name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "id": 0,
    "alert_name": "string",
    "alert_template": 0,
    "description": "string",
    "enabled": true,
    "history_retention": 0,
    "frequency_min": 0,
    "operator": "string",
    "low_threshold_value": 0,
    "medium_threshold_value": 0,
    "high_threshold_value": 0,
    "send_email": true,
    "all_alert_enable": true,
    "email_group_id": 0,
    "low_alert_enable": true,
    "low_email_group_id": 0,
    "med_alert_enable": true,
    "med_email_group_id": 0,
    "high_alert_enable": true,
    "high_email_group_id": 0,
    "send_trap": true,
    "snmp_trap_version": 0,
    "low_send_trap": true,
    "med_send_trap": true,
    "high_send_trap": true,
    "params": [
      {
        "paramname": "string",
        "paramvalue": "string"
      }
    ],
    "execute_script": true,
    "execute_script_on_clear": true,
    "execute_script_on_pem_server": true,
    "script_code": "string",
    "submit_to_nagios": true,
    "override_default_config": true,
    "send_notification": true,
    "low_webhook_ids": [
      0
    ],
    "med_webhook_ids": [
      0
    ],
    "high_webhook_ids": [
      0
    ],
    "cleared_webhook_ids": [
      0
    ]
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Alert]falsenonenone
» idintegerfalsenoneAlert Id. NOTE: It is not applicable for POST request.
» alert_namestringfalsenoneName of the alert. NOTE: It is a mandatory parameter for the POST request.
» alert_templateintegerfalsenoneID of the alert template, positive integer value. NOTE: It is a mandatory parameter for the POST request.
» descriptionstringfalsenonenone
» enabledbooleanfalsenoneDefines whether this alert is enabled/disabled. NOTE: It is a mandatory parameter for the POST request.
» history_retentionintegerfalsenoneFor how many days to keep the history of this alert. Possible values are from 1 to 99999. NOTE: It is a mandatory parameter for the POST request.
» frequency_minintegerfalsenoneDefines how frequently the alert needs to be checked on PEM database server. Possible values are from 1 to 65534 minutes. NOTE: It is a mandatory parameter for the POST request.
» operatorstringfalsenoneDefines the operator for checking the threshold values. Valid string are ">" and "<". NOTE: It is a mandatory parameter for the POST request.
» low_threshold_valuenumberfalsenoneThreshold value for triggering the low alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» medium_threshold_valuenumberfalsenoneThreshold value for triggering the medium alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» high_threshold_valuenumberfalsenoneThreshold value for triggering the high alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» send_emailbooleanfalsenoneDefines whether to send an email, when the state of alert is changed.
» all_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'email_group_id' when state of the alert is changed.
» email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of alert is changed.
» low_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'low_email_group_id' when state of the alert is set to LOW.
» low_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to LOW.
» med_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'medium_email_group_id' when state of the alert is set to MEDIUM.
» med_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to MEDIUM.
» high_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'high_email_group_id' when state of the alert is set to HIGH.
» high_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to HIGH.
» send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when the state of the alert changes.
» snmp_trap_versionintegerfalsenoneDefines the SNMP trap version. Supported SNMP trap version is 1, 2 or 3
» low_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to LOW.
» med_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to MEDIUM.
» high_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to HIGH.
» params[AlertParams]falsenoneList of the parameter/value pair to be used by the alert template for checking the alerts. NOTE: The all parameter must be defined as per the alert template.
»» paramnamestringfalsenoneName of the parameter. NOTE: This has to present on the alert template parameter list.
»» paramvaluestringfalsenoneValue for the given parameter
» execute_scriptbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is changed to LOW/MEDIUM/HIGH.
» execute_script_on_clearbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is cleared.
» execute_script_on_pem_serverbooleanfalsenoneDefines whether to execute the provided script on the PEM Host, or on the host from where the object is being monitored by the agent.
» script_codestringfalsenoneThe script, which will be executed. It could be a shell/batch script. Please read the documention for detailed information.
» submit_to_nagiosbooleanfalsenoneDefines whether to send notification to the nagios, when state of the alert is chagned.
» override_default_configbooleanfalsenoneDefines whether the default webhook configuration is override or not.
» send_notificationbooleanfalsenoneDefines whether the webhook send notification enabled.
» low_webhook_ids[integer]falsenoneWebhook ids for which low alerts are configured.
» med_webhook_ids[integer]falsenoneWebhook ids for which medium alerts are configured.
» high_webhook_ids[integer]falsenoneWebhook ids for which high alerts are configured.
» cleared_webhook_ids[integer]falsenoneWebhook ids for which cleared alerts are configured.
Info

This operation does not require authentication

post__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_table_{table_name}

Code samples

POST /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}

Create Alert for table level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
table_namepathstringtrueTable Name
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_table_{table_name}_{alert_id}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}/{alert_id}

Gets Alerts for table level by server_id, database_name, schema_name, table_name and alert_id.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
table_namepathstringtrueTable Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "send_email": true,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseAlert
Info

This operation does not require authentication

put__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_table_{table_name}_{alert_id}

Code samples

PUT /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}/{alert_id}

Update Alert for table level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
table_namepathstringtrueTable Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

delete__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_table_{table_name}_{alert_id}

Code samples

DELETE /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}/{alert_id}

Delete the Alert object.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
table_namepathstringtrueTable Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessful deletionNone

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_index_{index_name}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}

Gets Alerts for index level by server_id, database_name, schema_name and index_name.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
index_namepathstringtrueIndex Name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "id": 0,
    "alert_name": "string",
    "alert_template": 0,
    "description": "string",
    "enabled": true,
    "history_retention": 0,
    "frequency_min": 0,
    "operator": "string",
    "low_threshold_value": 0,
    "medium_threshold_value": 0,
    "high_threshold_value": 0,
    "send_email": true,
    "all_alert_enable": true,
    "email_group_id": 0,
    "low_alert_enable": true,
    "low_email_group_id": 0,
    "med_alert_enable": true,
    "med_email_group_id": 0,
    "high_alert_enable": true,
    "high_email_group_id": 0,
    "send_trap": true,
    "snmp_trap_version": 0,
    "low_send_trap": true,
    "med_send_trap": true,
    "high_send_trap": true,
    "params": [
      {
        "paramname": "string",
        "paramvalue": "string"
      }
    ],
    "execute_script": true,
    "execute_script_on_clear": true,
    "execute_script_on_pem_server": true,
    "script_code": "string",
    "submit_to_nagios": true,
    "override_default_config": true,
    "send_notification": true,
    "low_webhook_ids": [
      0
    ],
    "med_webhook_ids": [
      0
    ],
    "high_webhook_ids": [
      0
    ],
    "cleared_webhook_ids": [
      0
    ]
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Alert]falsenonenone
» idintegerfalsenoneAlert Id. NOTE: It is not applicable for POST request.
» alert_namestringfalsenoneName of the alert. NOTE: It is a mandatory parameter for the POST request.
» alert_templateintegerfalsenoneID of the alert template, positive integer value. NOTE: It is a mandatory parameter for the POST request.
» descriptionstringfalsenonenone
» enabledbooleanfalsenoneDefines whether this alert is enabled/disabled. NOTE: It is a mandatory parameter for the POST request.
» history_retentionintegerfalsenoneFor how many days to keep the history of this alert. Possible values are from 1 to 99999. NOTE: It is a mandatory parameter for the POST request.
» frequency_minintegerfalsenoneDefines how frequently the alert needs to be checked on PEM database server. Possible values are from 1 to 65534 minutes. NOTE: It is a mandatory parameter for the POST request.
» operatorstringfalsenoneDefines the operator for checking the threshold values. Valid string are ">" and "<". NOTE: It is a mandatory parameter for the POST request.
» low_threshold_valuenumberfalsenoneThreshold value for triggering the low alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» medium_threshold_valuenumberfalsenoneThreshold value for triggering the medium alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» high_threshold_valuenumberfalsenoneThreshold value for triggering the high alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» send_emailbooleanfalsenoneDefines whether to send an email, when the state of alert is changed.
» all_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'email_group_id' when state of the alert is changed.
» email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of alert is changed.
» low_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'low_email_group_id' when state of the alert is set to LOW.
» low_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to LOW.
» med_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'medium_email_group_id' when state of the alert is set to MEDIUM.
» med_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to MEDIUM.
» high_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'high_email_group_id' when state of the alert is set to HIGH.
» high_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to HIGH.
» send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when the state of the alert changes.
» snmp_trap_versionintegerfalsenoneDefines the SNMP trap version. Supported SNMP trap version is 1, 2 or 3
» low_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to LOW.
» med_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to MEDIUM.
» high_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to HIGH.
» params[AlertParams]falsenoneList of the parameter/value pair to be used by the alert template for checking the alerts. NOTE: The all parameter must be defined as per the alert template.
»» paramnamestringfalsenoneName of the parameter. NOTE: This has to present on the alert template parameter list.
»» paramvaluestringfalsenoneValue for the given parameter
» execute_scriptbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is changed to LOW/MEDIUM/HIGH.
» execute_script_on_clearbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is cleared.
» execute_script_on_pem_serverbooleanfalsenoneDefines whether to execute the provided script on the PEM Host, or on the host from where the object is being monitored by the agent.
» script_codestringfalsenoneThe script, which will be executed. It could be a shell/batch script. Please read the documention for detailed information.
» submit_to_nagiosbooleanfalsenoneDefines whether to send notification to the nagios, when state of the alert is chagned.
» override_default_configbooleanfalsenoneDefines whether the default webhook configuration is override or not.
» send_notificationbooleanfalsenoneDefines whether the webhook send notification enabled.
» low_webhook_ids[integer]falsenoneWebhook ids for which low alerts are configured.
» med_webhook_ids[integer]falsenoneWebhook ids for which medium alerts are configured.
» high_webhook_ids[integer]falsenoneWebhook ids for which high alerts are configured.
» cleared_webhook_ids[integer]falsenoneWebhook ids for which cleared alerts are configured.
Info

This operation does not require authentication

post__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_index_{index_name}

Code samples

POST /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}

Create Alert for index level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
index_namepathstringtrueIndex Name
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_index_{index_name}_{alert_id}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}/{alert_id}

Gets Alerts for index level by server_id, database_name, schema_name, index_name and alert_id.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
index_namepathstringtrueIndex Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "send_email": true,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseAlert
Info

This operation does not require authentication

put__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_index_{index_name}_{alert_id}

Code samples

PUT /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}/{alert_id}

Update Alert for index level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
index_namepathstringtrueIndex Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

delete__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_index_{index_name}_{alert_id}

Code samples

DELETE /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}/{alert_id}

Delete the Alert object.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
index_namepathstringtrueIndex Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessful deletionNone

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_sequence_{sequence_name}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}

Gets Alerts for sequence level by server_id, database_name, schema_name and sequence_name.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
sequence_namepathstringtrueSequence Name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "id": 0,
    "alert_name": "string",
    "alert_template": 0,
    "description": "string",
    "enabled": true,
    "history_retention": 0,
    "frequency_min": 0,
    "operator": "string",
    "low_threshold_value": 0,
    "medium_threshold_value": 0,
    "high_threshold_value": 0,
    "send_email": true,
    "all_alert_enable": true,
    "email_group_id": 0,
    "low_alert_enable": true,
    "low_email_group_id": 0,
    "med_alert_enable": true,
    "med_email_group_id": 0,
    "high_alert_enable": true,
    "high_email_group_id": 0,
    "send_trap": true,
    "snmp_trap_version": 0,
    "low_send_trap": true,
    "med_send_trap": true,
    "high_send_trap": true,
    "params": [
      {
        "paramname": "string",
        "paramvalue": "string"
      }
    ],
    "execute_script": true,
    "execute_script_on_clear": true,
    "execute_script_on_pem_server": true,
    "script_code": "string",
    "submit_to_nagios": true,
    "override_default_config": true,
    "send_notification": true,
    "low_webhook_ids": [
      0
    ],
    "med_webhook_ids": [
      0
    ],
    "high_webhook_ids": [
      0
    ],
    "cleared_webhook_ids": [
      0
    ]
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Alert]falsenonenone
» idintegerfalsenoneAlert Id. NOTE: It is not applicable for POST request.
» alert_namestringfalsenoneName of the alert. NOTE: It is a mandatory parameter for the POST request.
» alert_templateintegerfalsenoneID of the alert template, positive integer value. NOTE: It is a mandatory parameter for the POST request.
» descriptionstringfalsenonenone
» enabledbooleanfalsenoneDefines whether this alert is enabled/disabled. NOTE: It is a mandatory parameter for the POST request.
» history_retentionintegerfalsenoneFor how many days to keep the history of this alert. Possible values are from 1 to 99999. NOTE: It is a mandatory parameter for the POST request.
» frequency_minintegerfalsenoneDefines how frequently the alert needs to be checked on PEM database server. Possible values are from 1 to 65534 minutes. NOTE: It is a mandatory parameter for the POST request.
» operatorstringfalsenoneDefines the operator for checking the threshold values. Valid string are ">" and "<". NOTE: It is a mandatory parameter for the POST request.
» low_threshold_valuenumberfalsenoneThreshold value for triggering the low alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» medium_threshold_valuenumberfalsenoneThreshold value for triggering the medium alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» high_threshold_valuenumberfalsenoneThreshold value for triggering the high alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» send_emailbooleanfalsenoneDefines whether to send an email, when the state of alert is changed.
» all_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'email_group_id' when state of the alert is changed.
» email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of alert is changed.
» low_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'low_email_group_id' when state of the alert is set to LOW.
» low_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to LOW.
» med_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'medium_email_group_id' when state of the alert is set to MEDIUM.
» med_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to MEDIUM.
» high_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'high_email_group_id' when state of the alert is set to HIGH.
» high_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to HIGH.
» send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when the state of the alert changes.
» snmp_trap_versionintegerfalsenoneDefines the SNMP trap version. Supported SNMP trap version is 1, 2 or 3
» low_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to LOW.
» med_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to MEDIUM.
» high_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to HIGH.
» params[AlertParams]falsenoneList of the parameter/value pair to be used by the alert template for checking the alerts. NOTE: The all parameter must be defined as per the alert template.
»» paramnamestringfalsenoneName of the parameter. NOTE: This has to present on the alert template parameter list.
»» paramvaluestringfalsenoneValue for the given parameter
» execute_scriptbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is changed to LOW/MEDIUM/HIGH.
» execute_script_on_clearbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is cleared.
» execute_script_on_pem_serverbooleanfalsenoneDefines whether to execute the provided script on the PEM Host, or on the host from where the object is being monitored by the agent.
» script_codestringfalsenoneThe script, which will be executed. It could be a shell/batch script. Please read the documention for detailed information.
» submit_to_nagiosbooleanfalsenoneDefines whether to send notification to the nagios, when state of the alert is chagned.
» override_default_configbooleanfalsenoneDefines whether the default webhook configuration is override or not.
» send_notificationbooleanfalsenoneDefines whether the webhook send notification enabled.
» low_webhook_ids[integer]falsenoneWebhook ids for which low alerts are configured.
» med_webhook_ids[integer]falsenoneWebhook ids for which medium alerts are configured.
» high_webhook_ids[integer]falsenoneWebhook ids for which high alerts are configured.
» cleared_webhook_ids[integer]falsenoneWebhook ids for which cleared alerts are configured.
Info

This operation does not require authentication

post__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_sequence_{sequence_name}

Code samples

POST /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}

Create Alert for sequence level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
sequence_namepathstringtrueSequence Name
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_sequence_{sequence_name}_{alert_id}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}/{alert_id}

Gets Alerts for sequence level by server_id, database_name, schema_name, sequence_name and alert_id.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
sequence_namepathstringtrueSequence Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "send_email": true,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseAlert
Info

This operation does not require authentication

put__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_sequence_{sequence_name}_{alert_id}

Code samples

PUT /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}/{alert_id}

Update Alert for sequence level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
sequence_namepathstringtrueSequence Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

delete__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_sequence_{sequence_name}_{alert_id}

Code samples

DELETE /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}/{alert_id}

Delete the Alert object.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
sequence_namepathstringtrueSequence Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessful deletionNone

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_view_{view_name}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/view/{view_name}

Gets Alerts for view level by server_id, database_name, schema_name and view_name.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
view_namepathstringtrueView Name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "id": 0,
    "alert_name": "string",
    "alert_template": 0,
    "description": "string",
    "enabled": true,
    "history_retention": 0,
    "frequency_min": 0,
    "operator": "string",
    "low_threshold_value": 0,
    "medium_threshold_value": 0,
    "high_threshold_value": 0,
    "send_email": true,
    "all_alert_enable": true,
    "email_group_id": 0,
    "low_alert_enable": true,
    "low_email_group_id": 0,
    "med_alert_enable": true,
    "med_email_group_id": 0,
    "high_alert_enable": true,
    "high_email_group_id": 0,
    "send_trap": true,
    "snmp_trap_version": 0,
    "low_send_trap": true,
    "med_send_trap": true,
    "high_send_trap": true,
    "params": [
      {
        "paramname": "string",
        "paramvalue": "string"
      }
    ],
    "execute_script": true,
    "execute_script_on_clear": true,
    "execute_script_on_pem_server": true,
    "script_code": "string",
    "submit_to_nagios": true,
    "override_default_config": true,
    "send_notification": true,
    "low_webhook_ids": [
      0
    ],
    "med_webhook_ids": [
      0
    ],
    "high_webhook_ids": [
      0
    ],
    "cleared_webhook_ids": [
      0
    ]
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Alert]falsenonenone
» idintegerfalsenoneAlert Id. NOTE: It is not applicable for POST request.
» alert_namestringfalsenoneName of the alert. NOTE: It is a mandatory parameter for the POST request.
» alert_templateintegerfalsenoneID of the alert template, positive integer value. NOTE: It is a mandatory parameter for the POST request.
» descriptionstringfalsenonenone
» enabledbooleanfalsenoneDefines whether this alert is enabled/disabled. NOTE: It is a mandatory parameter for the POST request.
» history_retentionintegerfalsenoneFor how many days to keep the history of this alert. Possible values are from 1 to 99999. NOTE: It is a mandatory parameter for the POST request.
» frequency_minintegerfalsenoneDefines how frequently the alert needs to be checked on PEM database server. Possible values are from 1 to 65534 minutes. NOTE: It is a mandatory parameter for the POST request.
» operatorstringfalsenoneDefines the operator for checking the threshold values. Valid string are ">" and "<". NOTE: It is a mandatory parameter for the POST request.
» low_threshold_valuenumberfalsenoneThreshold value for triggering the low alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» medium_threshold_valuenumberfalsenoneThreshold value for triggering the medium alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» high_threshold_valuenumberfalsenoneThreshold value for triggering the high alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» send_emailbooleanfalsenoneDefines whether to send an email, when the state of alert is changed.
» all_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'email_group_id' when state of the alert is changed.
» email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of alert is changed.
» low_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'low_email_group_id' when state of the alert is set to LOW.
» low_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to LOW.
» med_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'medium_email_group_id' when state of the alert is set to MEDIUM.
» med_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to MEDIUM.
» high_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'high_email_group_id' when state of the alert is set to HIGH.
» high_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to HIGH.
» send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when the state of the alert changes.
» snmp_trap_versionintegerfalsenoneDefines the SNMP trap version. Supported SNMP trap version is 1, 2 or 3
» low_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to LOW.
» med_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to MEDIUM.
» high_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to HIGH.
» params[AlertParams]falsenoneList of the parameter/value pair to be used by the alert template for checking the alerts. NOTE: The all parameter must be defined as per the alert template.
»» paramnamestringfalsenoneName of the parameter. NOTE: This has to present on the alert template parameter list.
»» paramvaluestringfalsenoneValue for the given parameter
» execute_scriptbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is changed to LOW/MEDIUM/HIGH.
» execute_script_on_clearbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is cleared.
» execute_script_on_pem_serverbooleanfalsenoneDefines whether to execute the provided script on the PEM Host, or on the host from where the object is being monitored by the agent.
» script_codestringfalsenoneThe script, which will be executed. It could be a shell/batch script. Please read the documention for detailed information.
» submit_to_nagiosbooleanfalsenoneDefines whether to send notification to the nagios, when state of the alert is chagned.
» override_default_configbooleanfalsenoneDefines whether the default webhook configuration is override or not.
» send_notificationbooleanfalsenoneDefines whether the webhook send notification enabled.
» low_webhook_ids[integer]falsenoneWebhook ids for which low alerts are configured.
» med_webhook_ids[integer]falsenoneWebhook ids for which medium alerts are configured.
» high_webhook_ids[integer]falsenoneWebhook ids for which high alerts are configured.
» cleared_webhook_ids[integer]falsenoneWebhook ids for which cleared alerts are configured.
Info

This operation does not require authentication

post__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_view_{view_name}

Code samples

POST /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/view/{view_name}

Create Alert for view level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
view_namepathstringtrueView Name
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_view_{view_name}_{alert_id}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/view/{view_name}/{alert_id}

Gets Alerts for view level by server_id, database_name, schema_name, view_name and alert_id.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
view_namepathstringtrueView Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "send_email": true,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseAlert
Info

This operation does not require authentication

put__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_view_{view_name}_{alert_id}

Code samples

PUT /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/view/{view_name}/{alert_id}

Update Alert for view level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
view_namepathstringtrueView Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

delete__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_view_{view_name}_{alert_id}

Code samples

DELETE /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/view/{view_name}/{alert_id}

Delete the Alert object.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
view_namepathstringtrueView Name
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessful deletionNone

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_function_{function_name}_args_{function_arguments}_

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/args/{function_arguments}/

Gets Alerts for function level by server_id, database_name, schema_name and function_name.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
function_namepathstringtrueFunction Name
function_argumentspathstringfalseComma-separated list of function arguments.
X-Auth-TokenheaderstringtrueToken of authorization
Detailed descriptions

function_arguments: Comma-separated list of function arguments.

Eg: ag_id integer,srv_id integer

Example responses

200 Response
[
  {
    "id": 0,
    "alert_name": "string",
    "alert_template": 0,
    "description": "string",
    "enabled": true,
    "history_retention": 0,
    "frequency_min": 0,
    "operator": "string",
    "low_threshold_value": 0,
    "medium_threshold_value": 0,
    "high_threshold_value": 0,
    "send_email": true,
    "all_alert_enable": true,
    "email_group_id": 0,
    "low_alert_enable": true,
    "low_email_group_id": 0,
    "med_alert_enable": true,
    "med_email_group_id": 0,
    "high_alert_enable": true,
    "high_email_group_id": 0,
    "send_trap": true,
    "snmp_trap_version": 0,
    "low_send_trap": true,
    "med_send_trap": true,
    "high_send_trap": true,
    "params": [
      {
        "paramname": "string",
        "paramvalue": "string"
      }
    ],
    "execute_script": true,
    "execute_script_on_clear": true,
    "execute_script_on_pem_server": true,
    "script_code": "string",
    "submit_to_nagios": true,
    "override_default_config": true,
    "send_notification": true,
    "low_webhook_ids": [
      0
    ],
    "med_webhook_ids": [
      0
    ],
    "high_webhook_ids": [
      0
    ],
    "cleared_webhook_ids": [
      0
    ]
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[Alert]falsenonenone
» idintegerfalsenoneAlert Id. NOTE: It is not applicable for POST request.
» alert_namestringfalsenoneName of the alert. NOTE: It is a mandatory parameter for the POST request.
» alert_templateintegerfalsenoneID of the alert template, positive integer value. NOTE: It is a mandatory parameter for the POST request.
» descriptionstringfalsenonenone
» enabledbooleanfalsenoneDefines whether this alert is enabled/disabled. NOTE: It is a mandatory parameter for the POST request.
» history_retentionintegerfalsenoneFor how many days to keep the history of this alert. Possible values are from 1 to 99999. NOTE: It is a mandatory parameter for the POST request.
» frequency_minintegerfalsenoneDefines how frequently the alert needs to be checked on PEM database server. Possible values are from 1 to 65534 minutes. NOTE: It is a mandatory parameter for the POST request.
» operatorstringfalsenoneDefines the operator for checking the threshold values. Valid string are ">" and "<". NOTE: It is a mandatory parameter for the POST request.
» low_threshold_valuenumberfalsenoneThreshold value for triggering the low alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» medium_threshold_valuenumberfalsenoneThreshold value for triggering the medium alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» high_threshold_valuenumberfalsenoneThreshold value for triggering the high alert. It can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request.
» send_emailbooleanfalsenoneDefines whether to send an email, when the state of alert is changed.
» all_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'email_group_id' when state of the alert is changed.
» email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of alert is changed.
» low_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'low_email_group_id' when state of the alert is set to LOW.
» low_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to LOW.
» med_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'medium_email_group_id' when state of the alert is set to MEDIUM.
» med_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to MEDIUM.
» high_alert_enablebooleanfalsenoneDefines whether to send an email notification to the group, specified by the parameter 'high_email_group_id' when state of the alert is set to HIGH.
» high_email_group_idintegerfalsenoneDefines to which email group the email notification will be sent, when state of the alert is changed to HIGH.
» send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when the state of the alert changes.
» snmp_trap_versionintegerfalsenoneDefines the SNMP trap version. Supported SNMP trap version is 1, 2 or 3
» low_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to LOW.
» med_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to MEDIUM.
» high_send_trapbooleanfalsenoneDefines whether to send the SNMP trap notification when state of the alert chagnes to HIGH.
» params[AlertParams]falsenoneList of the parameter/value pair to be used by the alert template for checking the alerts. NOTE: The all parameter must be defined as per the alert template.
»» paramnamestringfalsenoneName of the parameter. NOTE: This has to present on the alert template parameter list.
»» paramvaluestringfalsenoneValue for the given parameter
» execute_scriptbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is changed to LOW/MEDIUM/HIGH.
» execute_script_on_clearbooleanfalsenoneDefines whether to execute the provided script if the state of the alert is cleared.
» execute_script_on_pem_serverbooleanfalsenoneDefines whether to execute the provided script on the PEM Host, or on the host from where the object is being monitored by the agent.
» script_codestringfalsenoneThe script, which will be executed. It could be a shell/batch script. Please read the documention for detailed information.
» submit_to_nagiosbooleanfalsenoneDefines whether to send notification to the nagios, when state of the alert is chagned.
» override_default_configbooleanfalsenoneDefines whether the default webhook configuration is override or not.
» send_notificationbooleanfalsenoneDefines whether the webhook send notification enabled.
» low_webhook_ids[integer]falsenoneWebhook ids for which low alerts are configured.
» med_webhook_ids[integer]falsenoneWebhook ids for which medium alerts are configured.
» high_webhook_ids[integer]falsenoneWebhook ids for which high alerts are configured.
» cleared_webhook_ids[integer]falsenoneWebhook ids for which cleared alerts are configured.
Info

This operation does not require authentication

post__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_function_{function_name}_args_{function_arguments}_

Code samples

POST /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/args/{function_arguments}/

Create Alert for function level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
function_namepathstringtrueFunction Name
function_argumentspathstringfalseComma-separated list of function arguments.
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone
Detailed descriptions

function_arguments: Comma-separated list of function arguments.

Eg: ag_id integer,srv_id integer

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

get__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_function_{function_name}_args_{function_arguments}_{alert_id}

Code samples

GET /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/args/{function_arguments}/{alert_id}

Gets Alerts for function level by server_id, database_name, schema_name, function_name and alert_id.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
function_namepathstringtrueFunction Name
function_argumentspathstringfalseComma-separated list of function arguments.
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization
Detailed descriptions

function_arguments: Comma-separated list of function arguments.

Eg: ag_id integer,srv_id integer

Example responses

200 Response
{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "send_email": true,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseAlert
Info

This operation does not require authentication

put__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_function_{function_name}_args_{function_arguments}_{alert_id}

Code samples

PUT /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/args/{function_arguments}/{alert_id}

Update Alert for function level.

Body parameter

{
  "id": 0,
  "alert_name": "string",
  "alert_template": 0,
  "description": "string",
  "enabled": true,
  "history_retention": 0,
  "frequency_min": 0,
  "operator": "string",
  "low_threshold_value": 0,
  "medium_threshold_value": 0,
  "high_threshold_value": 0,
  "all_alert_enable": true,
  "email_group_id": 0,
  "low_alert_enable": true,
  "low_email_group_id": 0,
  "med_alert_enable": true,
  "med_email_group_id": 0,
  "high_alert_enable": true,
  "high_email_group_id": 0,
  "send_trap": true,
  "snmp_trap_version": 0,
  "low_send_trap": true,
  "med_send_trap": true,
  "high_send_trap": true,
  "params": [
    {
      "paramname": "string",
      "paramvalue": "string"
    }
  ],
  "execute_script": true,
  "execute_script_on_clear": true,
  "execute_script_on_pem_server": true,
  "script_code": "string",
  "submit_to_nagios": true,
  "override_default_config": true,
  "send_notification": true,
  "low_webhook_ids": [
    0
  ],
  "med_webhook_ids": [
    0
  ],
  "high_webhook_ids": [
    0
  ],
  "cleared_webhook_ids": [
    0
  ]
}

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
function_namepathstringtrueFunction Name
function_argumentspathstringfalseComma-separated list of function arguments.
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization
bodybodyAlertPayloadtruenone
Detailed descriptions

function_arguments: Comma-separated list of function arguments.

Eg: ag_id integer,srv_id integer

Example responses

Responses

StatusMeaningDescriptionSchema
200OKStatus 200None

Response Schema

Info

This operation does not require authentication

delete__alert_config_server_{server_id}_database_{database_name}_schema_{schema_name}_function_{function_name}_args_{function_arguments}_{alert_id}

Code samples

DELETE /alert/config/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/args/{function_arguments}/{alert_id}

Delete the Alert object.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueServer ID
database_namepathstringtrueDatabase Name
schema_namepathstringtrueSchema Name
function_namepathstringtrueFunction Name
function_argumentspathstringfalseComma-separated list of function arguments.
alert_idpathintegertrueAlert ID
X-Auth-TokenheaderstringtrueToken of authorization
Detailed descriptions

function_arguments: Comma-separated list of function arguments.

Eg: ag_id integer,srv_id integer

Example responses

Responses

StatusMeaningDescriptionSchema
200OKSuccessful deletionNone

Response Schema

Info

This operation does not require authentication