AlertPayload
{ "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": 1, "low_alert_enable": true, "low_email_group_id": 1, "med_alert_enable": true, "med_email_group_id": 1, "high_alert_enable": true, "high_email_group_id": 1, "send_trap": false, "snmp_trap_version": 0, "low_send_trap": true, "med_send_trap": true, "high_send_trap": true, "cleared_alert_enable": true, "params": [], "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": false, "low_webhook_ids": [], "med_webhook_ids": [], "high_webhook_ids": [], "cleared_webhook_ids": [] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| alert_name | string | false | none | Name of the alert. NOTE: This property is a mandatory parameter for a POST request. |
| alert_template | integer | false | none | ID of the alert template. The ID must be a positive integer value. NOTE: This property is a mandatory parameter for a POST request. |
| description | string | false | none | none |
| enabled | boolean | false | none | Defines whether this alert is enabled/disabled. NOTE: This property is a mandatory parameter for a POST request. |
| history_retention | integer | false | none | Specifies how many days to keep the history of this alert. Possible values are from 1 to 99999. NOTE: This property is a mandatory parameter for a POST request. |
| frequency_min | integer | false | none | Defines how frequently (in minutes) the alert must be checked on PEM database server. Possible values are 1 to 65534. NOTE: This property is a mandatory parameter for a POST request. |
| operator | string | false | none | Defines the operator for checking threshold values. Valid string are ">" and "<". NOTE: This property is a mandatory parameter for the POST request. |
| low_threshold_value | number | false | none | Threshold value for triggering the low alert. This property can be any valid integer/float value. NOTE: It is a mandatory parameter for a POST request. |
| medium_threshold_value | number | false | none | Threshold value for triggering the medium alert. This property can be any valid integer/float value. NOTE: It is a mandatory parameter for a POST request. |
| high_threshold_value | number | false | none | Threshold value for triggering the high alert. This property can be any valid integer/float value. NOTE: It is a mandatory parameter for a POST request. |
| all_alert_enable | boolean | false | none | Determines whether to send an email notification to the group specified by the parameter 'email_group_id' when the state of the alert changes. |
| email_group_id | integer | false | none | Defines the email group to which email notification are sent, when the state of the alert changes. |
| low_alert_enable | boolean | false | none | Determines whether to send an email notification to the group specified by the parameter 'low_email_group_id' when the state of the alert is set to LOW. |
| low_email_group_id | integer | false | none | Defines the email group to which email notifications are sent when the state of the alert changes to LOW. |
| med_alert_enable | boolean | false | none | Determines whether to send an email notification to the group specified by the parameter 'medium_email_group_id' when the state of the alert is set to MEDIUM. |
| med_email_group_id | integer | false | none | Defines the email group to which email notifications are sent when the state of the alert changes to MEDIUM. |
| high_alert_enable | boolean | false | none | Determines whether to send an email notification to the group specified by the parameter 'high_email_group_id' when the state of the alert is set to HIGH. |
| high_email_group_id | integer | false | none | Defines the email group to which email notification are sent when the state of the alert changes to HIGH. |
| send_trap | boolean | false | none | Determines whether to send an SNMP trap notification when the state of the alert changes. |
| snmp_trap_version | integer | false | none | Defines the SNMP trap version. Supported SNMP trap versions are 1, 2 or 3. |
| low_send_trap | boolean | false | none | Determines whether to send SNMP trap notifications when the state of the alert changes to LOW. |
| med_send_trap | boolean | false | none | Determines whether to send SNMP trap notifications when the state of the alert changes to MEDIUM. |
| high_send_trap | boolean | false | none | Determines whether to send SNMP trap notifications when the state of the alert chagnes to HIGH. |
| cleared_alert_enable | boolean | false | none | Determines whether to mute the notification for 'clear alert'. |
| params | [AlertParams] | false | none | List of parameter/value pairs to be used by the alert template for checking alerts. NOTE: The alert template requires the all parameter to be defined. |
| execute_script | boolean | false | none | Determines whether to execute the provided script if the state of the alert changes to LOW/MEDIUM/HIGH. |
| execute_script_on_clear | boolean | false | none | Determines whether to execute the provided script if the state of the alert clears. |
| execute_script_on_pem_server | boolean | false | none | Determines whether to execute the provided script on the PEM host or the host where the agent is monitoring the object. |
| script_code | string | false | none | The shell or batch script to be executed. Please read the documentation for detailed information. |
| submit_to_nagios | boolean | false | none | Defines whether to send notification to the nagios, when state of the alert is chagned. |
| override_default_config | boolean | false | none | Determines whether to override the default webhook configuration. |
| send_notification | boolean | false | none | Determines whether the webhook send notification is enabled. |
| low_webhook_ids | [integer] | false | none | Defines webhook IDs for which low alerts can be configured. |
| med_webhook_ids | [integer] | false | none | Defines webhook IDs for which medium alerts can be configured. |
| high_webhook_ids | [integer] | false | none | Defines webhook IDs for which high alerts can be configured. |
| cleared_webhook_ids | [integer] | false | none | Defines webhook IDs for which cleared alerts can be configured. |
Alert
{ "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, "cleared_alert_enable": true, "params": [], "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 ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer | false | none | Alert ID. NOTE: This property is not applicable for a POST request. |
| alert_name | string | false | none | Name of the alert. NOTE: This property is a mandatory parameter for a POST request. |
| alert_template | integer | false | none | ID of the alert template. This property must be a positive integer value. NOTE: It is a mandatory parameter for a POST request. |
| description | string | false | none | none |
| enabled | boolean | false | none | Determines whether this alert is enabled/disabled. NOTE: This property is a mandatory parameter for a POST request. |
| history_retention | integer | false | none | Specifies how many days to keep the history of this alert. Possible values are from 1 to 99999. NOTE: This property is a mandatory parameter for a POST request. |
| frequency_min | integer | false | none | Defines in minutes how frequently the alert must be checked on a PEM database server. Possible values are from 1 to 65534. NOTE: This property is a mandatory parameter for a POST request. |
| operator | string | false | none | Defines the operator for checking threshold values. Valid strings are ">" and "<". NOTE: This property is a mandatory parameter for a POST request. |
| low_threshold_value | number | false | none | Threshold value for triggering the low alert. This property can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request. |
| medium_threshold_value | number | false | none | Threshold value for triggering the medium alert. This property can be any valid integer/float value. NOTE: It is a mandatory parameter for the POST request. |
| high_threshold_value | number | false | none | Threshold 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_email | boolean | false | none | Determines whether to send an email when the state of the alert changes. |
| all_alert_enable | boolean | false | none | Determines whether to send an email notification to the group specified by the parameter 'email_group_id' when the state of the alert changes. |
| email_group_id | integer | false | none | Defines the email group to which email notification are sent when the state of the alert changes. |
| low_alert_enable | boolean | false | none | Determines whether to send an email notification to the group specified by the parameter 'low_email_group_id' when the state of the alert is set to LOW. |
| low_email_group_id | integer | false | none | Defines the email group to which email notification are sent when the state of the alert changes to LOW. |
| med_alert_enable | boolean | false | none | Determines whether to send an email notification to the group specified by the parameter 'medium_email_group_id' when the state of the alert is set to MEDIUM. |
| med_email_group_id | integer | false | none | Defines the email group to which email notification are sent when state of the alert changes to MEDIUM. |
| high_alert_enable | boolean | false | none | Determines whether to send an email notification to the group specified by the parameter 'high_email_group_id' when the state of the alert is set to HIGH. |
| high_email_group_id | integer | false | none | Defines the email group to which email notification are sent when the state of the alert changes to HIGH. |
| send_trap | boolean | false | none | Determines whether to send SNMP trap notifications when the state of the alert changes. |
| snmp_trap_version | integer | false | none | Defines the SNMP trap version. Supported SNMP trap versions are 1, 2 or 3 |
| low_send_trap | boolean | false | none | Determines whether to send SNMP trap notifications when the state of the alert changes to LOW. |
| med_send_trap | boolean | false | none | Determines whether to send SNMP trap notification when the state of the alert changes to MEDIUM. |
| high_send_trap | boolean | false | none | Determines whether to send SNMP trap notification when the state of the alert changes to HIGH. |
| cleared_alert_enable | boolean | false | none | Determines whether to mute the notification for 'clear alert'. |
| params | [AlertParams] | false | none | List of parameter/value pairs to be used by the alert template for checking alerts. NOTE: The alert template requires the all parameter to be defined. |
| execute_script | boolean | false | none | Determines whether to execute the provided script if the state of the alert changes to LOW/MEDIUM/HIGH. |
| execute_script_on_clear | boolean | false | none | Determines whether to execute the provided script if the state of the alert is cleared. |
| execute_script_on_pem_server | boolean | false | none | Determines whether to execute the provided script on the PEM host or the host where the agent is monitoring the object. |
| script_code | string | false | none | The shell or batch script to be executed. Please read the documentation for detailed information. |
| submit_to_nagios | boolean | false | none | Determines whether to send notification to the nagios when the state of the alert changes. |
| override_default_config | boolean | false | none | Determines whether to override the default webhook configuration. |
| send_notification | boolean | false | none | Determines whether to enable the webhook send notification. |
| low_webhook_ids | [integer] | false | none | Webhook IDs for which low alerts are configured |
| med_webhook_ids | [integer] | false | none | Webhook IDs for which medium alerts are configured |
| high_webhook_ids | [integer] | false | none | Webhook IDs for which high alerts are configured |
| cleared_webhook_ids | [integer] | false | none | Webhook IDs for which cleared alerts are configured |
AlertParams
{ "paramname": "Exclude tables smaller than", "paramvalue": "string" }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| paramname | string | false | none | Name of the parameter. NOTE: This property must present on the alert template parameter list.Example: |
| paramvalue | string | false | none | Value for the given parameter |
Enumerated Values
| Property | Value |
|---|---|
| paramname | Exclude tables smaller than |
| paramname | mount point |
| paramname | Host IP Address |
| paramname | Time interval to monitor |
| paramname | Time since idle |
| paramname | Per CPU utilization (K%) |
AlternateServerProbeCode
{ "server_version_id": 0, "server_probe_code": "string", "extension_version": 0 }
Properties
| Name | Type | Required | Restrictions | Description | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| server_version_id | integer | false | none | Server version ID for the monitored server
| ||||||||||||||||||||||||||
| server_probe_code | string | false | none | SQL query to run on the specified server version | ||||||||||||||||||||||||||
| extension_version | integer | false | none | Specifies the extension version. Valid for extension target type |
DeletedAlternateServerProbeCode
{ "server_version_id": 0 }
Properties
| Name | Type | Required | Restrictions | Description | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| server_version_id | integer | false | none | Server version ID for the monitored server
|
ProbeColumn
{ "pc_id": 0, "pc_unit": "string", "pc_graphable": true }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| pc_id | integer | false | none | Column identifier |
| pc_unit | string | false | none | Returns the unit of the column. |
| pc_graphable | boolean | false | none | Determines whether the data of the column is graphable on a chart. |
ChartExportTemplate
{ "chart_title": "string", "chart_type": "string", "chart_category": "string", "chart_description": "string", "reference_id": "string", "chart_level": 0, "chart_line_ext": [ 0 ], "chart_line_ext_metric": "string", "chart_line_ext_metric_options": [ 0 ], "chart_line_ext_opt": "string", "chart_line_ext_val": "string", "chart_line_extrapolated_type": "string", "chart_line_points": 0, "chart_line_span": [ 0 ], "chart_refresh": 0, "espan": 0, "line_span": 0, "sel_metrics_L": [ {} ], "sel_metrics_T": [ {} ], "sel_metrics_C": [ {} ], "shared": [ 0 ], "shared_all": true }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| chart_title | string | false | none | Chart title. NOTE: This property is a mandatory parameter for a POST request. |
| chart_type | string | false | none | Chart catagory. NOTE: This property is a mandatory parameter for a POST request. |
| chart_category | string | false | none | Chart type. NOTE: This property is a mandatory parameter for a POST request. |
| chart_description | string | false | none | Description of the chart. NOTE: This property is a mandatory parameter for a POST request. |
| reference_id | string | false | none | Internal identifier for the chart. |
| chart_level | integer | false | none | Defines the chart level. NOTE: This property is a mandatory parameter for a POST request. |
| chart_line_ext | [integer] | false | none | Defines the line chart extrapolation. NOTE: This property is a mandatory parameter for a POST request. |
| chart_line_ext_metric | string | false | none | Defines the line chart extrapolation metrics. NOTE: This property is a mandatory parameter for a POST request. |
| chart_line_ext_metric_options | [integer] | false | none | Defines the line chart extrapolation metrics option. NOTE: This property is a mandatory parameter for a POST request. |
| chart_line_ext_opt | string | false | none | Defines the line chart extrapolation options. NOTE: This property is a mandatory parameter for a POST request. |
| chart_line_ext_val | string | false | none | Defines the line chart extrapolation values. NOTE: This property is a mandatory parameter for a POST request. |
| chart_line_extrapolated_type | string | false | none | Defines the line chart extrapolation type. NOTE: This property is a mandatory parameter for a POST request. |
| chart_line_points | integer | false | none | Defines the line chart extrapolation point. |
| chart_line_span | [integer] | false | none | Defines the line chart span. NOTE: This property is a mandatory parameter for a POST request. |
| chart_refresh | integer | false | none | Chart refresh time |
| espan | integer | false | none | Chart span |
| line_span | integer | false | none | Chart line span |
| sel_metrics_L | [object] | false | none | Defines the line chart metrics and its probes data. |
| sel_metrics_T | [object] | false | none | Defines the table chart metrics and its probes data. |
| sel_metrics_C | [object] | false | none | Defines the capacity manager chart metrics and its probes data. |
| shared | [integer] | false | none | Defines the role ID to which chart was shared. |
| shared_all | boolean | false | none | Determines whether the chart needs to be shared with everyone. |
DashboardExportTemplate
{ "name": "string", "descp": "string", "reference_id": "string", "font": "string", "font_size": 0, "level": 0, "is_ops": true, "show_title": true, "design_layout": [ {} ], "c_charts": [ {} ], "shared": [ 0 ], "shared_all": true }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| name | string | false | none | Defines the dashboard name. NOTE: This property is a mandatory parameter for a POST request. |
| descp | string | false | none | Provides the dashboard description. |
| reference_id | string | false | none | Internal identifier for the dashboard |
| font | string | false | none | Defines the dashboard font. |
| font_size | integer | false | none | Defines the dashboard font size. |
| level | integer | false | none | Defines the dashboard level. |
| is_ops | boolean | false | none | Determines whether the dashboard is for ops. |
| show_title | boolean | false | none | Determines whether the dashboard title is shown. |
| design_layout | [object] | false | none | Defines the dashboard design layout data. |
| c_charts | [object] | false | none | Defines the dependant custom charts and its probes data. |
| shared | [integer] | false | none | Defines the role ID to which the dashboard is shared. |
| shared_all | boolean | false | none | Determines whether the dashboard must be shared with everyone |
CustomDashboardExportData
{ "dashboards": [ 0 ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| dashboards | [integer] | false | none | List of the dashboard IDs |
CustomDashboardExportResponseData
{ "version": 1, "dashboards": [ { "name": "string", "descp": "string", "reference_id": "string", "font": "string", "font_size": 0, "level": 0, "is_ops": true, "show_title": true, "design_layout": [ {} ], "c_charts": [ {} ], "shared": [ 0 ], "shared_all": true } ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| version | integer | false | none | Version of the dashboard export |
| dashboards | [DashboardExportTemplate] | false | none | none |
CustomDashboardImportPostData
{ "version": 1, "skip_overwrite": true, "skip_overwrite_probe": true, "skip_overwrite_chart": true, "dashboards": [ { "name": "string", "descp": "string", "reference_id": "string", "font": "string", "font_size": 0, "level": 0, "is_ops": true, "show_title": true, "design_layout": [ {} ], "c_charts": [ {} ], "shared": [ 0 ], "shared_all": true } ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| version | integer | false | none | Version of the dashboard export |
| skip_overwrite | boolean | false | none | Determines whether the existing chart can be skipped. |
| skip_overwrite_probe | boolean | false | none | Determines whether the existing dependant probes can be skipped. |
| skip_overwrite_chart | boolean | false | none | Determines whether the existing dependant charts can be skipped. |
| dashboards | [DashboardExportTemplate] | false | none | none |
CustomChartExportData
{ "charts": [ 0 ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| charts | [integer] | false | none | List of the chart IDs |
CustomChartExportResponseData
{ "version": 1, "charts": [ { "chart_title": "string", "chart_type": "string", "chart_category": "string", "chart_description": "string", "reference_id": "string", "chart_level": 0, "chart_line_ext": [ 0 ], "chart_line_ext_metric": "string", "chart_line_ext_metric_options": [ 0 ], "chart_line_ext_opt": "string", "chart_line_ext_val": "string", "chart_line_extrapolated_type": "string", "chart_line_points": 0, "chart_line_span": [ 0 ], "chart_refresh": 0, "espan": 0, "line_span": 0, "sel_metrics_L": [ {} ], "sel_metrics_T": [ {} ], "sel_metrics_C": [ {} ], "shared": [ 0 ], "shared_all": true } ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| version | integer | false | none | Version of the chart export |
| charts | [ChartExportTemplate] | false | none | none |
CustomChartImportPostData
{ "version": 1, "skip_overwrite": true, "skip_overwrite_probe": true, "charts": [ { "chart_title": "string", "chart_type": "string", "chart_category": "string", "chart_description": "string", "reference_id": "string", "chart_level": 0, "chart_line_ext": [ 0 ], "chart_line_ext_metric": "string", "chart_line_ext_metric_options": [ 0 ], "chart_line_ext_opt": "string", "chart_line_ext_val": "string", "chart_line_extrapolated_type": "string", "chart_line_points": 0, "chart_line_span": [ 0 ], "chart_refresh": 0, "espan": 0, "line_span": 0, "sel_metrics_L": [ {} ], "sel_metrics_T": [ {} ], "sel_metrics_C": [ {} ], "shared": [ 0 ], "shared_all": true } ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| version | integer | false | none | Version of the chart export |
| skip_overwrite | boolean | false | none | Determines whether the existing chart can be skipped. |
| skip_overwrite_probe | boolean | false | none | Determines whether existing dependant probes can be skipped. |
| charts | [ChartExportTemplate] | false | none | none |
AlertImportExportTemplate
{ "name": "string", "description": "string", "reference_id": "string", "default_history_retention": 0, "object_type": 0, "sql": "string", "applicable_on_server": "ALL", "default_check_frequency": 0, "threshold_unit": "string", "is_system_template": true, "is_auto_create": true, "thresholds": [ 0 ], "operator": ">", "high_threshold_value": "string", "medium_threshold_value": "string", "low_threshold_value": "string", "info_sql": "string", "probes": [ { "probe_name": "string", "collection_method": "w", "enabled": true, "target_type": 0, "any_server_version": true, "any_extension_version": true, "extension_name": "string", "interval": 0, "lifetime": 0, "discard_history": true, "platform": "unix", "probe_code": "string", "probe_columns": [ { "pc_name": "string", "pc_data_type": "bigint", "pc_unit": "string", "pc_col_type": "m", "pc_graphable": true, "pc_calc_pit": true, "pc_pit_default": true } ], "alternate_code": [ { "server_version_id": 0, "server_probe_code": "string", "extension_version": 0 } ], "internal_name": "string" } ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| name | string | false | none | Name of the alert template. NOTE: This property is a mandatory parameter for a POST request. |
| description | string | false | none | Description of the alert template. NOTE: This property is a mandatory parameter for a POST request. |
| reference_id | string | false | none | Internal identifier for the alert template |
| default_history_retention | integer | false | none | Defines the history retention period in days for this type of alerts. NOTE: This property is a mandatory parameter for a POST request. |
| object_type | integer | false | none | Defines the type of the object to which this alert template applies.
|
| sql | string | false | none | SQL query, possibly parameterized, to get a numeric value indicating the threshold reached. NOTE: This property is a mandatory parameter for a POST request. |
| applicable_on_server | string | false | none | Specifies the type of monitored server to which the template applies. Possible values are ALL, POSTGRES_SERVER, ADVANCED_SERVER. NOTE: This property is a mandatory parameter for a POST request. |
| default_check_frequency | integer | false | none | Specifies how frequently (in minutes) to check for the alert that this template defines. NOTE: This property is a mandatory parameter for a POST request. |
| threshold_unit | string | false | none | Units used to calculate the threshold, such as MB/kB/seconds/days/... This value is only used for the GUI. |
| is_system_template | boolean | false | none | Determines whether the given template is system-defined or user-defined. NOTE: This property is not applicable for POST/PUT requests. |
| is_auto_create | boolean | false | none | Determines whether an alert should be created as soon as an agent or server is added to PEM.. |
| thresholds | [number] | false | none | Default threshold values. Values in the thresholds array must be in a sorted order based on the operator. |
| operator | string | false | none | Operator to compare threshold values |
| high_threshold_value | string | false | none | High threshold value |
| medium_threshold_value | string | false | none | Medium threshold value |
| low_threshold_value | string | false | none | Low threshold value |
| info_sql | string | false | none | Defines the SQL query that provides detailed information about the alert on the dashboard. |
| probes | [CustomProbeImportPostData] | false | none | none |
Enumerated Values
| Property | Value |
|---|---|
| applicable_on_server | ALL |
| applicable_on_server | POSTGRES_SERVER |
| applicable_on_server | ADVANCED_SERVER |
| operator | > |
| operator | < |
CustomAlertTemplateExportData
{ "alert_templates": [ 0 ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| alert_templates | [integer] | false | none | List of alert template IDs |
CustomAlertTemplateExportResponseData
{ "version": 1, "alert_templates": [ { "name": "string", "description": "string", "reference_id": "string", "default_history_retention": 0, "object_type": 0, "sql": "string", "applicable_on_server": "ALL", "default_check_frequency": 0, "threshold_unit": "string", "is_system_template": true, "is_auto_create": true, "thresholds": [ 0 ], "operator": ">", "high_threshold_value": "string", "medium_threshold_value": "string", "low_threshold_value": "string", "info_sql": "string", "probes": [ { "probe_name": "string", "collection_method": "w", "enabled": true, "target_type": 0, "any_server_version": true, "any_extension_version": true, "extension_name": "string", "interval": 0, "lifetime": 0, "discard_history": true, "platform": "unix", "probe_code": "string", "probe_columns": [ { "pc_name": "string", "pc_data_type": "bigint", "pc_unit": "string", "pc_col_type": "m", "pc_graphable": true, "pc_calc_pit": true, "pc_pit_default": true } ], "alternate_code": [ { "server_version_id": 0, "server_probe_code": "string", "extension_version": 0 } ], "internal_name": "string" } ] } ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| version | integer | false | none | Version of the alert template export |
| alert_templates | [AlertImportExportTemplate] | false | none | none |
CustomAlertTemplateImportPostData
{ "version": 1, "skip_overwrite": true, "skip_overwrite_probe": true, "alert_templates": [ { "name": "string", "description": "string", "reference_id": "string", "default_history_retention": 0, "object_type": 0, "sql": "string", "applicable_on_server": "ALL", "default_check_frequency": 0, "threshold_unit": "string", "is_system_template": true, "is_auto_create": true, "thresholds": [ 0 ], "operator": ">", "high_threshold_value": "string", "medium_threshold_value": "string", "low_threshold_value": "string", "info_sql": "string", "probes": [ { "probe_name": "string", "collection_method": "w", "enabled": true, "target_type": 0, "any_server_version": true, "any_extension_version": true, "extension_name": "string", "interval": 0, "lifetime": 0, "discard_history": true, "platform": "unix", "probe_code": "string", "probe_columns": [ { "pc_name": "string", "pc_data_type": "bigint", "pc_unit": "string", "pc_col_type": "m", "pc_graphable": true, "pc_calc_pit": true, "pc_pit_default": true } ], "alternate_code": [ { "server_version_id": 0, "server_probe_code": "string", "extension_version": 0 } ], "internal_name": "string" } ] } ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| version | integer | false | none | Version of the alert template export |
| skip_overwrite | boolean | false | none | Determines whether the existing alert template can be skipped. |
| skip_overwrite_probe | boolean | false | none | Determines whether existing dependent probes can be skipped. |
| alert_templates | [AlertImportExportTemplate] | false | none | none |
AlertTemplate
{ "name": "string", "description": "string", "default_history_retention": 0, "object_type": 0, "sql": "string", "applicable_on_server": "ALL", "default_check_frequency": 0, "threshold_unit": "string", "is_system_template": false, "is_auto_create": true, "operator": ">", "low_threshold_value": 0, "medium_threshold_value": 0, "high_threshold_value": 0, "info_sql": "string" }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| name | string | false | none | Name of the alert template. NOTE: This property is a mandatory parameter for a POST request. |
| description | string | false | none | Description of the alert template. NOTE: This property is a mandatory parameter for a POST request. |
| default_history_retention | integer | false | none | Defines the history retention period in days for this type of alerts. NOTE: This property is a mandatory parameter for a POST request. |
| object_type | integer | false | none | Defines the type of the object to which this alert template applies.
|
| sql | string | false | none | SQL query, possibly parameterized, to get a numeric value indicating threshold reached. NOTE: This property is a mandatory parameter for a POST request. |
| applicable_on_server | string | false | none | Specifies the type of monitored server to which the template applies. Possible values are ALL, POSTGRES_SERVER, and ADVANCED_SERVER. NOTE: This property is a mandatory parameter for a POST request. |
| default_check_frequency | integer | false | none | Defines how frequently (in minutes) to check for the alert defined in this template. NOTE: This property is a mandatory parameter for a POST request. |
| threshold_unit | string | false | none | Units used to calculate the threshold, such as MB/kB/seconds/days/... This value is only used for the GUI. |
| is_system_template | boolean | false | none | Determines whether the given template is system-defined or user-defined. NOTE: This property is not applicable for POST/PUT requests. |
| is_auto_create | boolean | false | none | Determines whether an alert should be created as soon as an agent or server is added to PEM.Note: Only supported for Agent and Server level i.e object_type 100 and 200 respectively. |
| operator | string | false | none | Operator to compare threshold values.Only supported for Agent and Server level i.e object_type 100 and 200 respectively. |
| low_threshold_value | number | false | none | Low threshold value.Only supported for Agent and Server level i.e object_type 100 and 200 respectively. |
| medium_threshold_value | number | false | none | Medium threshold value.Only supported for Agent and Server level i.e object_type 100 and 200 respectively. |
| high_threshold_value | number | false | none | High threshold value.Only supported for Agent and Server level i.e object_type 100 and 200 respectively. |
| info_sql | string | false | none | Specifies the SQL query that provides detailed information about the alert on the dashboard. |
Enumerated Values
| Property | Value |
|---|---|
| applicable_on_server | ALL |
| applicable_on_server | POSTGRES_SERVER |
| applicable_on_server | ADVANCED_SERVER |
| operator | > |
| operator | < |
AlertHistory
{ "alert_id": 0, "state": "High", "value": "string", "actual_value": 0 }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| alert_id | integer | false | none | Alert ID |
| state | string | false | none | State |
| value | string | false | none | User-presentable value |
| actual_value | number | false | none | Actual value at the time of state change |
Enumerated Values
| Property | Value |
|---|---|
| state | High |
| state | Medium |
| state | Low |
ServerStatus
{ "id": 0, "name": "string", "group_id": 0, "group_name": "string", "blackout": true, "status": "UP", "alerts": { "total": 0, "acknowledged": 0, "high": 0, "medium": 0, "low": 0, "high_acknowledged": 0, "medium_acknowledged": 0, "low_acknowledged": 0 }, "version": "string", "number_connections": 0, "remote_monitoring": true, "agent_id": 0, "sessions": { "last_recorded_time": 0, "sessions": [ { "database_name": "string", "procpid": 0, "usename": "string", "backend_start": 0, "xact_start": 0, "query_start": 0, "is_waiting": true, "is_idle": true, "is_idle_in_transaction": true, "is_vacuum": true, "is_autovacuum": true, "client_addr": "string", "client_port": 0, "memory_usage_mb": 0, "swap_usage_mb": 0, "cpu_usage": 0, "io_read_bytes": 0, "io_write_bytes": 0, "state": "string", "state_change": 0 } ] } }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer | false | none | Server ID |
| name | string | false | none | Server name |
| group_id | integer | false | none | Group ID under which database server is visible to the user |
| group_name | string | false | none | Group name |
| blackout | boolean | false | none | Status of the alert blackout for the database server |
| status | string | false | none | Server status can be UP, DOWN, UNKNOWN, or UNMANAGED, |
| alerts | object | false | none | List of alerts configured for the database server, including alert status and number of alerts that are acknowledged |
| » total | integer | false | none | Number of alerts configured for the database server |
| » acknowledged | integer | false | none | Number of acknowledged alerts |
| » high | integer | false | none | Number of alerts with state as 'High' |
| » medium | integer | false | none | Number of alerts with state as 'Medium' |
| » low | integer | false | none | Number of alerts with state as 'Low' |
| » high_acknowledged | integer | false | none | Number of acknowledged alerts with state as 'High' |
| » medium_acknowledged | integer | false | none | Number of acknowledged alerts with state as 'Medium' |
| » low_acknowledged | integer | false | none | Number of acknowledged alerts with state as 'Low' |
| version | string | false | none | Current version of the database server |
| number_connections | integer | false | none | Number of connections on the database servers |
| remote_monitoring | boolean | false | none | Determines whether the database server is being monitored remotely by the pemAgent |
| agent_id | integer | false | none | Agent ID that is monitoring the database server |
| sessions | object | false | none | All the session information for database servers |
| » last_recorded_time | number | false | none | Unix time of the last recorded time for session information |
| » sessions | [object] | false | none | List of all the session information for the database server |
| »» database_name | string | false | none | Database name |
| »» procpid | integer | false | none | Process ID |
| »» usename | string | false | none | User name |
| »» backend_start | number | false | none | Unix time for the session start time |
| »» xact_start | number | false | none | Unix time for the transaction start time |
| »» query_start | number | false | none | Unix time for the query start time (if any queries are running) |
| »» is_waiting | boolean | false | none | Is the sesion waiting? |
| »» is_idle | boolean | false | none | Is the session idle? |
| »» is_idle_in_transaction | boolean | false | none | Is the session idle in a transaction? |
| »» is_vacuum | boolean | false | none | Is this a VACUUM session? |
| »» is_autovacuum | boolean | false | none | Is this an AUTO VACUUM session? |
| »» client_addr | string | false | none | Host address for the client of the session |
| »» client_port | integer | false | none | Client port for the session |
| »» memory_usage_mb | number | false | none | Memory usage (in MB) of the session (available only when monitored locally) |
| »» swap_usage_mb | number | false | none | Swap memory usage (in MB) of the session (available only when monitored locally) |
| »» cpu_usage | number | false | none | CPU Usage (in percentage) of the session (available only when monitored locally) |
| »» io_read_bytes | number | false | none | I/O Read (in bytes) of the session (available only when monitored locally) |
| »» io_write_bytes | number | false | none | I/O Write (in bytes) of the session (available only when monitored locally) |
| »» state | string | false | none | Current state of the session (idle, active, idle in transcation, and so forth) |
| »» state_change | number | false | none | Unix time of the last state change in the session |
Enumerated Values
| Property | Value |
|---|---|
| status | UP |
| status | DOWN |
| status | UNKNOWN |
| status | UNMANAGED |
AgentStatus
{ "id": 0, "name": "string", "group_id": 0, "group_name": "string", "blackout": true, "status": "UP", "alerts": { "total": 0, "acknowledged": 0, "high": 0, "medium": 0, "low": 0, "high_acknowledged": 0, "medium_acknowledged": 0, "low_acknowledged": 0 }, "version": "string", "processes": 0, "threads": 0, "cpu_utilization": 0, "memory_utilization": 0, "swap_utilization": 0, "disk_utilization": 0 }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| id | integer | false | none | Agent ID |
| name | string | false | none | Agent name |
| group_id | integer | false | none | Group ID under which agent is visible to the user |
| group_name | string | false | none | Group name |
| blackout | boolean | false | none | Determines whether an alert blackout for the agent is enabled or disabled. |
| status | string | false | none | Agent status can be UP, DOWN, or UNKNOWN |
| alerts | object | false | none | List of alerts configured for the agent, including alert status and number of alerts that are acknowledged |
| » total | integer | false | none | Number of alerts configured for the agent |
| » acknowledged | integer | false | none | Number of acknowledged alerts |
| » high | integer | false | none | Number of alerts with state as 'High' |
| » medium | integer | false | none | Number of alerts with state as 'Medium' |
| » low | integer | false | none | Number of alerts with state as 'Low' |
| » high_acknowledged | integer | false | none | Number of acknowledged alerts with state as 'High' |
| » medium_acknowledged | integer | false | none | Number of acknowledged alerts with state as 'Medium' |
| » low_acknowledged | integer | false | none | Number of acknowledged alerts with state as 'Low' |
| version | string | false | none | Current version of the agent |
| processes | integer | false | none | Number of processes running |
| threads | integer | false | none | Number of threads for all the running processes |
| cpu_utilization | number | false | none | CPU utilization (percentage) |
| memory_utilization | number | false | none | Memory utilization (percentage) |
| swap_utilization | number | false | none | Swap memory utilization (percentage) |
| disk_utilization | number | false | none | Overall disk utilization (percentage) |
Enumerated Values
| Property | Value |
|---|---|
| status | UP |
| status | DOWN |
| status | UNKNOWN |
AlertStatus
{ "alert_since": "string", "alert_id": 0, "alert_name": "string", "alert_state": "High", "value": "string", "object_description": "string", "server_id": 0, "agent_id": 0, "database": "string", "schema": "string", "package": "string", "object": "string", "alert_target_level": "Global", "last_processed": "string", "info": "string", "info_cols": [ "string" ], "info_vals": [ [ "string" ] ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| alert_since | string | false | none | Unix time when alert state last changed |
| alert_id | integer | false | none | Alert internal identification number |
| alert_name | string | false | none | Name of the alert |
| alert_state | string | false | none | Current state of the alert. A 'null' value suggests alert threshold values have not currently been violated for the alert. |
| value | string | false | none | Current value of the alert |
| object_description | string | false | none | Monitoring object description/name |
| server_id | integer | false | none | null or ID of the server |
| agent_id | integer | false | none | null or ID of the agent |
| database | string | false | none | null or name of the database |
| schema | string | false | none | null or name of the schema/namespace |
| package | string | false | none | null or name of the EDB package |
| object | string | false | none | null or name of any other type of object |
| alert_target_level | string | false | none | Alert target level |
| last_processed | string | false | none | String reprenting Unix time when the alert was processed |
| info | string | false | none | Some information at the time when the alert was generated |
| info_cols | [string] | false | none | Array of column names for the information |
| info_vals | [array] | false | none | Detailed information associated with the alert in the form of a table (an array of an array) |
Enumerated Values
| Property | Value |
|---|---|
| alert_state | High |
| alert_state | Medium |
| alert_state | Low |
| alert_target_level | Global |
| alert_target_level | Agent |
| alert_target_level | Server |
| alert_target_level | Database |
| alert_target_level | Schema |
| alert_target_level | Table |
| alert_target_level | Index |
| alert_target_level | Sequence |
| alert_target_level | Function |
| alert_target_level | View |
CustomProbes
{ "probe_id": 0, "probe_name": "string", "enabled": true, "target_type": 0, "internal_name": "string", "is_system_probe": true, "any_server_version": true, "collection_method": "w", "interval": 0, "lifetime": 0, "discard_history": true, "platform": "unix", "probe_code": "string", "probe_columns": [ { "pc_id": 0, "pc_name": "string", "pc_data_type": "bigint", "pc_internal_name": "string", "pc_unit": "string", "pc_col_type": "m", "pc_position": 0, "pc_graphable": true, "pc_calc_pit": true, "pc_pit_default": true } ], "alternate_code": [ { "server_version_id": 0, "server_probe_code": "string", "extension_version": 0 } ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| probe_id | integer | false | none | Identifier for a probe |
| probe_name | string | false | none | Name of the probe |
| enabled | boolean | false | none | Determines whether the probe is enabled or disabled by default. |
| target_type | integer | false | none | Defines the type of the object to which the probe applies.
|
| internal_name | string | false | none | Defines the internal name of the probe. The PEM system creates internal tables for storing probe statistics in the 'pemdata', and 'pemhistory' schema. The names of those tables are the same as the internal name. |
| is_system_probe | boolean | false | none | Determines whether this probe is user-defined. This flag is always false for a user-defined probe. |
| any_server_version | boolean | false | none | Determines whether this probe applies to any version of a Postgres variant. For more details, please consult the documentation. |
| collection_method | string | false | none | Defines the method of statistics collection. PEM supports three methods for custom made probes: SQL, WMI, or batch/shell script.
|
| interval | integer | false | none | Defines how frequently the probe collects statistics (in seconds).Must be greater than or equal to 10 |
| lifetime | integer | false | none | Defines the history data retention time (in days). Valid range is 1-365. This value does not have any effect if 'discard_history' is set to true. |
| discard_history | boolean | false | none | Determines whether to discard history data. When 'discard_history' is set to false, history of the data for this probe is not stored. |
| platform | string | false | none | Defines the platform where this probe can run. This value only applies to an agent-level probe. |
| probe_code | string | false | none | A SQL/Batch script/Shell script/WMI script to collect the statistics as per the definition of the code. |
| probe_columns | [object] | false | none | none |
| » pc_id | integer | false | none | Column identifier |
| » pc_name | string | false | none | Column name |
| » pc_data_type | string | false | none | Data type of the column. Supported datatypes are:
|
| » pc_internal_name | string | false | none | Returns the internal name of the column. |
| » pc_unit | string | false | none | Returns the unit of the column. |
| » pc_col_type | string | false | none | Returns the column as part of the primary key of the internal table, or not. 'k' stands for a key column, and 'm' stands for a member/normal column. |
| » pc_position | integer | false | none | Returns the position of the column in the internal table. |
| » pc_graphable | boolean | false | none | Determines whether the data of the column can be graphed on a chart. |
| » pc_calc_pit | boolean | false | none | Determines whether the server calculates the point-in-time for metric data for this column. |
| » pc_pit_default | boolean | false | none | Determines whether the metric is stored by point-in-time by default. Please refer to the 'Custom Probes' section in the documentation for detailed information. |
| alternate_code | [AlternateServerProbeCode] | false | none | none |
Enumerated Values
| Property | Value |
|---|---|
| collection_method | w |
| collection_method | b |
| collection_method | s |
| platform | unix |
| platform | windows |
| pc_data_type | bigint |
| pc_data_type | char |
| pc_data_type | decimal |
| pc_data_type | double precision |
| pc_data_type | integer |
| pc_data_type | numeric |
| pc_data_type | real |
| pc_data_type | text |
| pc_data_type | text[] |
| pc_data_type | timestamp |
| pc_data_type | timestamptz |
| pc_col_type | m |
| pc_col_type | k |
CustomProbeExportData
{ "probes": [ 0 ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| probes | [integer] | false | none | List of the probe IDs for custom probes |
CustomProbeImportData
{ "version": 1, "skip_overwrite": true, "probes": [ { "probe_name": "string", "collection_method": "w", "enabled": true, "target_type": 0, "any_server_version": true, "any_extension_version": true, "extension_name": "string", "interval": 0, "lifetime": 0, "discard_history": true, "platform": "unix", "probe_code": "string", "probe_columns": [ { "pc_name": "string", "pc_data_type": "bigint", "pc_unit": "string", "pc_col_type": "m", "pc_graphable": true, "pc_calc_pit": true, "pc_pit_default": true } ], "alternate_code": [ { "server_version_id": 0, "server_probe_code": "string", "extension_version": 0 } ], "internal_name": "string" } ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| version | integer | false | none | Version of the probe export |
| skip_overwrite | boolean | false | none | Determines whether existing probes can be skipped. |
| probes | [CustomProbeImportPostData] | false | none | none |
CustomProbeImportPostData
{ "probe_name": "string", "collection_method": "w", "enabled": true, "target_type": 0, "any_server_version": true, "any_extension_version": true, "extension_name": "string", "interval": 0, "lifetime": 0, "discard_history": true, "platform": "unix", "probe_code": "string", "probe_columns": [ { "pc_name": "string", "pc_data_type": "bigint", "pc_unit": "string", "pc_col_type": "m", "pc_graphable": true, "pc_calc_pit": true, "pc_pit_default": true } ], "alternate_code": [ { "server_version_id": 0, "server_probe_code": "string", "extension_version": 0 } ], "internal_name": "string" }
Properties
allOf
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | CustomProbePostData | false | none | none |
and
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| anonymous | object | false | none | none |
| » internal_name | string | false | none | Internal name of the probe from the system where probe was exported |
CustomProbePostData
{ "probe_name": "string", "collection_method": "w", "enabled": true, "target_type": 0, "any_server_version": true, "any_extension_version": true, "extension_name": "string", "interval": 0, "lifetime": 0, "discard_history": true, "platform": "unix", "probe_code": "string", "probe_columns": [ { "pc_name": "string", "pc_data_type": "bigint", "pc_unit": "string", "pc_col_type": "m", "pc_graphable": true, "pc_calc_pit": true, "pc_pit_default": true } ], "alternate_code": [ { "server_version_id": 0, "server_probe_code": "string", "extension_version": 0 } ] }
Properties
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| probe_name | string | false | none | Name of the probe |
| collection_method | string | false | none | Defines the method of statistics collection. PEM supports three methods for custom made probes: SQL, WMI, or batch/shell script.
|
| enabled | boolean | false | none | Determines whether whether the probe is enabled/disabled by default. |
| target_type | integer | false | none | Defines the type of the object to which the probe applies.
|
| any_server_version | boolean | false | none | Determines whether this probe applies to any version of a Postgres variant. For more details, please consult the documentation. |
| any_extension_version | boolean | false | none | Determines whether this probe applies to any version of a Extension variant. For more details, please consult the documentation. |
| extension_name | string | false | none | Name of the extension.
|
| interval | integer | false | none | Defines how frequently the probe collects statistics (in seconds).Must be greater than or equal to 10 |
| lifetime | integer | false | none | Defines the history data retention time (in days). Valid range is 1-365. This value does not have any effect if 'discard_history' is set to true. |
| discard_history | boolean | false | none | Defines whether to discard history data. When 'discard_history' is set to false, no history data is stored for this probe. |
| platform | string | false | none | Defines the platform where this probe can run. This value only applies to an agent-level probe. |
| probe_code | string | false | none | A SQL/Batch script/Shell script/WMI script to collect the statistics as per definition of the code. |
| probe_columns | [object] | false | none | none |
| » pc_name | string | false | none | Column name |
| » pc_data_type | string | false | none | Data type of the column. Supported datatypes are:
|
| » pc_unit | string | false | none | Returns the unit of the column. |
| » pc_col_type | string | false | none | Returns the columns as part of the primary key of the internal table, or not. 'k' stands for a key column, and 'm' stands for a member/normal column. |
| » pc_graphable | boolean | false | none | Determines whether the data of the column can be graphed on a chart. |
| » pc_calc_pit | boolean | false | none | Determines whether the server calculates point-in-time for metric data for this column. |
| » pc_pit_default | boolean | false | none | Determines whether metric data is stored by point-in-time by default. Please refer to the 'Custom Probes' section in the documentation for detailed information. |
| alternate_code | [AlternateServerProbeCode] | false | none | none |
Enumerated Values
| Property | Value |
|---|---|
| collection_method | w |
| collection_method | b |
| collection_method | s |
| platform | unix |
| platform | windows |
| pc_data_type | bigint |
| pc_data_type | char |
| pc_data_type | decimal |
| pc_data_type | double precision |
| pc_data_type | integer |
| pc_data_type | numeric |
| pc_data_type | real |
| pc_data_type | text |
| pc_data_type | text[] |
| pc_data_type | timestamp |
| pc_data_type | timestamptz |
| pc_col_type | m |
| pc_col_type | k |