builtin:ua.dql-filtering)
Configure DQL filtering.
Schema ID | Schema groups | Scope |
---|---|---|
builtin:ua.dql-filtering |
| ua-explorer |
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:ua.dql-filtering |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:ua.dql-filtering | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:ua.dql-filtering |
To execute this request, you need an access token with Read settings (settings.read
) scope. To learn how to obtain and use it, see Tokens and authentication.
Property | Type | Description | Required |
---|---|---|---|
Keykey | text | Filtering key used that can be referenced in Inventory Explorer types config. | required |
Filtersfilters | FilterDefinition[] | List of filters. | required |
FilterDefinition
objectProperty | Type | Description | Required |
---|---|---|---|
Filter labellabel | text | Name of the filter which is shown in the UI. | required |
Queryquery | text | DQL fragment that should be inserted after "filter" command. Following variables are available in this field: $value (from value suggestion), $key (optionally from key-value suggestions) and $field (field-reference). | required |
Fieldfield | text | Reference to a field from main query or lookup, the field that should be filtered. | required |
Default filterdefaultFilter | boolean | Specifies if a the filter is suggested as complete statement, when typing values into the filter field without selecting a key first. | required |
Distinct filterdistinctFilter | boolean | Specifies if the filter is suggested again, once selected | required |
Field IDsvalueSuggestion | ValueSuggestion | Datasource of autosuggestion. | required |
ValueSuggestion
objectProperty | Type | Description | Required |
---|---|---|---|
type | enum |
| required |
Value extractorvalueExtractor | text | Required for filter where value needs to be extracted from a field. It is also needed if other fields than $value is required (like $key) | optional |
Value formattervalueFormatter | text | When the suggestion doesn't provide a display name, a formatter can be used to produce a name based on value. | optional |
Predefined filter valuesvalues | PredefinedFilterValue[] | If the suggestion doesn't provide display name and name can be produced based on value | required |
PredefinedFilterValue
objectProperty | Type | Description | Required |
---|---|---|---|
Texttext | text | Required for filter where value needs to be extracted from a field, it is also needed if other fields than $value is required (like $key). | required |
Valuevalue | text | Value that should be included in main query - Eq. "DE", to fit into "country == $value" query. | optional |
Queryquery | text | Query for each value, if specified it overrides the main query. Eg. "problems > 0". | optional |