Interface CreateMetricSetRequest.Builder

    • Method Detail

      • anomalyDetectorArn

        CreateMetricSetRequest.Builder anomalyDetectorArn​(String anomalyDetectorArn)

        The ARN of the anomaly detector that will use the dataset.

        Parameters:
        anomalyDetectorArn - The ARN of the anomaly detector that will use the dataset.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricSetName

        CreateMetricSetRequest.Builder metricSetName​(String metricSetName)

        The name of the dataset.

        Parameters:
        metricSetName - The name of the dataset.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricSetDescription

        CreateMetricSetRequest.Builder metricSetDescription​(String metricSetDescription)

        A description of the dataset you are creating.

        Parameters:
        metricSetDescription - A description of the dataset you are creating.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricList

        CreateMetricSetRequest.Builder metricList​(Collection<Metric> metricList)

        A list of metrics that the dataset will contain.

        Parameters:
        metricList - A list of metrics that the dataset will contain.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricList

        CreateMetricSetRequest.Builder metricList​(Metric... metricList)

        A list of metrics that the dataset will contain.

        Parameters:
        metricList - A list of metrics that the dataset will contain.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricList

        CreateMetricSetRequest.Builder metricList​(Consumer<Metric.Builder>... metricList)

        A list of metrics that the dataset will contain.

        This is a convenience method that creates an instance of the Metric.Builder avoiding the need to create one manually via Metric.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #metricList(List).

        Parameters:
        metricList - a consumer that will call methods on Metric.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #metricList(java.util.Collection)
      • offset

        CreateMetricSetRequest.Builder offset​(Integer offset)

        After an interval ends, the amount of seconds that the detector waits before importing data. Offset is only supported for S3, Redshift, Athena and datasources.

        Parameters:
        offset - After an interval ends, the amount of seconds that the detector waits before importing data. Offset is only supported for S3, Redshift, Athena and datasources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timestampColumn

        CreateMetricSetRequest.Builder timestampColumn​(TimestampColumn timestampColumn)

        Contains information about the column used for tracking time in your source data.

        Parameters:
        timestampColumn - Contains information about the column used for tracking time in your source data.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dimensionList

        CreateMetricSetRequest.Builder dimensionList​(Collection<String> dimensionList)

        A list of the fields you want to treat as dimensions.

        Parameters:
        dimensionList - A list of the fields you want to treat as dimensions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dimensionList

        CreateMetricSetRequest.Builder dimensionList​(String... dimensionList)

        A list of the fields you want to treat as dimensions.

        Parameters:
        dimensionList - A list of the fields you want to treat as dimensions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricSetFrequency

        CreateMetricSetRequest.Builder metricSetFrequency​(String metricSetFrequency)

        The frequency with which the source data will be analyzed for anomalies.

        Parameters:
        metricSetFrequency - The frequency with which the source data will be analyzed for anomalies.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Frequency, Frequency
      • metricSetFrequency

        CreateMetricSetRequest.Builder metricSetFrequency​(Frequency metricSetFrequency)

        The frequency with which the source data will be analyzed for anomalies.

        Parameters:
        metricSetFrequency - The frequency with which the source data will be analyzed for anomalies.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Frequency, Frequency
      • metricSource

        CreateMetricSetRequest.Builder metricSource​(MetricSource metricSource)

        Contains information about how the source data should be interpreted.

        Parameters:
        metricSource - Contains information about how the source data should be interpreted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timezone

        CreateMetricSetRequest.Builder timezone​(String timezone)

        The time zone in which your source data was recorded.

        Parameters:
        timezone - The time zone in which your source data was recorded.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dimensionFilterList

        CreateMetricSetRequest.Builder dimensionFilterList​(Collection<MetricSetDimensionFilter> dimensionFilterList)

        A list of filters that specify which data is kept for anomaly detection.

        Parameters:
        dimensionFilterList - A list of filters that specify which data is kept for anomaly detection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dimensionFilterList

        CreateMetricSetRequest.Builder dimensionFilterList​(MetricSetDimensionFilter... dimensionFilterList)

        A list of filters that specify which data is kept for anomaly detection.

        Parameters:
        dimensionFilterList - A list of filters that specify which data is kept for anomaly detection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.