Interface Metric.Builder

    • Method Detail

      • expression

        Metric.Builder expression​(String expression)

        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 IoT SiteWise User Guide.

        Parameters:
        expression - 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 IoT SiteWise User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • variables

        Metric.Builder variables​(Collection<ExpressionVariable> variables)

        The list of variables used in the expression.

        Parameters:
        variables - The list of variables used in the expression.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • variables

        Metric.Builder variables​(ExpressionVariable... variables)

        The list of variables used in the expression.

        Parameters:
        variables - The list of variables used in the expression.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • window

        Metric.Builder window​(MetricWindow window)

        The window (time interval) over which IoT SiteWise computes the metric's aggregation expression. IoT SiteWise computes one data point per window.

        Parameters:
        window - The window (time interval) over which IoT SiteWise computes the metric's aggregation expression. IoT SiteWise computes one data point per window.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • processingConfig

        Metric.Builder processingConfig​(MetricProcessingConfig processingConfig)

        The processing configuration for the given metric property. You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. By default, metrics are forwarded to the cloud.

        Parameters:
        processingConfig - The processing configuration for the given metric property. You can configure metrics to be computed at the edge or in the Amazon Web Services Cloud. By default, metrics are forwarded to the cloud.
        Returns:
        Returns a reference to this object so that method calls can be chained together.