SamplingTargetDocument class

Temporary changes to a sampling rule configuration. To meet the global sampling target for a rule, X-Ray calculates a new reservoir for each service based on the recent sampling results of all services that called GetSamplingTargets.

Constructors

SamplingTargetDocument({double? fixedRate, int? interval, int? reservoirQuota, DateTime? reservoirQuotaTTL, String? ruleName})
SamplingTargetDocument.fromJson(Map<String, dynamic> json)
factory

Properties

fixedRate double?
The percentage of matching requests to instrument, after the reservoir is exhausted.
final
hashCode int
The hash code for this object.
no setterinherited
interval int?
The number of seconds for the service to wait before getting sampling targets again.
final
reservoirQuota int?
The number of requests per second that X-Ray allocated for this service.
final
reservoirQuotaTTL DateTime?
When the reservoir quota expires.
final
ruleName String?
The name of the sampling rule.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited