Interface MetricDimension.Builder

    • Method Detail

      • dimensionName

        MetricDimension.Builder dimensionName​(String dimensionName)

        A unique identifier for the dimension.

        Parameters:
        dimensionName - A unique identifier for the dimension.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • operator

        MetricDimension.Builder operator​(String operator)

        Defines how the dimensionValues of a dimension are interpreted. For example, for dimension type TOPIC_FILTER, the IN operator, a message will be counted only if its topic matches one of the topic filters. With NOT_IN operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is null), it will be interpreted as IN.

        Parameters:
        operator - Defines how the dimensionValues of a dimension are interpreted. For example, for dimension type TOPIC_FILTER, the IN operator, a message will be counted only if its topic matches one of the topic filters. With NOT_IN operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is null), it will be interpreted as IN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DimensionValueOperator, DimensionValueOperator
      • operator

        MetricDimension.Builder operator​(DimensionValueOperator operator)

        Defines how the dimensionValues of a dimension are interpreted. For example, for dimension type TOPIC_FILTER, the IN operator, a message will be counted only if its topic matches one of the topic filters. With NOT_IN operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is null), it will be interpreted as IN.

        Parameters:
        operator - Defines how the dimensionValues of a dimension are interpreted. For example, for dimension type TOPIC_FILTER, the IN operator, a message will be counted only if its topic matches one of the topic filters. With NOT_IN operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is null), it will be interpreted as IN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DimensionValueOperator, DimensionValueOperator