Class: Aws::CostExplorer::Types::GetAnomaliesRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb

Overview

Note:

When making an API call, you may pass GetAnomaliesRequest data as a hash:

{
  monitor_arn: "GenericString",
  date_interval: { # required
    start_date: "YearMonthDay", # required
    end_date: "YearMonthDay",
  },
  feedback: "YES", # accepts YES, NO, PLANNED_ACTIVITY
  total_impact: {
    numeric_operator: "EQUAL", # required, accepts EQUAL, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, GREATER_THAN, LESS_THAN, BETWEEN
    start_value: 1.0, # required
    end_value: 1.0,
  },
  next_page_token: "NextPageToken",
  max_results: 1,
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#date_intervalTypes::AnomalyDateInterval

Assigns the start and end dates for retrieving cost anomalies. The returned anomaly object will have an AnomalyEndDate in the specified time range.



2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 2020

class GetAnomaliesRequest < Struct.new(
  :monitor_arn,
  :date_interval,
  :feedback,
  :total_impact,
  :next_page_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#feedbackString

Filters anomaly results by the feedback field on the anomaly object.

Returns:

  • (String)


2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 2020

class GetAnomaliesRequest < Struct.new(
  :monitor_arn,
  :date_interval,
  :feedback,
  :total_impact,
  :next_page_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#max_resultsInteger

The number of entries a paginated response contains.

Returns:

  • (Integer)


2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 2020

class GetAnomaliesRequest < Struct.new(
  :monitor_arn,
  :date_interval,
  :feedback,
  :total_impact,
  :next_page_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#monitor_arnString

Retrieves all of the cost anomalies detected for a specific cost anomaly monitor Amazon Resource Name (ARN).

Returns:

  • (String)


2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 2020

class GetAnomaliesRequest < Struct.new(
  :monitor_arn,
  :date_interval,
  :feedback,
  :total_impact,
  :next_page_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#next_page_tokenString

The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

Returns:

  • (String)


2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 2020

class GetAnomaliesRequest < Struct.new(
  :monitor_arn,
  :date_interval,
  :feedback,
  :total_impact,
  :next_page_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#total_impactTypes::TotalImpactFilter

Filters anomaly results by the total impact field on the anomaly object. For example, you can filter anomalies GREATER_THAN 200.00 to retrieve anomalies, with an estimated dollar impact greater than 200.



2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 2020

class GetAnomaliesRequest < Struct.new(
  :monitor_arn,
  :date_interval,
  :feedback,
  :total_impact,
  :next_page_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end