List Attribute Pattern Rules
/api/attribute-pattern-rulesReturns Attribute Pattern Rules in the given dataset. Omitting serviceNamespace
and serviceName returns every rule in the dataset across all services; supplying
both scopes the response to that single service.
Parameters 9
datasetqueryrequiredThe dataset to list Pattern Rules from.
Optional dataset to query across. Defaults to whatever is configured to be the default dataset for the organization.
"^[a-zA-Z0-9_-]{3,26}$"serviceNamespacequeryFilter to rules scoped to this OpenTelemetry service.namespace. Requires serviceName to also be set.
serviceNamequeryFilter to rules scoped to this OpenTelemetry service.name.
ownershipqueryFilter to rules with this ownership.
user_defined: created, or promoted fromauto_derived, by a human through this API.auto_derived: inferred by the Operation Miner.
"user_defined""auto_derived"statusqueryFilter to rules with this status.
active: applied by the collector's Operation Processor.inactive: stored but not applied.
"active""inactive"priorityqueryFilter to rules at any of these priorities, comma-separated. Priorities 1-5 are the
user-facing priority levels; 0 matches auto-derived rows, which always carry the reserved
priority 0 regardless of the ownership filter.
1maxItems 6Array items
0maximum 5searchQueryqueryOptional search term to filter rules whose spec.details.canonicalOperation or stored
canonical pattern contains it, case-insensitively. The canonical pattern anonymizes
placeholders to <>, and spec.details.canonicalOperation renders them as :name rather
than the <name> form shown in spec.pattern -- so a placeholder's bare name (e.g.
orderId) matches via spec.details.canonicalOperation, but the bracketed form as
displayed (<orderId>) matches neither field.
200limitqueryMaximum number of rules to return.
50minimum 1maximum 200offsetqueryNumber of rules to skip.
0minimum 0Sample request12curl --request GET 'https://api.eu-west-1.aws.dash0.com/api/attribute-pattern-rules?dataset=default' \--header "Authorization: Bearer ${DASH0_AUTH_TOKEN}"
Responses
List of Attribute Pattern Rules
Whether there are more rules beyond the current page.
Rule counts per priority ("0" for auto-derived, "1"-"5" for the user-facing levels),
matching the request's serviceNamespace/serviceName/ownership/status/searchQuery filters
but ignoring the priority filter itself and pagination -- so a caller can show an
accurate count for a collapsed/unselected priority category without fetching its rows.
Present only when offset is 0 or omitted (computed once per fresh query, not on every
page); absent rather than zero-filled when unavailable -- a consumer must not read a
missing priorityCounts as "no rules".