getSituationHosts
A MoogDb v2 method that returns a list of host names for a Situation, either for all alerts in the Situation or just for unique alerts.
Back to MoogDb V2 API Method Reference.
Request arguments
Method getSituationHosts takes the following request arguments:
Name | Type | Required | Description |
|---|---|---|---|
| Number | Yes | Situation ID. |
| Boolean | No |
Response
Method getSituationHosts returns the following response:
Type | Description |
|---|---|
Native Object | A JSON array containing the host names. |
Examples
The following examples demonstrate typical use of method getSituationHosts:
Response example
Example response returning the host names for the Situation:
{
"hosts": [
"server1",
"server2",
"server3",
"server4",
"server5",
"server6",
"server7"
]
}