v1

latestOpenAPI 3.0.02026-08-064311,0881.3 MB
policiesManagement

Set Alert Timestamp Format policy.

Set the Alert Timestamp Format policy. This policy controls the date/time format used in alert and recovery notification payloads across all connections and monitor types. When set to ISO, timestamps use the format yyyy-MM-dd HH:mm:ss z. When set to LEGACY, timestamps use the format MM/dd/yyyy hh:mm:ss a z.

put/v1/policies/timestampFormat

Request body

timestampFormatstring required

The timestamp format used in alert notification payloads. Valid values: ISO, LEGACY. ISO format: yyyy-MM-dd HH:mm:ss z. LEGACY format: MM/dd/yyyy hh:mm:ss a z.

Example request

{
  "timestampFormat": "LEGACY"
}

Response

Alert Timestamp Format policy was set successfully.

timestampFormatstring required

The timestamp format used in alert notification payloads. Valid values: ISO, LEGACY. ISO format: yyyy-MM-dd HH:mm:ss z. LEGACY format: MM/dd/yyyy hh:mm:ss a z.

Example response

{
  "timestampFormat": "LEGACY"
}