sampling_targets
Creates, updates, deletes, gets or lists a sampling_targets resource.
Overview
| Name | sampling_targets |
| Type | Resource |
| Id | aws.xray.sampling_targets |
Fields
The following fields are returned by SELECT queries:
- get_sampling_targets
| Name | Datatype | Description |
|---|---|---|
last_rule_modification | string (date-time) | The last time a user changed the sampling rule configuration. If the sampling rule configuration changed since the service last retrieved it, the service should call GetSamplingRules to get the latest version. |
sampling_target_documents | array | Updated rules that the service should use to sample requests. |
unprocessed_boost_statistics | array | Information about SamplingBoostStatisticsDocument that X-Ray could not process. |
unprocessed_statistics | array | Information about SamplingStatisticsDocument that X-Ray could not process. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_sampling_targets | select | region | Requests a sampling quota for rules that the service is using to sample requests. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_sampling_targets
Requests a sampling quota for rules that the service is using to sample requests.
SELECT
last_rule_modification,
sampling_target_documents,
unprocessed_boost_statistics,
unprocessed_statistics
FROM aws.xray.sampling_targets
WHERE region = '{{ region }}' -- required
;