For the complete documentation index, see llms.txt. This page is also available as Markdown.

getIncidentAffectedResourceFilters

Returns the per-option resource counts for the Affected Resources filter bar: kind, indicator, application, appTag and businessUnit. Each facet counts resources with the search and every other filter applied and its own field excluded. The kind, itemLimit, cursor, sortBy and sortOrder of the input are ignored.

Examples

query GetIncidentAffectedResourceFilters($incidentId: String!, $input: GetIncidentAffectedResourcesInput) {
  getIncidentAffectedResourceFilters(incidentId: $incidentId, input: $input) {
    type
    items {
      value
      count
      label
    }
    isTruncated
  }
}

Variables

This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.

{
  "incidentId": "example",
  "input": {
    "kind": "Image",
    "itemLimit": 42,
    "cursor": "example",
    "search": "example",
    "conditionalFilters": [
      {
        "fieldName": "example",
        "values": ["example"],
        "condition": "OR"
      }
    ],
    "sortBy": "Name",
    "sortOrder": "asc"
  }
}

Arguments

You can use the following argument(s) to customize your getIncidentAffectedResourceFilters query.

Argument
Description
Supported fields

incidentId String! required

The input carries the search and filters that the counts are computed under. When omitted, no search and no filters apply.

kind AffectedResourceKind itemLimit Int cursor String search String conditionalFilters [IncidentConditionalFilterInput!] sortBy AffectedResourceSortField sortOrder SortOrder

Fields

Return type: [IncidentEvidenceFilterGroup!]!

You can use the following field(s) to specify what information your getIncidentAffectedResourceFilters query will return. Please note that some fields may have their own subfields.

Field
Description
Supported fields

type String!

The name of the filter field the options belong to.

The options of the filter field with their counts.

value String! count Int! label String

isTruncated Boolean

This flag is set on an affected-resources facet group when its counts include cloud accounts and only a limited number of those accounts were evaluated, so the cloud account share of the counts is partial. It is absent on every other facet group.

Last updated