SamplingRule

data class SamplingRule(val attributes: Map<String, String>? = null, val fixedRate: Double, val host: String, val httpMethod: String, val priority: Int, val reservoirSize: Int, val resourceArn: String, val ruleArn: String? = null, val ruleName: String? = null, val serviceName: String, val serviceType: String, val urlPath: String, val version: Int? = null)

Constructors

Link copied to clipboard
constructor(attributes: Map<String, String>? = null, fixedRate: Double, host: String, httpMethod: String, priority: Int, reservoirSize: Int, resourceArn: String, ruleArn: String? = null, ruleName: String? = null, serviceName: String, serviceType: String, urlPath: String, version: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val attributes: Map<String, String>? = null

Matches attributes derived from the request.

Link copied to clipboard

The percentage of matching requests to instrument, after the reservoir is exhausted.

Link copied to clipboard

Matches the hostname from a request URL.

Link copied to clipboard

Matches the HTTP method from a request URL.

Link copied to clipboard

The priority of the sampling rule.

Link copied to clipboard

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.

Link copied to clipboard

Matches the ARN of the AWS resource on which the service runs.

Link copied to clipboard
val ruleArn: String? = null

The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.

Link copied to clipboard
val ruleName: String? = null

The name of the sampling rule. Specify a rule by either name or ARN, but not both.

Link copied to clipboard

Matches the name that the service uses to identify itself in segments.

Link copied to clipboard

Matches the origin that the service uses to identify its type in segments.

Link copied to clipboard

Matches the path from a request URL.

Link copied to clipboard
val version: Int? = null

The version of the sampling rule format (1)