A MoogDb v2 method that returns the flags for one or more Situations.
See Situation Flags for more information on Moogsoft Enterprise Situation flags.
Method getSituationFlags
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| Array | Yes | IDs of the Situations to return the flags for. |
Method getSituationFlags
returns the following response:
Type | Description |
---|---|
JSON Array | An array of the flags associated with the specified Situation IDs. |
The following examples demonstrate typical use of method getSituationFlags
:
Example request to return the flags associated with Situation IDs 1 and 2:
var result = JSON.stringify(moogdb.getSituationFlags([1, 2]))
Example response returning the flags associated with specified Situations:
{"1":["A1", "B1"], "2":["A1"]}