BehaviorCriteria

public struct BehaviorCriteria : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • The operator that relates the thing measured (metric) to the criteria (containing a value or statisticalThreshold).

    Declaration

    Swift

    public let comparisonOperator: ComparisonOperator?
  • If a device is in violation of the behavior for the specified number of consecutive datapoints, an alarm occurs. If not specified, the default is 1.

    Declaration

    Swift

    public let consecutiveDatapointsToAlarm: Int?
  • If an alarm has occurred and the offending device is no longer in violation of the behavior for the specified number of consecutive datapoints, the alarm is cleared. If not specified, the default is 1.

    Declaration

    Swift

    public let consecutiveDatapointsToClear: Int?
  • Use this to specify the time duration over which the behavior is evaluated, for those criteria which have a time dimension (for example, NUM_MESSAGES_SENT). For a statisticalThreshhold metric comparison, measurements from all devices are accumulated over this time duration before being used to calculate percentiles, and later, measurements from an individual device are also accumulated over this time duration before being given a percentile rank.

    Declaration

    Swift

    public let durationSeconds: Int?
  • A statistical ranking (percentile) which indicates a threshold value by which a behavior is determined to be in compliance or in violation of the behavior.

    Declaration

    Swift

    public let statisticalThreshold: StatisticalThreshold?
  • The value to be compared with the metric.

    Declaration

    Swift

    public let value: MetricValue?
  • Undocumented

    Declaration

    Swift

    public init(comparisonOperator: ComparisonOperator? = nil, consecutiveDatapointsToAlarm: Int? = nil, consecutiveDatapointsToClear: Int? = nil, durationSeconds: Int? = nil, statisticalThreshold: StatisticalThreshold? = nil, value: MetricValue? = nil)
  • Declaration

    Swift

    public func validate(name: String) throws