Interface ListInsightsMetricDataResponse.Builder

    • Method Detail

      • eventSource

        ListInsightsMetricDataResponse.Builder eventSource​(String eventSource)

        The Amazon Web Services service to which the request was made, such as iam.amazonaws.com or s3.amazonaws.com.

        Parameters:
        eventSource - The Amazon Web Services service to which the request was made, such as iam.amazonaws.com or s3.amazonaws.com.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventName

        ListInsightsMetricDataResponse.Builder eventName​(String eventName)

        The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.

        Parameters:
        eventName - The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • insightType

        ListInsightsMetricDataResponse.Builder insightType​(String insightType)

        The type of CloudTrail Insights event, which is either ApiCallRateInsight or ApiErrorRateInsight. The ApiCallRateInsight Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. The ApiErrorRateInsight Insights type analyzes management API calls that result in error codes.

        Parameters:
        insightType - The type of CloudTrail Insights event, which is either ApiCallRateInsight or ApiErrorRateInsight. The ApiCallRateInsight Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. The ApiErrorRateInsight Insights type analyzes management API calls that result in error codes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InsightType, InsightType
      • insightType

        ListInsightsMetricDataResponse.Builder insightType​(InsightType insightType)

        The type of CloudTrail Insights event, which is either ApiCallRateInsight or ApiErrorRateInsight. The ApiCallRateInsight Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. The ApiErrorRateInsight Insights type analyzes management API calls that result in error codes.

        Parameters:
        insightType - The type of CloudTrail Insights event, which is either ApiCallRateInsight or ApiErrorRateInsight. The ApiCallRateInsight Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. The ApiErrorRateInsight Insights type analyzes management API calls that result in error codes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InsightType, InsightType
      • errorCode

        ListInsightsMetricDataResponse.Builder errorCode​(String errorCode)

        Only returned if InsightType parameter was set to ApiErrorRateInsight.

        If returning metrics for the ApiErrorRateInsight Insights type, this is the error to retrieve data for. For example, AccessDenied.

        Parameters:
        errorCode - Only returned if InsightType parameter was set to ApiErrorRateInsight.

        If returning metrics for the ApiErrorRateInsight Insights type, this is the error to retrieve data for. For example, AccessDenied.

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

        ListInsightsMetricDataResponse.Builder timestamps​(Collection<Instant> timestamps)

        List of timestamps at intervals corresponding to the specified time period.

        Parameters:
        timestamps - List of timestamps at intervals corresponding to the specified time period.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timestamps

        ListInsightsMetricDataResponse.Builder timestamps​(Instant... timestamps)

        List of timestamps at intervals corresponding to the specified time period.

        Parameters:
        timestamps - List of timestamps at intervals corresponding to the specified time period.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • values

        ListInsightsMetricDataResponse.Builder values​(Collection<Double> values)

        List of values representing the API call rate or error rate at each timestamp. The number of values is equal to the number of timestamps.

        Parameters:
        values - List of values representing the API call rate or error rate at each timestamp. The number of values is equal to the number of timestamps.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • values

        ListInsightsMetricDataResponse.Builder values​(Double... values)

        List of values representing the API call rate or error rate at each timestamp. The number of values is equal to the number of timestamps.

        Parameters:
        values - List of values representing the API call rate or error rate at each timestamp. The number of values is equal to the number of timestamps.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextToken

        ListInsightsMetricDataResponse.Builder nextToken​(String nextToken)

        Only returned if the full results could not be returned in a single query. You can set the NextToken parameter in the next request to this value to continue retrieval.

        Parameters:
        nextToken - Only returned if the full results could not be returned in a single query. You can set the NextToken parameter in the next request to this value to continue retrieval.
        Returns:
        Returns a reference to this object so that method calls can be chained together.