wiki:programmersguide/architecture/services/alert/Alert

Version 6 (modified by jano.simas, 10 years ago) (diff)

--

Alert

JSon

Estrutura base do formato de transferencia de um Alert.

{
  "class" : "Alert",
  "id" : INT,
  "project_id" : INT,
  "service_instance_id" : INT,
  "active" : BOOL,
  "name" : STRING,
  "description" : STRING,
  "schedule" : SCHEDULE,
  "filter" : FILTER,
  "additional_data" : [ {
      "dataseries_id" = INT,
      "dataset_id" = INT,
      "referrer_attribute" = STRING,
      "referred_attribute" = STRING,
      "attributes" = [ STRING,
      ...
      ]
    },
  ...
  ],
  "risk" : DATA_SERIES_RISK,
  "recipients" = [ {
      "include_report" = BOOL,
      "notify_on_change" = BOOL,
      "simplified_report" = BOOL,
      "notify_on_risk_level" = UINT,
      "targets" = [STRING,
      ...
      ]
    },
  ...
  ]
}