Skip to main content

indexing_rules

Creates, updates, deletes, gets or lists an indexing_rules resource.

Overview

Nameindexing_rules
TypeResource
Idaws.xray.indexing_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
indexing_rulesarrayRetrieves all indexing rules.
next_tokenstringSpecify the pagination token returned by a previous request to retrieve the next page of indexes.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_indexing_rulesselectregionRetrieves all indexing rules. Indexing rules are used to determine the server-side sampling rate for spans ingested through the CloudWatchLogs destination and indexed by X-Ray. For more information, see Transaction Search.
update_indexing_ruleupdateregion, Name, RuleModifies an indexing rule’s configuration. Indexing rules are used for determining the sampling rate for spans indexed from CloudWatch Logs. For more information, see Transaction Search.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves all indexing rules. Indexing rules are used to determine the server-side sampling rate for spans ingested through the CloudWatchLogs destination and indexed by X-Ray. For more information, see Transaction Search.

SELECT
indexing_rules,
next_token
FROM aws.xray.indexing_rules
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Modifies an indexing rule’s configuration. Indexing rules are used for determining the sampling rate for spans indexed from CloudWatch Logs. For more information, see Transaction Search.

UPDATE aws.xray.indexing_rules
SET
Name = '{{ Name }}',
Rule = '{{ Rule }}'
WHERE
region = '{{ region }}' --required
AND Name = '{{ Name }}' --required
AND Rule = '{{ Rule }}' --required
RETURNING
indexing_rule;