Metrics from external objects

It is possible to use metrics from external objects with setting up state change conditions.

To use external metrics, you need to have access to the objects you’re pulling metrics from.

To use external metrics, specify the object ID and the name of the metric to be used after the colon with the manual metrics input manual input button.

For example, to use the packetsTransmitted metric from the object with the ID = 634020c368413b26524a3424, input the following string:

634020c368413b26524a3424:packetsTransmitted
external metric

The following code example shows raw input for external metrics:

[
  {
    "condition": {
      "634020c368413b26524a3424:packetsTransmitted": {
        "_eq": "4"
      }
    },
    "state": 3,
    "description": "",
    "externalRefs": [
      {
        "id": "634020c368413b26524a3424",
        "metric": "packetsTransmitted"
      }
    ]
  }
]

This functionality can also be used in the formula editor.

For example, to use external metrics packetsTransmitted and packetsReceived of objects with IDs 634020c368413b26524a3424 and 634020d668413b26524a342b respectively, use the following string:

{{634020c368413b26524a3424:packetsTransmitted}} - {{634020d668413b26524a342b:packetsReceived}}

The following code example shows raw input for formulas with external metrics:

[
  {
    "condition": {
      "_formula": {
        "definition": "{{634020c368413b26524a3424:packetsTransmitted}} - {{634020d668413b26524a342b:packetsReceived}}",
        "value": {
          "_eq": "0"
        }
      }
    },
    "state": 3,
    "description": "",
    "externalRefs": [
      {
        "id": "634020c368413b26524a3424",
        "metric": "packetsTransmitted"
      },
      {
        "id": "634020d668413b26524a342b",
        "metric": "packetsReceived"
      }
    ]
  },
  {
    "condition": {},
    "state": 5,
    "description": ""
  }
]