Metric

public struct Metric : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • The mathematical expression that defines the metric aggregation function. You can specify up to 10 variables per expression. You can specify up to 10 functions per expression. For more information, see Quotas in the AWS IoT SiteWise User Guide.

    Declaration

    Swift

    public let expression: String
  • The list of variables used in the expression.

    Declaration

    Swift

    public let variables: [ExpressionVariable]
  • The window (time interval) over which AWS IoT SiteWise computes the metric’s aggregation expression. AWS IoT SiteWise computes one data point per window.

    Declaration

    Swift

    public let window: MetricWindow
  • Undocumented

    Declaration

    Swift

    public init(expression: String, variables: [ExpressionVariable], window: MetricWindow)
  • Declaration

    Swift

    public func validate(name: String) throws