labels_changed

Function labels_changed 

Source
pub fn labels_changed(
    host_id: impl AsRef<str>,
    labels: impl Into<HashMap<String, String>>,
) -> Value
Expand description

Generates an event payload for when host labels are changed

§Arguments

  • host_id - ID of the host whose labels changed
  • labels - New set of labels as key-value pairs

§Returns

JSON object containing updated label information