Get Alarm Counts By Category And Severity

Get Alarm Counts By Category And Severity
Get the alarm counts by severity and feature

When invoking this API, the Alarm instances are accounted for in a map where the key is a category, by default feature name, and the value contains counts by severity. When the optional FeatureName request parameter is specified, the resulting list will only include the feature names passed along with the instance counts by severity for those features.

Request
URI
POST
https://{api_host}/ssp/alarms/counts
COPY
Request Body
AlarmInstanceCountFilterRequest of type(s) application/json
Optional

Show optional properties

{
    "group_by": "FEATURE_NAME"
}
{
    "filter_match": [
        "string"
    ],
    "group_by": "FEATURE_NAME",
    "before": 0,
    "after": 0
}
array of string
filter_match
Optional

List of values to filter alarm instances by the specified group_by type. For example, if group_by is FEATURE_NAME, this list should contain feature names to filter by.

string
group_by
Required

Specifies how to group alarm counts in the response:

  • FEATURE_NAME - Group alarms by the feature they belong to (e.g., networking, security)
  • EVENT_TYPE - Group alarms by the type of event that triggered them
Possible values are : FEATURE_NAME, EVENT_TYPE,
integer As int64 As int64
before
Optional

Timestamp in milliseconds since epoch.

integer As int64 As int64
after
Optional

Timestamp in milliseconds since epoch.

Authentication
This operation uses the following authentication methods.
Responses
200

Successfully retrieved alarm instance counts grouped by the requested criteria. Returns counts of alarm instances broken down by severity and category (feature or event type), including separate counts for open, suppressed, resolved, and acknowledged states.

Returns AlarmCounts of type(s) application/json
{
    "open_instance_counts": [
        {
            "categories": [
                {
                    "category": "string",
                    "severity_counts": {
                        "severity_counts": [
                            {
                                "severity": "CRITICAL",
                                "count": 1
                            }
                        ]
                    }
                }
            ]
        }
    ],
    "suppressed_instance_counts": [
        {
            "categories": [
                {
                    "category": "string",
                    "severity_counts": {
                        "severity_counts": [
                            {
                                "severity": "CRITICAL",
                                "count": 1
                            }
                        ]
                    }
                }
            ]
        }
    ],
    "resolved_instance_counts": [
        {
            "categories": [
                {
                    "category": "string",
                    "severity_counts": {
                        "severity_counts": [
                            {
                                "severity": "CRITICAL",
                                "count": 1
                            }
                        ]
                    }
                }
            ]
        }
    ],
    "acknowledged_instance_counts": [
        {
            "categories": [
                {
                    "category": "string",
                    "severity_counts": {
                        "severity_counts": [
                            {
                                "severity": "CRITICAL",
                                "count": 1
                            }
                        ]
                    }
                }
            ]
        }
    ],
    "total_instance_count": 0
}
array of object
open_instance_counts
Optional

List of alarm counts for alarms in the OPEN state, grouped by both category and severity. These represent active alarms that require attention.

array of object
suppressed_instance_counts
Optional

List of alarm counts for alarms in the SUPPRESSED state, grouped by both category and severity. These represent alarms that have been temporarily silenced.

array of object
resolved_instance_counts
Optional

List of alarm counts for alarms in the RESOLVED state, grouped by both category and severity. These represent alarms where the underlying condition has been fixed or no longer exists.

array of object
acknowledged_instance_counts
Optional

List of alarm counts for alarms in the ACKNOWLEDGED state, grouped by both category and severity. These represent alarms that have been seen and are being handled.

integer As int64 As int64
total_instance_count
Optional

Total count of Alarm instances found (across all pages)


400

The request was invalid. This typically occurs when the filter criteria are malformed or contain invalid values. Check the error response for details about which parameters were invalid.

Returns Error of type(s) application/json
{
    "error_code": 0,
    "module_name": "string",
    "error_message": "string"
}
integer
error_code
Required

HTTP Status or Application error code.

string
module_name
Optional

Module where the error happened.

string
error_message
Required

Message describing the error.


404

No alarm instances were found matching the specified filter criteria. This may indicate that there are no alarms in the system for the requested time period, features, or other filter parameters.

Returns Error of type(s) application/json
"Error Object"
integer
error_code
Required

HTTP Status or Application error code.

string
module_name
Optional

Module where the error happened.

string
error_message
Required

Message describing the error.


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"group_by:"string"}' https://{api_host}/ssp/alarms/counts