SamplingRule
public struct SamplingRule : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
Matches attributes derived from the request.
Declaration
Swift
public let attributes: [String : String]?
-
The percentage of matching requests to instrument, after the reservoir is exhausted.
Declaration
Swift
public let fixedRate: Double
-
Matches the hostname from a request URL.
Declaration
Swift
public let host: String
-
Matches the HTTP method of a request.
Declaration
Swift
public let hTTPMethod: String
-
The priority of the sampling rule.
Declaration
Swift
public let priority: Int
-
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.
Declaration
Swift
public let reservoirSize: Int
-
Matches the ARN of the AWS resource on which the service runs.
Declaration
Swift
public let resourceARN: String
-
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
Declaration
Swift
public let ruleARN: String?
-
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
Declaration
Swift
public let ruleName: String?
-
Matches the name that the service uses to identify itself in segments.
Declaration
Swift
public let serviceName: String
-
Matches the origin that the service uses to identify its type in segments.
Declaration
Swift
public let serviceType: String
-
Matches the path from a request URL.
Declaration
Swift
public let uRLPath: String
-
The version of the sampling rule format (1).
Declaration
Swift
public let version: Int
-
init(attributes:fixedRate:host:hTTPMethod:priority:reservoirSize:resourceARN:ruleARN:ruleName:serviceName:serviceType:uRLPath:version:)
Undocumented
Declaration
Swift
public init(attributes: [String : String]? = nil, fixedRate: Double, host: String, hTTPMethod: String, priority: Int, reservoirSize: Int, resourceARN: String, ruleARN: String? = nil, ruleName: String? = nil, serviceName: String, serviceType: String, uRLPath: String, version: Int)
-
Declaration
Swift
public func validate(name: String) throws