XRay.Paginator.
GetSamplingRules
¶paginator = client.get_paginator('get_sampling_rules')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from XRay.Client.get_sampling_rules()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
A token to specify where to start paginating. This is the NextToken
from a previous response.
{
'SamplingRuleRecords': [
{
'SamplingRule': {
'RuleName': 'string',
'RuleARN': 'string',
'ResourceARN': 'string',
'Priority': 123,
'FixedRate': 123.0,
'ReservoirSize': 123,
'ServiceName': 'string',
'ServiceType': 'string',
'Host': 'string',
'HTTPMethod': 'string',
'URLPath': 'string',
'Version': 123,
'Attributes': {
'string': 'string'
}
},
'CreatedAt': datetime(2015, 1, 1),
'ModifiedAt': datetime(2015, 1, 1)
},
],
}
Response Structure
Rule definitions and metadata.
A SamplingRule and its metadata.
The sampling rule.
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
Matches the ARN of the Amazon Web Services resource on which the service runs.
The priority of the sampling rule.
The percentage of matching requests to instrument, after the reservoir is exhausted.
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
Matches the name
that the service uses to identify itself in segments.
Matches the origin
that the service uses to identify its type in segments.
Matches the hostname from a request URL.
Matches the HTTP method of a request.
Matches the path from a request URL.
The version of the sampling rule format ( 1
).
Matches attributes derived from the request.
When the rule was created.
When the rule was last modified.