Skip to content

Service Status Change MX Message

service_status_change message is generated by Worker service when service change oper status.

Message Headers

Message-Type
Type of message. Always service_status_change.
Sharding-Key
Key for consistent sharding.
Labels
Service's effective labels.

Message Format

Message contains JSON object, containing objects of following structure

NameTypeDescription
labelStringService label (name)
descriptionStringService description
in_maintenanceBoolService In Maintenance Flag
agreement_idStringService Agreement_id
statusObject Service Oper status
idStringCurrent Status ID
nameStringCurrent Status Name
profileObject Service Profile
idStringService Profile ID
nameStringService Profile Name
from_statusObject Previous Oper Status
idStringCurrent Status ID
nameStringCurrent Status Name
remote_systemObject Source remote system for service
idStringExternal system's id
nameStringExternal system's name
remote_idStringExternal system's id (Opaque attribbute)
bi_idIntegerBI Database id (metrics)

Example

{
  "id": "6760e485b2a14cf33aebe80d",
  "label": "www.com",
  "description": null,
  "profile": {
    "id": "6760e0cab7a64fd042e04aa5",
    "name": "WEB сайт"
  },
  "status": {
    "id": 4,
    "name": "DOWN"
  },
  "in_maintenance": 0,
  "agreement_id": null,
  "caps": {
    "Web Site | Name": "www.com"
  },
  "from_status": {
    "id": 1,
    "name": "UP"
  },
  "ts": [
    "2025-05-26T17:46:52"
  ]
}