Перейти к содержанию

event MX Message

event message is generated by classifier service when create Event.

Message Headers

Message-Type
Type of message. Always event.
Sharding-Key
Key for consistent sharding.
Labels
Managed Object's effective labels.

Message Format

Message contains JSON object, containing objects of following structure

NameTypeDescription
timestampDateTimeISO 8601 timestamp (i.e. YYYY-MM-DDTHH:MM:SS) of register source message
message_idStringGlobal message identifier
collector_typeStringEvent source (collector) syslog/snmptrap/system
collectorStringSource collector Pool
addressStringSNMP Trap Source Address
managed_objectObject Managed Object details
idStringManaged Object's ID
remote_systemObject Source remote system for Managed Object
idStringExternal system's id
nameStringExternal system's name
nameStringManaged Object's name
remote_idStringExternal system's id (Opaque attribbute)
bi_idIntegerManaged Object's BI ID
administrative_domainObject Administrative Domain details
idStringAdministrative Domain's ID
nameStringAdministrative Domain's name
remote_idStringManaged Object Administrative Domain's ID in Remote System (if any)
remote_systemObject Source remote system for Managed Object Administrative Domain
{{ tab4 }} idStringExternal system's id
{{ tab4 }} nameStringExternal system's name
labelsArray of StringManaged Object's labels
event_classStringEvent Class (set by Classifier)
idStringEvent Class's ID
nameStringEvent Class's Name
event_varsObject Key-value dictionary of event's variables
data (syslog)Object Syslog message body content
facilityStringSyslog facility
severityStringSyslog severity
messageStringSyslog message
data (snmptrap)Object SNMP Trap message VarBinds
varsArray of SNMP Trap varbinds
oidStringSNMP var OID
resolved_oidStringResolved SNMP Var OID
valueStringSNMP Var value
resolved_valueStringResolved (with hints) SNMP Var value

Example

{
  "timestamp": "2022-07-23T19:04:52",
  "message_id": "2075b637-3a6c-4e09-b7b6-2f6ac63f68bb",
  "collector_type": "snmptrap",
  "collector": "default",
  "address": "127.0.0.1",
  "managed_object": {
    "id": "450",
    "bi_id": 7602684790455147111,
    "name": "device-1",
    "administrative_domain": {
      "id": 11,
      "name": "default",
      "remote_system": {
        "id": "596e715fc165cf1e082ea14c",
        "name": "TEST"
      },
      "remote_id": "1"
    },
    "labels": [],
    "remote_system": {
      "id": "596e715fc165cf1e082ea14c",
      "name": "TEST"
    },
    "remote_id": "22"
  },
  "event_class": {
    "id": "5ec11167c8e0399ae0e05eb1",
    "name": "Chassis | CPU | CPU Rate Limit"
  },
  "event_vars": {
    "cpu": "32",
    "traffic": "mcRouting"
  },
  "data": {
    "vars": [
      {
        "oid": "1.3.6.1.2.1.1.3.0",
        "value": "402494183",
        "resolved_oid": "DISMAN-EVENT-MIB::sysUpTimeInstance",
        "resolved_value": "402494183"
      },
      {
        "oid": "1.3.6.1.6.3.1.1.4.1.0",
        "value": "1.3.6.1.4.1.35265.1.23.1.773.1.0.1",
        "resolved_oid": "SNMPv2-MIB::snmpTrapOID.0",
        "resolved_value": "ELTEX-MES-SWITCH-RATE-LIMITER-MIB::eltCpuRateLimiterTrap"
      },
      {
        "oid": "1.3.6.1.4.1.35265.1.23.1.773.1.1.1.1.1.22",
        "value": "22",
        "resolved_oid": "ELTEX-MES-SWITCH-RATE-LIMITER-MIB::eltCpuRateLimiterIndex.22",
        "resolved_value": "mcRouting"
      },
      {
        "oid": "1.3.6.1.4.1.35265.1.23.1.773.1.1.1.1.2.22",
        "value": "32",
        "resolved_oid": "ELTEX-MES-SWITCH-RATE-LIMITER-MIB::eltCpuRateLimiterValue.22",
        "resolved_value": "32"
      }
    ]
  }
}