Class: Aws::DevOpsGuru::Client

Inherits:
Seahorse::Client::Base show all
Includes:
ClientStubs
Defined in:
gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb

Overview

An API client for DevOpsGuru. To construct a client, you need to configure a :region and :credentials.

client = Aws::DevOpsGuru::Client.new(
  region: region_name,
  credentials: credentials,
  # ...
)

For details on configuring region and credentials see the developer guide.

See #initialize for a full list of supported configuration options.

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Base

#config, #handlers

API Operations collapse

Instance Method Summary collapse

Methods included from ClientStubs

#api_requests, #stub_data, #stub_responses

Methods inherited from Seahorse::Client::Base

add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Constructor Details

#initialize(options) ⇒ Client

Returns a new instance of Client.

Parameters:

  • options (Hash)

Options Hash (options):

  • :plugins (Array<Seahorse::Client::Plugin>) — default: []]

    A list of plugins to apply to the client. Each plugin is either a class name or an instance of a plugin class.

  • :credentials (required, Aws::CredentialProvider)

    Your AWS credentials. This can be an instance of any one of the following classes:

    • Aws::Credentials - Used for configuring static, non-refreshing credentials.

    • Aws::SharedCredentials - Used for loading static credentials from a shared file, such as ~/.aws/config.

    • Aws::AssumeRoleCredentials - Used when you need to assume a role.

    • Aws::AssumeRoleWebIdentityCredentials - Used when you need to assume a role after providing credentials via the web.

    • Aws::SSOCredentials - Used for loading credentials from AWS SSO using an access token generated from aws login.

    • Aws::ProcessCredentials - Used for loading credentials from a process that outputs to stdout.

    • Aws::InstanceProfileCredentials - Used for loading credentials from an EC2 IMDS on an EC2 instance.

    • Aws::ECSCredentials - Used for loading credentials from instances running in ECS.

    • Aws::CognitoIdentityCredentials - Used for loading credentials from the Cognito Identity service.

    When :credentials are not configured directly, the following locations will be searched for credentials:

    • Aws.config[:credentials]
    • The :access_key_id, :secret_access_key, :session_token, and :account_id options.
    • ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'], ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
    • ~/.aws/credentials
    • ~/.aws/config
    • EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive. Construct and pass an instance of Aws::InstanceProfileCredentials or Aws::ECSCredentials to enable retries and extended timeouts. Instance profile credential fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED'] to true.
  • :region (required, String)

    The AWS region to connect to. The configured :region is used to determine the service :endpoint. When not passed, a default :region is searched for in the following locations:

    • Aws.config[:region]
    • ENV['AWS_REGION']
    • ENV['AMAZON_REGION']
    • ENV['AWS_DEFAULT_REGION']
    • ~/.aws/credentials
    • ~/.aws/config
  • :access_key_id (String)
  • :account_id (String)
  • :active_endpoint_cache (Boolean) — default: false

    When set to true, a thread polling for endpoints will be running in the background every 60 secs (default). Defaults to false.

  • :adaptive_retry_wait_to_fill (Boolean) — default: true

    Used only in adaptive retry mode. When true, the request will sleep until there is sufficent client side capacity to retry the request. When false, the request will raise a RetryCapacityNotAvailableError and will not retry instead of sleeping.

  • :client_side_monitoring (Boolean) — default: false

    When true, client-side metrics will be collected for all API requests from this client.

  • :client_side_monitoring_client_id (String) — default: ""

    Allows you to provide an identifier for this client which will be attached to all generated client side metrics. Defaults to an empty string.

  • :client_side_monitoring_host (String) — default: "127.0.0.1"

    Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_port (Integer) — default: 31000

    Required for publishing client metrics. The port that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher) — default: Aws::ClientSideMonitoring::Publisher

    Allows you to provide a custom client-side monitoring publisher class. By default, will use the Client Side Monitoring Agent Publisher.

  • :convert_params (Boolean) — default: true

    When true, an attempt is made to coerce request parameters into the required types.

  • :correct_clock_skew (Boolean) — default: true

    Used only in standard and adaptive retry modes. Specifies whether to apply a clock skew correction and retry requests with skewed client clocks.

  • :defaults_mode (String) — default: "legacy"

    See Aws::DefaultsModeConfiguration for a list of the accepted modes and the configuration defaults that are included.

  • :disable_host_prefix_injection (Boolean) — default: false

    Set to true to disable SDK automatically adding host prefix to default service endpoint when available.

  • :disable_request_compression (Boolean) — default: false

    When set to 'true' the request body will not be compressed for supported operations.

  • :endpoint (String, URI::HTTPS, URI::HTTP)

    Normally you should not configure the :endpoint option directly. This is normally constructed from the :region option. Configuring :endpoint is normally reserved for connecting to test or custom endpoints. The endpoint should be a URI formatted like:

    'http://example.com'
    'https://example.com'
    'http://example.com:123'
    
  • :endpoint_cache_max_entries (Integer) — default: 1000

    Used for the maximum size limit of the LRU cache storing endpoints data for endpoint discovery enabled operations. Defaults to 1000.

  • :endpoint_cache_max_threads (Integer) — default: 10

    Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.

  • :endpoint_cache_poll_interval (Integer) — default: 60

    When :endpoint_discovery and :active_endpoint_cache is enabled, Use this option to config the time interval in seconds for making requests fetching endpoints information. Defaults to 60 sec.

  • :endpoint_discovery (Boolean) — default: false

    When set to true, endpoint discovery will be enabled for operations when available.

  • :ignore_configured_endpoint_urls (Boolean)

    Setting to true disables use of endpoint URLs provided via environment variables and the shared configuration file.

  • :log_formatter (Aws::Log::Formatter) — default: Aws::Log::Formatter.default

    The log formatter.

  • :log_level (Symbol) — default: :info

    The log level to send messages to the :logger at.

  • :logger (Logger)

    The Logger instance to send log messages to. If this option is not set, logging will be disabled.

  • :max_attempts (Integer) — default: 3

    An integer representing the maximum number attempts that will be made for a single request, including the initial attempt. For example, setting this value to 5 will result in a request being retried up to 4 times. Used in standard and adaptive retry modes.

  • :profile (String) — default: "default"

    Used when loading credentials from the shared credentials file at HOME/.aws/credentials. When not specified, 'default' is used.

  • :request_min_compression_size_bytes (Integer) — default: 10240

    The minimum size in bytes that triggers compression for request bodies. The value must be non-negative integer value between 0 and 10485780 bytes inclusive.

  • :retry_backoff (Proc)

    A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay. This option is only used in the legacy retry mode.

  • :retry_base_delay (Float) — default: 0.3

    The base delay in seconds used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_jitter (Symbol) — default: :none

    A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number. This option is only used in the legacy retry mode.

    @see https://www.awsarchitectureblog.com/2015/03/backoff.html

  • :retry_limit (Integer) — default: 3

    The maximum number of times to retry failed requests. Only ~ 500 level server errors and certain ~ 400 level client errors are retried. Generally, these are throttling errors, data checksum errors, networking errors, timeout errors, auth errors, endpoint discovery, and errors from expired credentials. This option is only used in the legacy retry mode.

  • :retry_max_delay (Integer) — default: 0

    The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_mode (String) — default: "legacy"

    Specifies which retry algorithm to use. Values are:

    • legacy - The pre-existing retry behavior. This is default value if no retry mode is provided.

    • standard - A standardized set of retry rules across the AWS SDKs. This includes support for retry quotas, which limit the number of unsuccessful retries a client can make.

    • adaptive - An experimental retry mode that includes all the functionality of standard mode along with automatic client side throttling. This is a provisional mode that may change behavior in the future.

  • :sdk_ua_app_id (String)

    A unique and opaque application ID that is appended to the User-Agent header as app/sdk_ua_app_id. It should have a maximum length of 50. This variable is sourced from environment variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.

  • :secret_access_key (String)
  • :session_token (String)
  • :sigv4a_signing_region_set (Array)

    A list of regions that should be signed with SigV4a signing. When not passed, a default :sigv4a_signing_region_set is searched for in the following locations:

    • Aws.config[:sigv4a_signing_region_set]
    • ENV['AWS_SIGV4A_SIGNING_REGION_SET']
    • ~/.aws/config
  • :stub_responses (Boolean) — default: false

    Causes the client to return stubbed responses. By default fake responses are generated and returned. You can specify the response data to return or errors to raise by calling ClientStubs#stub_responses. See ClientStubs for more information.

    Please note When response stubbing is enabled, no HTTP requests are made, and retries are disabled.

  • :telemetry_provider (Aws::Telemetry::TelemetryProviderBase) — default: Aws::Telemetry::NoOpTelemetryProvider

    Allows you to provide a telemetry provider, which is used to emit telemetry data. By default, uses NoOpTelemetryProvider which will not record or emit any telemetry data. The SDK supports the following telemetry providers:

    • OpenTelemetry (OTel) - To use the OTel provider, install and require the opentelemetry-sdk gem and then, pass in an instance of a Aws::Telemetry::OTelProvider for telemetry provider.
  • :token_provider (Aws::TokenProvider)

    A Bearer Token Provider. This can be an instance of any one of the following classes:

    • Aws::StaticTokenProvider - Used for configuring static, non-refreshing tokens.

    • Aws::SSOTokenProvider - Used for loading tokens from AWS SSO using an access token generated from aws login.

    When :token_provider is not configured directly, the Aws::TokenProviderChain will be used to search for tokens configured for your profile in shared configuration files.

  • :use_dualstack_endpoint (Boolean)

    When set to true, dualstack enabled endpoints (with .aws TLD) will be used if available.

  • :use_fips_endpoint (Boolean)

    When set to true, fips compatible endpoints will be used if available. When a fips region is used, the region is normalized and this config is set to true.

  • :validate_params (Boolean) — default: true

    When true, request parameters are validated before sending the request.

  • :endpoint_provider (Aws::DevOpsGuru::EndpointProvider)

    The endpoint provider used to resolve endpoints. Any object that responds to #resolve_endpoint(parameters) where parameters is a Struct similar to Aws::DevOpsGuru::EndpointParameters.

  • :http_continue_timeout (Float) — default: 1

    The number of seconds to wait for a 100-continue response before sending the request body. This option has no effect unless the request has "Expect" header set to "100-continue". Defaults to nil which disables this behaviour. This value can safely be set per request on the session.

  • :http_idle_timeout (Float) — default: 5

    The number of seconds a connection is allowed to sit idle before it is considered stale. Stale connections are closed and removed from the pool before making a request.

  • :http_open_timeout (Float) — default: 15

    The default number of seconds to wait for response data. This value can safely be set per-request on the session.

  • :http_proxy (URI::HTTP, String)

    A proxy to send requests through. Formatted like 'http://proxy.com:123'.

  • :http_read_timeout (Float) — default: 60

    The default number of seconds to wait for response data. This value can safely be set per-request on the session.

  • :http_wire_trace (Boolean) — default: false

    When true, HTTP debug output will be sent to the :logger.

  • :on_chunk_received (Proc)

    When a Proc object is provided, it will be used as callback when each chunk of the response body is received. It provides three arguments: the chunk, the number of bytes received, and the total number of bytes in the response (or nil if the server did not send a content-length).

  • :on_chunk_sent (Proc)

    When a Proc object is provided, it will be used as callback when each chunk of the request body is sent. It provides three arguments: the chunk, the number of bytes read from the body, and the total number of bytes in the body.

  • :raise_response_errors (Boolean) — default: true

    When true, response errors are raised.

  • :ssl_ca_bundle (String)

    Full path to the SSL certificate authority bundle file that should be used when verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.

  • :ssl_ca_directory (String)

    Full path of the directory that contains the unbundled SSL certificate authority files for verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.

  • :ssl_ca_store (String)

    Sets the X509::Store to verify peer certificate.

  • :ssl_cert (OpenSSL::X509::Certificate)

    Sets a client certificate when creating http connections.

  • :ssl_key (OpenSSL::PKey)

    Sets a client key when creating http connections.

  • :ssl_timeout (Float)

    Sets the SSL timeout in seconds

  • :ssl_verify_peer (Boolean) — default: true

    When true, SSL peer certificates are verified when establishing a connection.



444
445
446
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 444

def initialize(*args)
  super
end

Instance Method Details

#add_notification_channel(params = {}) ⇒ Types::AddNotificationChannelResponse

Adds a notification channel to DevOps Guru. A notification channel is used to notify you about important DevOps Guru events, such as when an insight is generated.

If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to send it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. DevOps Guru only supports standard SNS topics. For more information, see Permissions for Amazon SNS topics.

If you use an Amazon SNS topic that is encrypted by an Amazon Web Services Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for Amazon Web Services KMS–encrypted Amazon SNS topics.

Examples:

Request syntax with placeholder values


resp = client.add_notification_channel({
  config: { # required
    sns: { # required
      topic_arn: "TopicArn",
    },
    filters: {
      severities: ["LOW"], # accepts LOW, MEDIUM, HIGH
      message_types: ["NEW_INSIGHT"], # accepts NEW_INSIGHT, CLOSED_INSIGHT, NEW_ASSOCIATION, SEVERITY_UPGRADED, NEW_RECOMMENDATION
    },
  },
})

Response structure


resp.id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :config (required, Types::NotificationChannelConfig)

    A NotificationChannelConfig object that specifies what type of notification channel to add. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).

Returns:

See Also:



503
504
505
506
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 503

def add_notification_channel(params = {}, options = {})
  req = build_request(:add_notification_channel, params)
  req.send_request(options)
end

#delete_insight(params = {}) ⇒ Struct

Deletes the insight along with the associated anomalies, events and recommendations.

Examples:

Request syntax with placeholder values


resp = client.delete_insight({
  id: "InsightId", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :id (required, String)

    The ID of the insight.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



526
527
528
529
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 526

def delete_insight(params = {}, options = {})
  req = build_request(:delete_insight, params)
  req.send_request(options)
end

#describe_account_health(params = {}) ⇒ Types::DescribeAccountHealthResponse

Returns the number of open reactive insights, the number of open proactive insights, and the number of metrics analyzed in your Amazon Web Services account. Use these numbers to gauge the health of operations in your Amazon Web Services account.

Examples:

Response structure


resp.open_reactive_insights #=> Integer
resp.open_proactive_insights #=> Integer
resp.metrics_analyzed #=> Integer
resp.resource_hours #=> Integer
resp.analyzed_resource_count #=> Integer

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Returns:

See Also:



556
557
558
559
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 556

def (params = {}, options = {})
  req = build_request(:describe_account_health, params)
  req.send_request(options)
end

#describe_account_overview(params = {}) ⇒ Types::DescribeAccountOverviewResponse

For the time range passed in, returns the number of open reactive insight that were created, the number of open proactive insights that were created, and the Mean Time to Recover (MTTR) for all closed reactive insights.

Examples:

Request syntax with placeholder values


resp = client.({
  from_time: Time.now, # required
  to_time: Time.now,
})

Response structure


resp.reactive_insights #=> Integer
resp.proactive_insights #=> Integer
resp.mean_time_to_recover_in_milliseconds #=> Integer

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :from_time (required, Time, DateTime, Date, Integer, String)

    The start of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred after this day.

  • :to_time (Time, DateTime, Date, Integer, String)

    The end of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred before this day. If this is not specified, then the current day is used.

Returns:

See Also:



600
601
602
603
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 600

def (params = {}, options = {})
  req = build_request(:describe_account_overview, params)
  req.send_request(options)
end

#describe_anomaly(params = {}) ⇒ Types::DescribeAnomalyResponse

Returns details about an anomaly that you specify using its ID.

Examples:

Request syntax with placeholder values


resp = client.describe_anomaly({
  id: "AnomalyId", # required
  account_id: "AwsAccountId",
})

Response structure


resp.proactive_anomaly.id #=> String
resp.proactive_anomaly.severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.proactive_anomaly.status #=> String, one of "ONGOING", "CLOSED"
resp.proactive_anomaly.update_time #=> Time
resp.proactive_anomaly.anomaly_time_range.start_time #=> Time
resp.proactive_anomaly.anomaly_time_range.end_time #=> Time
resp.proactive_anomaly.anomaly_reported_time_range.open_time #=> Time
resp.proactive_anomaly.anomaly_reported_time_range.close_time #=> Time
resp.proactive_anomaly.prediction_time_range.start_time #=> Time
resp.proactive_anomaly.prediction_time_range.end_time #=> Time
resp.proactive_anomaly.source_details.cloud_watch_metrics #=> Array
resp.proactive_anomaly.source_details.cloud_watch_metrics[0].metric_name #=> String
resp.proactive_anomaly.source_details.cloud_watch_metrics[0].namespace #=> String
resp.proactive_anomaly.source_details.cloud_watch_metrics[0].dimensions #=> Array
resp.proactive_anomaly.source_details.cloud_watch_metrics[0].dimensions[0].name #=> String
resp.proactive_anomaly.source_details.cloud_watch_metrics[0].dimensions[0].value #=> String
resp.proactive_anomaly.source_details.cloud_watch_metrics[0].stat #=> String, one of "Sum", "Average", "SampleCount", "Minimum", "Maximum", "p99", "p90", "p50"
resp.proactive_anomaly.source_details.cloud_watch_metrics[0].unit #=> String
resp.proactive_anomaly.source_details.cloud_watch_metrics[0].period #=> Integer
resp.proactive_anomaly.source_details.cloud_watch_metrics[0].metric_data_summary.timestamp_metric_value_pair_list #=> Array
resp.proactive_anomaly.source_details.cloud_watch_metrics[0].metric_data_summary.timestamp_metric_value_pair_list[0].timestamp #=> Time
resp.proactive_anomaly.source_details.cloud_watch_metrics[0].metric_data_summary.timestamp_metric_value_pair_list[0].metric_value #=> Float
resp.proactive_anomaly.source_details.cloud_watch_metrics[0].metric_data_summary.status_code #=> String, one of "Complete", "InternalError", "PartialData"
resp.proactive_anomaly.source_details.performance_insights_metrics #=> Array
resp.proactive_anomaly.source_details.performance_insights_metrics[0].metric_display_name #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].unit #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].metric_query.metric #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].metric_query.group_by.group #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].metric_query.group_by.dimensions #=> Array
resp.proactive_anomaly.source_details.performance_insights_metrics[0].metric_query.group_by.dimensions[0] #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].metric_query.group_by.limit #=> Integer
resp.proactive_anomaly.source_details.performance_insights_metrics[0].metric_query.filter #=> Hash
resp.proactive_anomaly.source_details.performance_insights_metrics[0].metric_query.filter["PerformanceInsightsMetricFilterKey"] #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].reference_data #=> Array
resp.proactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].name #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_scalar.value #=> Float
resp.proactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.metric #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.group #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.dimensions #=> Array
resp.proactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.dimensions[0] #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.limit #=> Integer
resp.proactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.filter #=> Hash
resp.proactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.filter["PerformanceInsightsMetricFilterKey"] #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].stats_at_anomaly #=> Array
resp.proactive_anomaly.source_details.performance_insights_metrics[0].stats_at_anomaly[0].type #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].stats_at_anomaly[0].value #=> Float
resp.proactive_anomaly.source_details.performance_insights_metrics[0].stats_at_baseline #=> Array
resp.proactive_anomaly.source_details.performance_insights_metrics[0].stats_at_baseline[0].type #=> String
resp.proactive_anomaly.source_details.performance_insights_metrics[0].stats_at_baseline[0].value #=> Float
resp.proactive_anomaly.associated_insight_id #=> String
resp.proactive_anomaly.resource_collection.cloud_formation.stack_names #=> Array
resp.proactive_anomaly.resource_collection.cloud_formation.stack_names[0] #=> String
resp.proactive_anomaly.resource_collection.tags #=> Array
resp.proactive_anomaly.resource_collection.tags[0].app_boundary_key #=> String
resp.proactive_anomaly.resource_collection.tags[0].tag_values #=> Array
resp.proactive_anomaly.resource_collection.tags[0].tag_values[0] #=> String
resp.proactive_anomaly.limit #=> Float
resp.proactive_anomaly..source #=> String
resp.proactive_anomaly..source_resource_name #=> String
resp.proactive_anomaly..source_resource_type #=> String
resp.proactive_anomaly.anomaly_resources #=> Array
resp.proactive_anomaly.anomaly_resources[0].name #=> String
resp.proactive_anomaly.anomaly_resources[0].type #=> String
resp.proactive_anomaly.description #=> String
resp.reactive_anomaly.id #=> String
resp.reactive_anomaly.severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.reactive_anomaly.status #=> String, one of "ONGOING", "CLOSED"
resp.reactive_anomaly.anomaly_time_range.start_time #=> Time
resp.reactive_anomaly.anomaly_time_range.end_time #=> Time
resp.reactive_anomaly.anomaly_reported_time_range.open_time #=> Time
resp.reactive_anomaly.anomaly_reported_time_range.close_time #=> Time
resp.reactive_anomaly.source_details.cloud_watch_metrics #=> Array
resp.reactive_anomaly.source_details.cloud_watch_metrics[0].metric_name #=> String
resp.reactive_anomaly.source_details.cloud_watch_metrics[0].namespace #=> String
resp.reactive_anomaly.source_details.cloud_watch_metrics[0].dimensions #=> Array
resp.reactive_anomaly.source_details.cloud_watch_metrics[0].dimensions[0].name #=> String
resp.reactive_anomaly.source_details.cloud_watch_metrics[0].dimensions[0].value #=> String
resp.reactive_anomaly.source_details.cloud_watch_metrics[0].stat #=> String, one of "Sum", "Average", "SampleCount", "Minimum", "Maximum", "p99", "p90", "p50"
resp.reactive_anomaly.source_details.cloud_watch_metrics[0].unit #=> String
resp.reactive_anomaly.source_details.cloud_watch_metrics[0].period #=> Integer
resp.reactive_anomaly.source_details.cloud_watch_metrics[0].metric_data_summary.timestamp_metric_value_pair_list #=> Array
resp.reactive_anomaly.source_details.cloud_watch_metrics[0].metric_data_summary.timestamp_metric_value_pair_list[0].timestamp #=> Time
resp.reactive_anomaly.source_details.cloud_watch_metrics[0].metric_data_summary.timestamp_metric_value_pair_list[0].metric_value #=> Float
resp.reactive_anomaly.source_details.cloud_watch_metrics[0].metric_data_summary.status_code #=> String, one of "Complete", "InternalError", "PartialData"
resp.reactive_anomaly.source_details.performance_insights_metrics #=> Array
resp.reactive_anomaly.source_details.performance_insights_metrics[0].metric_display_name #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].unit #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].metric_query.metric #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].metric_query.group_by.group #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].metric_query.group_by.dimensions #=> Array
resp.reactive_anomaly.source_details.performance_insights_metrics[0].metric_query.group_by.dimensions[0] #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].metric_query.group_by.limit #=> Integer
resp.reactive_anomaly.source_details.performance_insights_metrics[0].metric_query.filter #=> Hash
resp.reactive_anomaly.source_details.performance_insights_metrics[0].metric_query.filter["PerformanceInsightsMetricFilterKey"] #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].reference_data #=> Array
resp.reactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].name #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_scalar.value #=> Float
resp.reactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.metric #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.group #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.dimensions #=> Array
resp.reactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.dimensions[0] #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.limit #=> Integer
resp.reactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.filter #=> Hash
resp.reactive_anomaly.source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.filter["PerformanceInsightsMetricFilterKey"] #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].stats_at_anomaly #=> Array
resp.reactive_anomaly.source_details.performance_insights_metrics[0].stats_at_anomaly[0].type #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].stats_at_anomaly[0].value #=> Float
resp.reactive_anomaly.source_details.performance_insights_metrics[0].stats_at_baseline #=> Array
resp.reactive_anomaly.source_details.performance_insights_metrics[0].stats_at_baseline[0].type #=> String
resp.reactive_anomaly.source_details.performance_insights_metrics[0].stats_at_baseline[0].value #=> Float
resp.reactive_anomaly.associated_insight_id #=> String
resp.reactive_anomaly.resource_collection.cloud_formation.stack_names #=> Array
resp.reactive_anomaly.resource_collection.cloud_formation.stack_names[0] #=> String
resp.reactive_anomaly.resource_collection.tags #=> Array
resp.reactive_anomaly.resource_collection.tags[0].app_boundary_key #=> String
resp.reactive_anomaly.resource_collection.tags[0].tag_values #=> Array
resp.reactive_anomaly.resource_collection.tags[0].tag_values[0] #=> String
resp.reactive_anomaly.type #=> String, one of "CAUSAL", "CONTEXTUAL"
resp.reactive_anomaly.name #=> String
resp.reactive_anomaly.description #=> String
resp.reactive_anomaly.causal_anomaly_id #=> String
resp.reactive_anomaly.anomaly_resources #=> Array
resp.reactive_anomaly.anomaly_resources[0].name #=> String
resp.reactive_anomaly.anomaly_resources[0].type #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :id (required, String)

    The ID of the anomaly.

  • :account_id (String)

    The ID of the member account.

Returns:

See Also:



756
757
758
759
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 756

def describe_anomaly(params = {}, options = {})
  req = build_request(:describe_anomaly, params)
  req.send_request(options)
end

#describe_event_sources_config(params = {}) ⇒ Types::DescribeEventSourcesConfigResponse

Returns the integration status of services that are integrated with DevOps Guru as Consumer via EventBridge. The one service that can be integrated with DevOps Guru is Amazon CodeGuru Profiler, which can produce proactive recommendations which can be stored and viewed in DevOps Guru.

Examples:

Response structure


resp.event_sources.amazon_code_guru_profiler.status #=> String, one of "ENABLED", "DISABLED"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Returns:

See Also:



779
780
781
782
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 779

def describe_event_sources_config(params = {}, options = {})
  req = build_request(:describe_event_sources_config, params)
  req.send_request(options)
end

#describe_feedback(params = {}) ⇒ Types::DescribeFeedbackResponse

Returns the most recent feedback submitted in the current Amazon Web Services account and Region.

Examples:

Request syntax with placeholder values


resp = client.describe_feedback({
  insight_id: "InsightId",
})

Response structure


resp.insight_feedback.id #=> String
resp.insight_feedback.feedback #=> String, one of "VALID_COLLECTION", "RECOMMENDATION_USEFUL", "ALERT_TOO_SENSITIVE", "DATA_NOISY_ANOMALY", "DATA_INCORRECT"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :insight_id (String)

    The ID of the insight for which the feedback was provided.

Returns:

See Also:



809
810
811
812
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 809

def describe_feedback(params = {}, options = {})
  req = build_request(:describe_feedback, params)
  req.send_request(options)
end

#describe_insight(params = {}) ⇒ Types::DescribeInsightResponse

Returns details about an insight that you specify using its ID.

Examples:

Request syntax with placeholder values


resp = client.describe_insight({
  id: "InsightId", # required
  account_id: "AwsAccountId",
})

Response structure


resp.proactive_insight.id #=> String
resp.proactive_insight.name #=> String
resp.proactive_insight.severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.proactive_insight.status #=> String, one of "ONGOING", "CLOSED"
resp.proactive_insight.insight_time_range.start_time #=> Time
resp.proactive_insight.insight_time_range.end_time #=> Time
resp.proactive_insight.prediction_time_range.start_time #=> Time
resp.proactive_insight.prediction_time_range.end_time #=> Time
resp.proactive_insight.resource_collection.cloud_formation.stack_names #=> Array
resp.proactive_insight.resource_collection.cloud_formation.stack_names[0] #=> String
resp.proactive_insight.resource_collection.tags #=> Array
resp.proactive_insight.resource_collection.tags[0].app_boundary_key #=> String
resp.proactive_insight.resource_collection.tags[0].tag_values #=> Array
resp.proactive_insight.resource_collection.tags[0].tag_values[0] #=> String
resp.proactive_insight.ssm_ops_item_id #=> String
resp.proactive_insight.description #=> String
resp.reactive_insight.id #=> String
resp.reactive_insight.name #=> String
resp.reactive_insight.severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.reactive_insight.status #=> String, one of "ONGOING", "CLOSED"
resp.reactive_insight.insight_time_range.start_time #=> Time
resp.reactive_insight.insight_time_range.end_time #=> Time
resp.reactive_insight.resource_collection.cloud_formation.stack_names #=> Array
resp.reactive_insight.resource_collection.cloud_formation.stack_names[0] #=> String
resp.reactive_insight.resource_collection.tags #=> Array
resp.reactive_insight.resource_collection.tags[0].app_boundary_key #=> String
resp.reactive_insight.resource_collection.tags[0].tag_values #=> Array
resp.reactive_insight.resource_collection.tags[0].tag_values[0] #=> String
resp.reactive_insight.ssm_ops_item_id #=> String
resp.reactive_insight.description #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :id (required, String)

    The ID of the insight.

  • :account_id (String)

    The ID of the member account in the organization.

Returns:

See Also:



871
872
873
874
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 871

def describe_insight(params = {}, options = {})
  req = build_request(:describe_insight, params)
  req.send_request(options)
end

#describe_organization_health(params = {}) ⇒ Types::DescribeOrganizationHealthResponse

Returns active insights, predictive insights, and resource hours analyzed in last hour.

Examples:

Request syntax with placeholder values


resp = client.describe_organization_health({
  account_ids: ["AwsAccountId"],
  organizational_unit_ids: ["OrganizationalUnitId"],
})

Response structure


resp.open_reactive_insights #=> Integer
resp.open_proactive_insights #=> Integer
resp.metrics_analyzed #=> Integer
resp.resource_hours #=> Integer

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :account_ids (Array<String>)

    The ID of the Amazon Web Services account.

  • :organizational_unit_ids (Array<String>)

    The ID of the organizational unit.

Returns:

See Also:



910
911
912
913
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 910

def describe_organization_health(params = {}, options = {})
  req = build_request(:describe_organization_health, params)
  req.send_request(options)
end

#describe_organization_overview(params = {}) ⇒ Types::DescribeOrganizationOverviewResponse

Returns an overview of your organization's history based on the specified time range. The overview includes the total reactive and proactive insights.

Examples:

Request syntax with placeholder values


resp = client.describe_organization_overview({
  from_time: Time.now, # required
  to_time: Time.now,
  account_ids: ["AwsAccountId"],
  organizational_unit_ids: ["OrganizationalUnitId"],
})

Response structure


resp.reactive_insights #=> Integer
resp.proactive_insights #=> Integer

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :from_time (required, Time, DateTime, Date, Integer, String)

    The start of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred after this day.

  • :to_time (Time, DateTime, Date, Integer, String)

    The end of the time range passed in. The start time granularity is at the day level. The floor of the start time is used. Returned information occurred before this day. If this is not specified, then the current day is used.

  • :account_ids (Array<String>)

    The ID of the Amazon Web Services account.

  • :organizational_unit_ids (Array<String>)

    The ID of the organizational unit.

Returns:

See Also:



959
960
961
962
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 959

def describe_organization_overview(params = {}, options = {})
  req = build_request(:describe_organization_overview, params)
  req.send_request(options)
end

#describe_organization_resource_collection_health(params = {}) ⇒ Types::DescribeOrganizationResourceCollectionHealthResponse

Provides an overview of your system's health. If additional member accounts are part of your organization, you can filter those accounts using the AccountIds field.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.describe_organization_resource_collection_health({
  organization_resource_collection_type: "AWS_CLOUD_FORMATION", # required, accepts AWS_CLOUD_FORMATION, AWS_SERVICE, AWS_ACCOUNT, AWS_TAGS
  account_ids: ["AwsAccountId"],
  organizational_unit_ids: ["OrganizationalUnitId"],
  next_token: "UuidNextToken",
  max_results: 1,
})

Response structure


resp.cloud_formation #=> Array
resp.cloud_formation[0].stack_name #=> String
resp.cloud_formation[0].insight.open_proactive_insights #=> Integer
resp.cloud_formation[0].insight.open_reactive_insights #=> Integer
resp.cloud_formation[0].insight.mean_time_to_recover_in_milliseconds #=> Integer
resp.cloud_formation[0].analyzed_resource_count #=> Integer
resp.service #=> Array
resp.service[0].service_name #=> String, one of "API_GATEWAY", "APPLICATION_ELB", "AUTO_SCALING_GROUP", "CLOUD_FRONT", "DYNAMO_DB", "EC2", "ECS", "EKS", "ELASTIC_BEANSTALK", "ELASTI_CACHE", "ELB", "ES", "KINESIS", "LAMBDA", "NAT_GATEWAY", "NETWORK_ELB", "RDS", "REDSHIFT", "ROUTE_53", "S3", "SAGE_MAKER", "SNS", "SQS", "STEP_FUNCTIONS", "SWF"
resp.service[0].insight.open_proactive_insights #=> Integer
resp.service[0].insight.open_reactive_insights #=> Integer
resp.service[0].analyzed_resource_count #=> Integer
resp. #=> Array
resp.[0]. #=> String
resp.[0].insight.open_proactive_insights #=> Integer
resp.[0].insight.open_reactive_insights #=> Integer
resp.next_token #=> String
resp.tags #=> Array
resp.tags[0].app_boundary_key #=> String
resp.tags[0].tag_value #=> String
resp.tags[0].insight.open_proactive_insights #=> Integer
resp.tags[0].insight.open_reactive_insights #=> Integer
resp.tags[0].insight.mean_time_to_recover_in_milliseconds #=> Integer
resp.tags[0].analyzed_resource_count #=> Integer

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :organization_resource_collection_type (required, String)

    An Amazon Web Services resource collection type. This type specifies how analyzed Amazon Web Services resources are defined. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.

  • :account_ids (Array<String>)

    The ID of the Amazon Web Services account.

  • :organizational_unit_ids (Array<String>)

    The ID of the organizational unit.

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

  • :max_results (Integer)

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

Returns:

See Also:



1043
1044
1045
1046
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1043

def describe_organization_resource_collection_health(params = {}, options = {})
  req = build_request(:describe_organization_resource_collection_health, params)
  req.send_request(options)
end

#describe_resource_collection_health(params = {}) ⇒ Types::DescribeResourceCollectionHealthResponse

Returns the number of open proactive insights, open reactive insights, and the Mean Time to Recover (MTTR) for all closed insights in resource collections in your account. You specify the type of Amazon Web Services resources collection. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.describe_resource_collection_health({
  resource_collection_type: "AWS_CLOUD_FORMATION", # required, accepts AWS_CLOUD_FORMATION, AWS_SERVICE, AWS_TAGS
  next_token: "UuidNextToken",
})

Response structure


resp.cloud_formation #=> Array
resp.cloud_formation[0].stack_name #=> String
resp.cloud_formation[0].insight.open_proactive_insights #=> Integer
resp.cloud_formation[0].insight.open_reactive_insights #=> Integer
resp.cloud_formation[0].insight.mean_time_to_recover_in_milliseconds #=> Integer
resp.cloud_formation[0].analyzed_resource_count #=> Integer
resp.service #=> Array
resp.service[0].service_name #=> String, one of "API_GATEWAY", "APPLICATION_ELB", "AUTO_SCALING_GROUP", "CLOUD_FRONT", "DYNAMO_DB", "EC2", "ECS", "EKS", "ELASTIC_BEANSTALK", "ELASTI_CACHE", "ELB", "ES", "KINESIS", "LAMBDA", "NAT_GATEWAY", "NETWORK_ELB", "RDS", "REDSHIFT", "ROUTE_53", "S3", "SAGE_MAKER", "SNS", "SQS", "STEP_FUNCTIONS", "SWF"
resp.service[0].insight.open_proactive_insights #=> Integer
resp.service[0].insight.open_reactive_insights #=> Integer
resp.service[0].analyzed_resource_count #=> Integer
resp.next_token #=> String
resp.tags #=> Array
resp.tags[0].app_boundary_key #=> String
resp.tags[0].tag_value #=> String
resp.tags[0].insight.open_proactive_insights #=> Integer
resp.tags[0].insight.open_reactive_insights #=> Integer
resp.tags[0].insight.mean_time_to_recover_in_milliseconds #=> Integer
resp.tags[0].analyzed_resource_count #=> Integer

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_collection_type (required, String)

    An Amazon Web Services resource collection type. This type specifies how analyzed Amazon Web Services resources are defined. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

Returns:

See Also:



1115
1116
1117
1118
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1115

def describe_resource_collection_health(params = {}, options = {})
  req = build_request(:describe_resource_collection_health, params)
  req.send_request(options)
end

#describe_service_integration(params = {}) ⇒ Types::DescribeServiceIntegrationResponse

Returns the integration status of services that are integrated with DevOps Guru. The one service that can be integrated with DevOps Guru is Amazon Web Services Systems Manager, which can be used to create an OpsItem for each generated insight.

Examples:

Response structure


resp.service_integration.ops_center.opt_in_status #=> String, one of "ENABLED", "DISABLED"
resp.service_integration.logs_anomaly_detection.opt_in_status #=> String, one of "ENABLED", "DISABLED"
resp.service_integration.kms_server_side_encryption.kms_key_id #=> String
resp.service_integration.kms_server_side_encryption.opt_in_status #=> String, one of "ENABLED", "DISABLED"
resp.service_integration.kms_server_side_encryption.type #=> String, one of "CUSTOMER_MANAGED_KEY", "AWS_OWNED_KMS_KEY"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Returns:

See Also:



1141
1142
1143
1144
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1141

def describe_service_integration(params = {}, options = {})
  req = build_request(:describe_service_integration, params)
  req.send_request(options)
end

#get_cost_estimation(params = {}) ⇒ Types::GetCostEstimationResponse

Returns an estimate of the monthly cost for DevOps Guru to analyze your Amazon Web Services resources. For more information, see Estimate your Amazon DevOps Guru costs and Amazon DevOps Guru pricing.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_cost_estimation({
  next_token: "UuidNextToken",
})

Response structure


resp.resource_collection.cloud_formation.stack_names #=> Array
resp.resource_collection.cloud_formation.stack_names[0] #=> String
resp.resource_collection.tags #=> Array
resp.resource_collection.tags[0].app_boundary_key #=> String
resp.resource_collection.tags[0].tag_values #=> Array
resp.resource_collection.tags[0].tag_values[0] #=> String
resp.status #=> String, one of "ONGOING", "COMPLETED"
resp.costs #=> Array
resp.costs[0].type #=> String
resp.costs[0].state #=> String, one of "ACTIVE", "INACTIVE"
resp.costs[0].count #=> Integer
resp.costs[0].unit_cost #=> Float
resp.costs[0].cost #=> Float
resp.time_range.start_time #=> Time
resp.time_range.end_time #=> Time
resp.total_cost #=> Float
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

Returns:

See Also:



1201
1202
1203
1204
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1201

def get_cost_estimation(params = {}, options = {})
  req = build_request(:get_cost_estimation, params)
  req.send_request(options)
end

#get_resource_collection(params = {}) ⇒ Types::GetResourceCollectionResponse

Returns lists Amazon Web Services resources that are of the specified resource collection type. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.get_resource_collection({
  resource_collection_type: "AWS_CLOUD_FORMATION", # required, accepts AWS_CLOUD_FORMATION, AWS_SERVICE, AWS_TAGS
  next_token: "UuidNextToken",
})

Response structure


resp.resource_collection.cloud_formation.stack_names #=> Array
resp.resource_collection.cloud_formation.stack_names[0] #=> String
resp.resource_collection.tags #=> Array
resp.resource_collection.tags[0].app_boundary_key #=> String
resp.resource_collection.tags[0].tag_values #=> Array
resp.resource_collection.tags[0].tag_values[0] #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_collection_type (required, String)

    The type of Amazon Web Services resource collections to return. The one valid value is CLOUD_FORMATION for Amazon Web Services CloudFormation stacks.

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

Returns:

See Also:



1252
1253
1254
1255
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1252

def get_resource_collection(params = {}, options = {})
  req = build_request(:get_resource_collection, params)
  req.send_request(options)
end

#list_anomalies_for_insight(params = {}) ⇒ Types::ListAnomaliesForInsightResponse

Returns a list of the anomalies that belong to an insight that you specify using its ID.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_anomalies_for_insight({
  insight_id: "InsightId", # required
  start_time_range: {
    from_time: Time.now,
    to_time: Time.now,
  },
  max_results: 1,
  next_token: "UuidNextToken",
  account_id: "AwsAccountId",
  filters: {
    service_collection: {
      service_names: ["API_GATEWAY"], # accepts API_GATEWAY, APPLICATION_ELB, AUTO_SCALING_GROUP, CLOUD_FRONT, DYNAMO_DB, EC2, ECS, EKS, ELASTIC_BEANSTALK, ELASTI_CACHE, ELB, ES, KINESIS, LAMBDA, NAT_GATEWAY, NETWORK_ELB, RDS, REDSHIFT, ROUTE_53, S3, SAGE_MAKER, SNS, SQS, STEP_FUNCTIONS, SWF
    },
  },
})

Response structure


resp.proactive_anomalies #=> Array
resp.proactive_anomalies[0].id #=> String
resp.proactive_anomalies[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.proactive_anomalies[0].status #=> String, one of "ONGOING", "CLOSED"
resp.proactive_anomalies[0].update_time #=> Time
resp.proactive_anomalies[0].anomaly_time_range.start_time #=> Time
resp.proactive_anomalies[0].anomaly_time_range.end_time #=> Time
resp.proactive_anomalies[0].anomaly_reported_time_range.open_time #=> Time
resp.proactive_anomalies[0].anomaly_reported_time_range.close_time #=> Time
resp.proactive_anomalies[0].prediction_time_range.start_time #=> Time
resp.proactive_anomalies[0].prediction_time_range.end_time #=> Time
resp.proactive_anomalies[0].source_details.cloud_watch_metrics #=> Array
resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].metric_name #=> String
resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].namespace #=> String
resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].dimensions #=> Array
resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].dimensions[0].name #=> String
resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].dimensions[0].value #=> String
resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].stat #=> String, one of "Sum", "Average", "SampleCount", "Minimum", "Maximum", "p99", "p90", "p50"
resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].unit #=> String
resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].period #=> Integer
resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].metric_data_summary.timestamp_metric_value_pair_list #=> Array
resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].metric_data_summary.timestamp_metric_value_pair_list[0].timestamp #=> Time
resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].metric_data_summary.timestamp_metric_value_pair_list[0].metric_value #=> Float
resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].metric_data_summary.status_code #=> String, one of "Complete", "InternalError", "PartialData"
resp.proactive_anomalies[0].source_details.performance_insights_metrics #=> Array
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].metric_display_name #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].unit #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.metric #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.group_by.group #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.group_by.dimensions #=> Array
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.group_by.dimensions[0] #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.group_by.limit #=> Integer
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.filter #=> Hash
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.filter["PerformanceInsightsMetricFilterKey"] #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data #=> Array
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].name #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_scalar.value #=> Float
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.metric #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.group #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.dimensions #=> Array
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.dimensions[0] #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.limit #=> Integer
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.filter #=> Hash
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.filter["PerformanceInsightsMetricFilterKey"] #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].stats_at_anomaly #=> Array
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].stats_at_anomaly[0].type #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].stats_at_anomaly[0].value #=> Float
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].stats_at_baseline #=> Array
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].stats_at_baseline[0].type #=> String
resp.proactive_anomalies[0].source_details.performance_insights_metrics[0].stats_at_baseline[0].value #=> Float
resp.proactive_anomalies[0].associated_insight_id #=> String
resp.proactive_anomalies[0].resource_collection.cloud_formation.stack_names #=> Array
resp.proactive_anomalies[0].resource_collection.cloud_formation.stack_names[0] #=> String
resp.proactive_anomalies[0].resource_collection.tags #=> Array
resp.proactive_anomalies[0].resource_collection.tags[0].app_boundary_key #=> String
resp.proactive_anomalies[0].resource_collection.tags[0].tag_values #=> Array
resp.proactive_anomalies[0].resource_collection.tags[0].tag_values[0] #=> String
resp.proactive_anomalies[0].limit #=> Float
resp.proactive_anomalies[0]..source #=> String
resp.proactive_anomalies[0]..source_resource_name #=> String
resp.proactive_anomalies[0]..source_resource_type #=> String
resp.proactive_anomalies[0].anomaly_resources #=> Array
resp.proactive_anomalies[0].anomaly_resources[0].name #=> String
resp.proactive_anomalies[0].anomaly_resources[0].type #=> String
resp.proactive_anomalies[0].description #=> String
resp.reactive_anomalies #=> Array
resp.reactive_anomalies[0].id #=> String
resp.reactive_anomalies[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.reactive_anomalies[0].status #=> String, one of "ONGOING", "CLOSED"
resp.reactive_anomalies[0].anomaly_time_range.start_time #=> Time
resp.reactive_anomalies[0].anomaly_time_range.end_time #=> Time
resp.reactive_anomalies[0].anomaly_reported_time_range.open_time #=> Time
resp.reactive_anomalies[0].anomaly_reported_time_range.close_time #=> Time
resp.reactive_anomalies[0].source_details.cloud_watch_metrics #=> Array
resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].metric_name #=> String
resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].namespace #=> String
resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].dimensions #=> Array
resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].dimensions[0].name #=> String
resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].dimensions[0].value #=> String
resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].stat #=> String, one of "Sum", "Average", "SampleCount", "Minimum", "Maximum", "p99", "p90", "p50"
resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].unit #=> String
resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].period #=> Integer
resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].metric_data_summary.timestamp_metric_value_pair_list #=> Array
resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].metric_data_summary.timestamp_metric_value_pair_list[0].timestamp #=> Time
resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].metric_data_summary.timestamp_metric_value_pair_list[0].metric_value #=> Float
resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].metric_data_summary.status_code #=> String, one of "Complete", "InternalError", "PartialData"
resp.reactive_anomalies[0].source_details.performance_insights_metrics #=> Array
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].metric_display_name #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].unit #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.metric #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.group_by.group #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.group_by.dimensions #=> Array
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.group_by.dimensions[0] #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.group_by.limit #=> Integer
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.filter #=> Hash
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].metric_query.filter["PerformanceInsightsMetricFilterKey"] #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data #=> Array
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].name #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_scalar.value #=> Float
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.metric #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.group #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.dimensions #=> Array
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.dimensions[0] #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.group_by.limit #=> Integer
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.filter #=> Hash
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].reference_data[0].comparison_values.reference_metric.metric_query.filter["PerformanceInsightsMetricFilterKey"] #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].stats_at_anomaly #=> Array
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].stats_at_anomaly[0].type #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].stats_at_anomaly[0].value #=> Float
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].stats_at_baseline #=> Array
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].stats_at_baseline[0].type #=> String
resp.reactive_anomalies[0].source_details.performance_insights_metrics[0].stats_at_baseline[0].value #=> Float
resp.reactive_anomalies[0].associated_insight_id #=> String
resp.reactive_anomalies[0].resource_collection.cloud_formation.stack_names #=> Array
resp.reactive_anomalies[0].resource_collection.cloud_formation.stack_names[0] #=> String
resp.reactive_anomalies[0].resource_collection.tags #=> Array
resp.reactive_anomalies[0].resource_collection.tags[0].app_boundary_key #=> String
resp.reactive_anomalies[0].resource_collection.tags[0].tag_values #=> Array
resp.reactive_anomalies[0].resource_collection.tags[0].tag_values[0] #=> String
resp.reactive_anomalies[0].type #=> String, one of "CAUSAL", "CONTEXTUAL"
resp.reactive_anomalies[0].name #=> String
resp.reactive_anomalies[0].description #=> String
resp.reactive_anomalies[0].causal_anomaly_id #=> String
resp.reactive_anomalies[0].anomaly_resources #=> Array
resp.reactive_anomalies[0].anomaly_resources[0].name #=> String
resp.reactive_anomalies[0].anomaly_resources[0].type #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :insight_id (required, String)

    The ID of the insight. The returned anomalies belong to this insight.

  • :start_time_range (Types::StartTimeRange)

    A time range used to specify when the requested anomalies started. All returned anomalies started during this time range.

  • :max_results (Integer)

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

  • :account_id (String)

    The ID of the Amazon Web Services account.

  • :filters (Types::ListAnomaliesForInsightFilters)

    Specifies one or more service names that are used to list anomalies.

Returns:

See Also:



1442
1443
1444
1445
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1442

def list_anomalies_for_insight(params = {}, options = {})
  req = build_request(:list_anomalies_for_insight, params)
  req.send_request(options)
end

#list_anomalous_log_groups(params = {}) ⇒ Types::ListAnomalousLogGroupsResponse

Returns the list of log groups that contain log anomalies.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_anomalous_log_groups({
  insight_id: "InsightId", # required
  max_results: 1,
  next_token: "UuidNextToken",
})

Response structure


resp.insight_id #=> String
resp.anomalous_log_groups #=> Array
resp.anomalous_log_groups[0].log_group_name #=> String
resp.anomalous_log_groups[0].impact_start_time #=> Time
resp.anomalous_log_groups[0].impact_end_time #=> Time
resp.anomalous_log_groups[0].number_of_log_lines_scanned #=> Integer
resp.anomalous_log_groups[0].log_anomaly_showcases #=> Array
resp.anomalous_log_groups[0].log_anomaly_showcases[0].log_anomaly_classes #=> Array
resp.anomalous_log_groups[0].log_anomaly_showcases[0].log_anomaly_classes[0].log_stream_name #=> String
resp.anomalous_log_groups[0].log_anomaly_showcases[0].log_anomaly_classes[0].log_anomaly_type #=> String, one of "KEYWORD", "KEYWORD_TOKEN", "FORMAT", "HTTP_CODE", "BLOCK_FORMAT", "NUMERICAL_POINT", "NUMERICAL_NAN", "NEW_FIELD_NAME"
resp.anomalous_log_groups[0].log_anomaly_showcases[0].log_anomaly_classes[0].log_anomaly_token #=> String
resp.anomalous_log_groups[0].log_anomaly_showcases[0].log_anomaly_classes[0].log_event_id #=> String
resp.anomalous_log_groups[0].log_anomaly_showcases[0].log_anomaly_classes[0].explanation #=> String
resp.anomalous_log_groups[0].log_anomaly_showcases[0].log_anomaly_classes[0].number_of_log_lines_occurrences #=> Integer
resp.anomalous_log_groups[0].log_anomaly_showcases[0].log_anomaly_classes[0].log_event_timestamp #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :insight_id (required, String)

    The ID of the insight containing the log groups.

  • :max_results (Integer)

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

Returns:

See Also:



1500
1501
1502
1503
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1500

def list_anomalous_log_groups(params = {}, options = {})
  req = build_request(:list_anomalous_log_groups, params)
  req.send_request(options)
end

#list_events(params = {}) ⇒ Types::ListEventsResponse

Returns a list of the events emitted by the resources that are evaluated by DevOps Guru. You can use filters to specify which events are returned.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_events({
  filters: { # required
    insight_id: "InsightId",
    event_time_range: {
      from_time: Time.now, # required
      to_time: Time.now, # required
    },
    event_class: "INFRASTRUCTURE", # accepts INFRASTRUCTURE, DEPLOYMENT, SECURITY_CHANGE, CONFIG_CHANGE, SCHEMA_CHANGE
    event_source: "EventSource",
    data_source: "AWS_CLOUD_TRAIL", # accepts AWS_CLOUD_TRAIL, AWS_CODE_DEPLOY
    resource_collection: {
      cloud_formation: {
        stack_names: ["StackName"],
      },
      tags: [
        {
          app_boundary_key: "AppBoundaryKey", # required
          tag_values: ["TagValue"], # required
        },
      ],
    },
  },
  max_results: 1,
  next_token: "UuidNextToken",
  account_id: "AwsAccountId",
})

Response structure


resp.events #=> Array
resp.events[0].resource_collection.cloud_formation.stack_names #=> Array
resp.events[0].resource_collection.cloud_formation.stack_names[0] #=> String
resp.events[0].resource_collection.tags #=> Array
resp.events[0].resource_collection.tags[0].app_boundary_key #=> String
resp.events[0].resource_collection.tags[0].tag_values #=> Array
resp.events[0].resource_collection.tags[0].tag_values[0] #=> String
resp.events[0].id #=> String
resp.events[0].time #=> Time
resp.events[0].event_source #=> String
resp.events[0].name #=> String
resp.events[0].data_source #=> String, one of "AWS_CLOUD_TRAIL", "AWS_CODE_DEPLOY"
resp.events[0].event_class #=> String, one of "INFRASTRUCTURE", "DEPLOYMENT", "SECURITY_CHANGE", "CONFIG_CHANGE", "SCHEMA_CHANGE"
resp.events[0].resources #=> Array
resp.events[0].resources[0].type #=> String
resp.events[0].resources[0].name #=> String
resp.events[0].resources[0].arn #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :filters (required, Types::ListEventsFilters)

    A ListEventsFilters object used to specify which events to return.

  • :max_results (Integer)

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

  • :account_id (String)

    The ID of the Amazon Web Services account.

Returns:

See Also:



1585
1586
1587
1588
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1585

def list_events(params = {}, options = {})
  req = build_request(:list_events, params)
  req.send_request(options)
end

#list_insights(params = {}) ⇒ Types::ListInsightsResponse

Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time and status (ONGOING, CLOSED, or ANY).

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_insights({
  status_filter: { # required
    ongoing: {
      type: "REACTIVE", # required, accepts REACTIVE, PROACTIVE
    },
    closed: {
      type: "REACTIVE", # required, accepts REACTIVE, PROACTIVE
      end_time_range: { # required
        from_time: Time.now,
        to_time: Time.now,
      },
    },
    any: {
      type: "REACTIVE", # required, accepts REACTIVE, PROACTIVE
      start_time_range: { # required
        from_time: Time.now,
        to_time: Time.now,
      },
    },
  },
  max_results: 1,
  next_token: "UuidNextToken",
})

Response structure


resp.proactive_insights #=> Array
resp.proactive_insights[0].id #=> String
resp.proactive_insights[0].name #=> String
resp.proactive_insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.proactive_insights[0].status #=> String, one of "ONGOING", "CLOSED"
resp.proactive_insights[0].insight_time_range.start_time #=> Time
resp.proactive_insights[0].insight_time_range.end_time #=> Time
resp.proactive_insights[0].prediction_time_range.start_time #=> Time
resp.proactive_insights[0].prediction_time_range.end_time #=> Time
resp.proactive_insights[0].resource_collection.cloud_formation.stack_names #=> Array
resp.proactive_insights[0].resource_collection.cloud_formation.stack_names[0] #=> String
resp.proactive_insights[0].resource_collection.tags #=> Array
resp.proactive_insights[0].resource_collection.tags[0].app_boundary_key #=> String
resp.proactive_insights[0].resource_collection.tags[0].tag_values #=> Array
resp.proactive_insights[0].resource_collection.tags[0].tag_values[0] #=> String
resp.proactive_insights[0].service_collection.service_names #=> Array
resp.proactive_insights[0].service_collection.service_names[0] #=> String, one of "API_GATEWAY", "APPLICATION_ELB", "AUTO_SCALING_GROUP", "CLOUD_FRONT", "DYNAMO_DB", "EC2", "ECS", "EKS", "ELASTIC_BEANSTALK", "ELASTI_CACHE", "ELB", "ES", "KINESIS", "LAMBDA", "NAT_GATEWAY", "NETWORK_ELB", "RDS", "REDSHIFT", "ROUTE_53", "S3", "SAGE_MAKER", "SNS", "SQS", "STEP_FUNCTIONS", "SWF"
resp.proactive_insights[0].associated_resource_arns #=> Array
resp.proactive_insights[0].associated_resource_arns[0] #=> String
resp.reactive_insights #=> Array
resp.reactive_insights[0].id #=> String
resp.reactive_insights[0].name #=> String
resp.reactive_insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.reactive_insights[0].status #=> String, one of "ONGOING", "CLOSED"
resp.reactive_insights[0].insight_time_range.start_time #=> Time
resp.reactive_insights[0].insight_time_range.end_time #=> Time
resp.reactive_insights[0].resource_collection.cloud_formation.stack_names #=> Array
resp.reactive_insights[0].resource_collection.cloud_formation.stack_names[0] #=> String
resp.reactive_insights[0].resource_collection.tags #=> Array
resp.reactive_insights[0].resource_collection.tags[0].app_boundary_key #=> String
resp.reactive_insights[0].resource_collection.tags[0].tag_values #=> Array
resp.reactive_insights[0].resource_collection.tags[0].tag_values[0] #=> String
resp.reactive_insights[0].service_collection.service_names #=> Array
resp.reactive_insights[0].service_collection.service_names[0] #=> String, one of "API_GATEWAY", "APPLICATION_ELB", "AUTO_SCALING_GROUP", "CLOUD_FRONT", "DYNAMO_DB", "EC2", "ECS", "EKS", "ELASTIC_BEANSTALK", "ELASTI_CACHE", "ELB", "ES", "KINESIS", "LAMBDA", "NAT_GATEWAY", "NETWORK_ELB", "RDS", "REDSHIFT", "ROUTE_53", "S3", "SAGE_MAKER", "SNS", "SQS", "STEP_FUNCTIONS", "SWF"
resp.reactive_insights[0].associated_resource_arns #=> Array
resp.reactive_insights[0].associated_resource_arns[0] #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :status_filter (required, Types::ListInsightsStatusFilter)

    A filter used to filter the returned insights by their status. You can specify one status filter.

  • :max_results (Integer)

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

Returns:

See Also:



1685
1686
1687
1688
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1685

def list_insights(params = {}, options = {})
  req = build_request(:list_insights, params)
  req.send_request(options)
end

#list_monitored_resources(params = {}) ⇒ Types::ListMonitoredResourcesResponse

Returns the list of all log groups that are being monitored and tagged by DevOps Guru.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_monitored_resources({
  filters: {
    resource_permission: "FULL_PERMISSION", # required, accepts FULL_PERMISSION, MISSING_PERMISSION
    resource_type_filters: ["LOG_GROUPS"], # required, accepts LOG_GROUPS, CLOUDFRONT_DISTRIBUTION, DYNAMODB_TABLE, EC2_NAT_GATEWAY, ECS_CLUSTER, ECS_SERVICE, EKS_CLUSTER, ELASTIC_BEANSTALK_ENVIRONMENT, ELASTIC_LOAD_BALANCER_LOAD_BALANCER, ELASTIC_LOAD_BALANCING_V2_LOAD_BALANCER, ELASTIC_LOAD_BALANCING_V2_TARGET_GROUP, ELASTICACHE_CACHE_CLUSTER, ELASTICSEARCH_DOMAIN, KINESIS_STREAM, LAMBDA_FUNCTION, OPEN_SEARCH_SERVICE_DOMAIN, RDS_DB_INSTANCE, RDS_DB_CLUSTER, REDSHIFT_CLUSTER, ROUTE53_HOSTED_ZONE, ROUTE53_HEALTH_CHECK, S3_BUCKET, SAGEMAKER_ENDPOINT, SNS_TOPIC, SQS_QUEUE, STEP_FUNCTIONS_ACTIVITY, STEP_FUNCTIONS_STATE_MACHINE
  },
  max_results: 1,
  next_token: "UuidNextToken",
})

Response structure


resp.monitored_resource_identifiers #=> Array
resp.monitored_resource_identifiers[0].monitored_resource_name #=> String
resp.monitored_resource_identifiers[0].type #=> String
resp.monitored_resource_identifiers[0].resource_permission #=> String, one of "FULL_PERMISSION", "MISSING_PERMISSION"
resp.monitored_resource_identifiers[0].last_updated #=> Time
resp.monitored_resource_identifiers[0].resource_collection.cloud_formation.stack_names #=> Array
resp.monitored_resource_identifiers[0].resource_collection.cloud_formation.stack_names[0] #=> String
resp.monitored_resource_identifiers[0].resource_collection.tags #=> Array
resp.monitored_resource_identifiers[0].resource_collection.tags[0].app_boundary_key #=> String
resp.monitored_resource_identifiers[0].resource_collection.tags[0].tag_values #=> Array
resp.monitored_resource_identifiers[0].resource_collection.tags[0].tag_values[0] #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :filters (Types::ListMonitoredResourcesFilters)

    Filters to determine which monitored resources you want to retrieve. You can filter by resource type or resource permission status.

  • :max_results (Integer)

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

Returns:

See Also:



1743
1744
1745
1746
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1743

def list_monitored_resources(params = {}, options = {})
  req = build_request(:list_monitored_resources, params)
  req.send_request(options)
end

#list_notification_channels(params = {}) ⇒ Types::ListNotificationChannelsResponse

Returns a list of notification channels configured for DevOps Guru. Each notification channel is used to notify you when DevOps Guru generates an insight that contains information about how to improve your operations. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_notification_channels({
  next_token: "UuidNextToken",
})

Response structure


resp.channels #=> Array
resp.channels[0].id #=> String
resp.channels[0].config.sns.topic_arn #=> String
resp.channels[0].config.filters.severities #=> Array
resp.channels[0].config.filters.severities[0] #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.channels[0].config.filters.message_types #=> Array
resp.channels[0].config.filters.message_types[0] #=> String, one of "NEW_INSIGHT", "CLOSED_INSIGHT", "NEW_ASSOCIATION", "SEVERITY_UPGRADED", "NEW_RECOMMENDATION"
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

Returns:

See Also:



1786
1787
1788
1789
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1786

def list_notification_channels(params = {}, options = {})
  req = build_request(:list_notification_channels, params)
  req.send_request(options)
end

#list_organization_insights(params = {}) ⇒ Types::ListOrganizationInsightsResponse

Returns a list of insights associated with the account or OU Id.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_organization_insights({
  status_filter: { # required
    ongoing: {
      type: "REACTIVE", # required, accepts REACTIVE, PROACTIVE
    },
    closed: {
      type: "REACTIVE", # required, accepts REACTIVE, PROACTIVE
      end_time_range: { # required
        from_time: Time.now,
        to_time: Time.now,
      },
    },
    any: {
      type: "REACTIVE", # required, accepts REACTIVE, PROACTIVE
      start_time_range: { # required
        from_time: Time.now,
        to_time: Time.now,
      },
    },
  },
  max_results: 1,
  account_ids: ["AwsAccountId"],
  organizational_unit_ids: ["OrganizationalUnitId"],
  next_token: "UuidNextToken",
})

Response structure


resp.proactive_insights #=> Array
resp.proactive_insights[0].id #=> String
resp.proactive_insights[0]. #=> String
resp.proactive_insights[0].organizational_unit_id #=> String
resp.proactive_insights[0].name #=> String
resp.proactive_insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.proactive_insights[0].status #=> String, one of "ONGOING", "CLOSED"
resp.proactive_insights[0].insight_time_range.start_time #=> Time
resp.proactive_insights[0].insight_time_range.end_time #=> Time
resp.proactive_insights[0].prediction_time_range.start_time #=> Time
resp.proactive_insights[0].prediction_time_range.end_time #=> Time
resp.proactive_insights[0].resource_collection.cloud_formation.stack_names #=> Array
resp.proactive_insights[0].resource_collection.cloud_formation.stack_names[0] #=> String
resp.proactive_insights[0].resource_collection.tags #=> Array
resp.proactive_insights[0].resource_collection.tags[0].app_boundary_key #=> String
resp.proactive_insights[0].resource_collection.tags[0].tag_values #=> Array
resp.proactive_insights[0].resource_collection.tags[0].tag_values[0] #=> String
resp.proactive_insights[0].service_collection.service_names #=> Array
resp.proactive_insights[0].service_collection.service_names[0] #=> String, one of "API_GATEWAY", "APPLICATION_ELB", "AUTO_SCALING_GROUP", "CLOUD_FRONT", "DYNAMO_DB", "EC2", "ECS", "EKS", "ELASTIC_BEANSTALK", "ELASTI_CACHE", "ELB", "ES", "KINESIS", "LAMBDA", "NAT_GATEWAY", "NETWORK_ELB", "RDS", "REDSHIFT", "ROUTE_53", "S3", "SAGE_MAKER", "SNS", "SQS", "STEP_FUNCTIONS", "SWF"
resp.reactive_insights #=> Array
resp.reactive_insights[0].id #=> String
resp.reactive_insights[0]. #=> String
resp.reactive_insights[0].organizational_unit_id #=> String
resp.reactive_insights[0].name #=> String
resp.reactive_insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.reactive_insights[0].status #=> String, one of "ONGOING", "CLOSED"
resp.reactive_insights[0].insight_time_range.start_time #=> Time
resp.reactive_insights[0].insight_time_range.end_time #=> Time
resp.reactive_insights[0].resource_collection.cloud_formation.stack_names #=> Array
resp.reactive_insights[0].resource_collection.cloud_formation.stack_names[0] #=> String
resp.reactive_insights[0].resource_collection.tags #=> Array
resp.reactive_insights[0].resource_collection.tags[0].app_boundary_key #=> String
resp.reactive_insights[0].resource_collection.tags[0].tag_values #=> Array
resp.reactive_insights[0].resource_collection.tags[0].tag_values[0] #=> String
resp.reactive_insights[0].service_collection.service_names #=> Array
resp.reactive_insights[0].service_collection.service_names[0] #=> String, one of "API_GATEWAY", "APPLICATION_ELB", "AUTO_SCALING_GROUP", "CLOUD_FRONT", "DYNAMO_DB", "EC2", "ECS", "EKS", "ELASTIC_BEANSTALK", "ELASTI_CACHE", "ELB", "ES", "KINESIS", "LAMBDA", "NAT_GATEWAY", "NETWORK_ELB", "RDS", "REDSHIFT", "ROUTE_53", "S3", "SAGE_MAKER", "SNS", "SQS", "STEP_FUNCTIONS", "SWF"
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :status_filter (required, Types::ListInsightsStatusFilter)

    A filter used by ListInsights to specify which insights to return.

  • :max_results (Integer)

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • :account_ids (Array<String>)

    The ID of the Amazon Web Services account.

  • :organizational_unit_ids (Array<String>)

    The ID of the organizational unit.

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

Returns:

See Also:



1891
1892
1893
1894
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1891

def list_organization_insights(params = {}, options = {})
  req = build_request(:list_organization_insights, params)
  req.send_request(options)
end

#list_recommendations(params = {}) ⇒ Types::ListRecommendationsResponse

Returns a list of a specified insight's recommendations. Each recommendation includes a list of related metrics and a list of related events.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_recommendations({
  insight_id: "InsightId", # required
  next_token: "UuidNextToken",
  locale: "DE_DE", # accepts DE_DE, EN_US, EN_GB, ES_ES, FR_FR, IT_IT, JA_JP, KO_KR, PT_BR, ZH_CN, ZH_TW
  account_id: "AwsAccountId",
})

Response structure


resp.recommendations #=> Array
resp.recommendations[0].description #=> String
resp.recommendations[0].link #=> String
resp.recommendations[0].name #=> String
resp.recommendations[0].reason #=> String
resp.recommendations[0].related_events #=> Array
resp.recommendations[0].related_events[0].name #=> String
resp.recommendations[0].related_events[0].resources #=> Array
resp.recommendations[0].related_events[0].resources[0].name #=> String
resp.recommendations[0].related_events[0].resources[0].type #=> String
resp.recommendations[0].related_anomalies #=> Array
resp.recommendations[0].related_anomalies[0].resources #=> Array
resp.recommendations[0].related_anomalies[0].resources[0].name #=> String
resp.recommendations[0].related_anomalies[0].resources[0].type #=> String
resp.recommendations[0].related_anomalies[0].source_details #=> Array
resp.recommendations[0].related_anomalies[0].source_details[0].cloud_watch_metrics #=> Array
resp.recommendations[0].related_anomalies[0].source_details[0].cloud_watch_metrics[0].metric_name #=> String
resp.recommendations[0].related_anomalies[0].source_details[0].cloud_watch_metrics[0].namespace #=> String
resp.recommendations[0].related_anomalies[0].anomaly_id #=> String
resp.recommendations[0].category #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :insight_id (required, String)

    The ID of the requested insight.

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

  • :locale (String)

    A locale that specifies the language to use for recommendations.

  • :account_id (String)

    The ID of the Amazon Web Services account.

Returns:

See Also:



1957
1958
1959
1960
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1957

def list_recommendations(params = {}, options = {})
  req = build_request(:list_recommendations, params)
  req.send_request(options)
end

#put_feedback(params = {}) ⇒ Struct

Collects customer feedback about the specified insight.

Examples:

Request syntax with placeholder values


resp = client.put_feedback({
  insight_feedback: {
    id: "InsightId",
    feedback: "VALID_COLLECTION", # accepts VALID_COLLECTION, RECOMMENDATION_USEFUL, ALERT_TOO_SENSITIVE, DATA_NOISY_ANOMALY, DATA_INCORRECT
  },
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :insight_feedback (Types::InsightFeedback)

    The feedback from customers is about the recommendations in this insight.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1983
1984
1985
1986
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 1983

def put_feedback(params = {}, options = {})
  req = build_request(:put_feedback, params)
  req.send_request(options)
end

#remove_notification_channel(params = {}) ⇒ Struct

Removes a notification channel from DevOps Guru. A notification channel is used to notify you when DevOps Guru generates an insight that contains information about how to improve your operations.

Examples:

Request syntax with placeholder values


resp = client.remove_notification_channel({
  id: "NotificationChannelId", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :id (required, String)

    The ID of the notification channel to be removed.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2007
2008
2009
2010
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 2007

def remove_notification_channel(params = {}, options = {})
  req = build_request(:remove_notification_channel, params)
  req.send_request(options)
end

#search_insights(params = {}) ⇒ Types::SearchInsightsResponse

Returns a list of insights in your Amazon Web Services account. You can specify which insights are returned by their start time, one or more statuses (ONGOING or CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE).

Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.search_insights({
  start_time_range: { # required
    from_time: Time.now,
    to_time: Time.now,
  },
  filters: {
    severities: ["LOW"], # accepts LOW, MEDIUM, HIGH
    statuses: ["ONGOING"], # accepts ONGOING, CLOSED
    resource_collection: {
      cloud_formation: {
        stack_names: ["StackName"],
      },
      tags: [
        {
          app_boundary_key: "AppBoundaryKey", # required
          tag_values: ["TagValue"], # required
        },
      ],
    },
    service_collection: {
      service_names: ["API_GATEWAY"], # accepts API_GATEWAY, APPLICATION_ELB, AUTO_SCALING_GROUP, CLOUD_FRONT, DYNAMO_DB, EC2, ECS, EKS, ELASTIC_BEANSTALK, ELASTI_CACHE, ELB, ES, KINESIS, LAMBDA, NAT_GATEWAY, NETWORK_ELB, RDS, REDSHIFT, ROUTE_53, S3, SAGE_MAKER, SNS, SQS, STEP_FUNCTIONS, SWF
    },
  },
  max_results: 1,
  next_token: "UuidNextToken",
  type: "REACTIVE", # required, accepts REACTIVE, PROACTIVE
})

Response structure


resp.proactive_insights #=> Array
resp.proactive_insights[0].id #=> String
resp.proactive_insights[0].name #=> String
resp.proactive_insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.proactive_insights[0].status #=> String, one of "ONGOING", "CLOSED"
resp.proactive_insights[0].insight_time_range.start_time #=> Time
resp.proactive_insights[0].insight_time_range.end_time #=> Time
resp.proactive_insights[0].prediction_time_range.start_time #=> Time
resp.proactive_insights[0].prediction_time_range.end_time #=> Time
resp.proactive_insights[0].resource_collection.cloud_formation.stack_names #=> Array
resp.proactive_insights[0].resource_collection.cloud_formation.stack_names[0] #=> String
resp.proactive_insights[0].resource_collection.tags #=> Array
resp.proactive_insights[0].resource_collection.tags[0].app_boundary_key #=> String
resp.proactive_insights[0].resource_collection.tags[0].tag_values #=> Array
resp.proactive_insights[0].resource_collection.tags[0].tag_values[0] #=> String
resp.proactive_insights[0].service_collection.service_names #=> Array
resp.proactive_insights[0].service_collection.service_names[0] #=> String, one of "API_GATEWAY", "APPLICATION_ELB", "AUTO_SCALING_GROUP", "CLOUD_FRONT", "DYNAMO_DB", "EC2", "ECS", "EKS", "ELASTIC_BEANSTALK", "ELASTI_CACHE", "ELB", "ES", "KINESIS", "LAMBDA", "NAT_GATEWAY", "NETWORK_ELB", "RDS", "REDSHIFT", "ROUTE_53", "S3", "SAGE_MAKER", "SNS", "SQS", "STEP_FUNCTIONS", "SWF"
resp.proactive_insights[0].associated_resource_arns #=> Array
resp.proactive_insights[0].associated_resource_arns[0] #=> String
resp.reactive_insights #=> Array
resp.reactive_insights[0].id #=> String
resp.reactive_insights[0].name #=> String
resp.reactive_insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.reactive_insights[0].status #=> String, one of "ONGOING", "CLOSED"
resp.reactive_insights[0].insight_time_range.start_time #=> Time
resp.reactive_insights[0].insight_time_range.end_time #=> Time
resp.reactive_insights[0].resource_collection.cloud_formation.stack_names #=> Array
resp.reactive_insights[0].resource_collection.cloud_formation.stack_names[0] #=> String
resp.reactive_insights[0].resource_collection.tags #=> Array
resp.reactive_insights[0].resource_collection.tags[0].app_boundary_key #=> String
resp.reactive_insights[0].resource_collection.tags[0].tag_values #=> Array
resp.reactive_insights[0].resource_collection.tags[0].tag_values[0] #=> String
resp.reactive_insights[0].service_collection.service_names #=> Array
resp.reactive_insights[0].service_collection.service_names[0] #=> String, one of "API_GATEWAY", "APPLICATION_ELB", "AUTO_SCALING_GROUP", "CLOUD_FRONT", "DYNAMO_DB", "EC2", "ECS", "EKS", "ELASTIC_BEANSTALK", "ELASTI_CACHE", "ELB", "ES", "KINESIS", "LAMBDA", "NAT_GATEWAY", "NETWORK_ELB", "RDS", "REDSHIFT", "ROUTE_53", "S3", "SAGE_MAKER", "SNS", "SQS", "STEP_FUNCTIONS", "SWF"
resp.reactive_insights[0].associated_resource_arns #=> Array
resp.reactive_insights[0].associated_resource_arns[0] #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :start_time_range (required, Types::StartTimeRange)

    The start of the time range passed in. Returned insights occurred after this time.

  • :filters (Types::SearchInsightsFilters)

    A SearchInsightsFilters object that is used to set the severity and status filters on your insight search.

  • :max_results (Integer)

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

  • :type (required, String)

    The type of insights you are searching for (REACTIVE or PROACTIVE).

Returns:

See Also:



2124
2125
2126
2127
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 2124

def search_insights(params = {}, options = {})
  req = build_request(:search_insights, params)
  req.send_request(options)
end

#search_organization_insights(params = {}) ⇒ Types::SearchOrganizationInsightsResponse

Returns a list of insights in your organization. You can specify which insights are returned by their start time, one or more statuses (ONGOING, CLOSED, and CLOSED), one or more severities (LOW, MEDIUM, and HIGH), and type (REACTIVE or PROACTIVE).

Use the Filters parameter to specify status and severity search parameters. Use the Type parameter to specify REACTIVE or PROACTIVE in your search.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.search_organization_insights({
  account_ids: ["AwsAccountId"], # required
  start_time_range: { # required
    from_time: Time.now,
    to_time: Time.now,
  },
  filters: {
    severities: ["LOW"], # accepts LOW, MEDIUM, HIGH
    statuses: ["ONGOING"], # accepts ONGOING, CLOSED
    resource_collection: {
      cloud_formation: {
        stack_names: ["StackName"],
      },
      tags: [
        {
          app_boundary_key: "AppBoundaryKey", # required
          tag_values: ["TagValue"], # required
        },
      ],
    },
    service_collection: {
      service_names: ["API_GATEWAY"], # accepts API_GATEWAY, APPLICATION_ELB, AUTO_SCALING_GROUP, CLOUD_FRONT, DYNAMO_DB, EC2, ECS, EKS, ELASTIC_BEANSTALK, ELASTI_CACHE, ELB, ES, KINESIS, LAMBDA, NAT_GATEWAY, NETWORK_ELB, RDS, REDSHIFT, ROUTE_53, S3, SAGE_MAKER, SNS, SQS, STEP_FUNCTIONS, SWF
    },
  },
  max_results: 1,
  next_token: "UuidNextToken",
  type: "REACTIVE", # required, accepts REACTIVE, PROACTIVE
})

Response structure


resp.proactive_insights #=> Array
resp.proactive_insights[0].id #=> String
resp.proactive_insights[0].name #=> String
resp.proactive_insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.proactive_insights[0].status #=> String, one of "ONGOING", "CLOSED"
resp.proactive_insights[0].insight_time_range.start_time #=> Time
resp.proactive_insights[0].insight_time_range.end_time #=> Time
resp.proactive_insights[0].prediction_time_range.start_time #=> Time
resp.proactive_insights[0].prediction_time_range.end_time #=> Time
resp.proactive_insights[0].resource_collection.cloud_formation.stack_names #=> Array
resp.proactive_insights[0].resource_collection.cloud_formation.stack_names[0] #=> String
resp.proactive_insights[0].resource_collection.tags #=> Array
resp.proactive_insights[0].resource_collection.tags[0].app_boundary_key #=> String
resp.proactive_insights[0].resource_collection.tags[0].tag_values #=> Array
resp.proactive_insights[0].resource_collection.tags[0].tag_values[0] #=> String
resp.proactive_insights[0].service_collection.service_names #=> Array
resp.proactive_insights[0].service_collection.service_names[0] #=> String, one of "API_GATEWAY", "APPLICATION_ELB", "AUTO_SCALING_GROUP", "CLOUD_FRONT", "DYNAMO_DB", "EC2", "ECS", "EKS", "ELASTIC_BEANSTALK", "ELASTI_CACHE", "ELB", "ES", "KINESIS", "LAMBDA", "NAT_GATEWAY", "NETWORK_ELB", "RDS", "REDSHIFT", "ROUTE_53", "S3", "SAGE_MAKER", "SNS", "SQS", "STEP_FUNCTIONS", "SWF"
resp.proactive_insights[0].associated_resource_arns #=> Array
resp.proactive_insights[0].associated_resource_arns[0] #=> String
resp.reactive_insights #=> Array
resp.reactive_insights[0].id #=> String
resp.reactive_insights[0].name #=> String
resp.reactive_insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
resp.reactive_insights[0].status #=> String, one of "ONGOING", "CLOSED"
resp.reactive_insights[0].insight_time_range.start_time #=> Time
resp.reactive_insights[0].insight_time_range.end_time #=> Time
resp.reactive_insights[0].resource_collection.cloud_formation.stack_names #=> Array
resp.reactive_insights[0].resource_collection.cloud_formation.stack_names[0] #=> String
resp.reactive_insights[0].resource_collection.tags #=> Array
resp.reactive_insights[0].resource_collection.tags[0].app_boundary_key #=> String
resp.reactive_insights[0].resource_collection.tags[0].tag_values #=> Array
resp.reactive_insights[0].resource_collection.tags[0].tag_values[0] #=> String
resp.reactive_insights[0].service_collection.service_names #=> Array
resp.reactive_insights[0].service_collection.service_names[0] #=> String, one of "API_GATEWAY", "APPLICATION_ELB", "AUTO_SCALING_GROUP", "CLOUD_FRONT", "DYNAMO_DB", "EC2", "ECS", "EKS", "ELASTIC_BEANSTALK", "ELASTI_CACHE", "ELB", "ES", "KINESIS", "LAMBDA", "NAT_GATEWAY", "NETWORK_ELB", "RDS", "REDSHIFT", "ROUTE_53", "S3", "SAGE_MAKER", "SNS", "SQS", "STEP_FUNCTIONS", "SWF"
resp.reactive_insights[0].associated_resource_arns #=> Array
resp.reactive_insights[0].associated_resource_arns[0] #=> String
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :account_ids (required, Array<String>)

    The ID of the Amazon Web Services account.

  • :start_time_range (required, Types::StartTimeRange)

    A time range used to specify when the behavior of an insight or anomaly started.

  • :filters (Types::SearchOrganizationInsightsFilters)

    A SearchOrganizationInsightsFilters object that is used to set the severity and status filters on your insight search.

  • :max_results (Integer)

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • :next_token (String)

    The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.

  • :type (required, String)

    The type of insights you are searching for (REACTIVE or PROACTIVE).

Returns:

See Also:



2245
2246
2247
2248
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 2245

def search_organization_insights(params = {}, options = {})
  req = build_request(:search_organization_insights, params)
  req.send_request(options)
end

#start_cost_estimation(params = {}) ⇒ Struct

Starts the creation of an estimate of the monthly cost to analyze your Amazon Web Services resources.

Examples:

Request syntax with placeholder values


resp = client.start_cost_estimation({
  resource_collection: { # required
    cloud_formation: {
      stack_names: ["StackName"],
    },
    tags: [
      {
        app_boundary_key: "AppBoundaryKey", # required
        tag_values: ["TagValue"], # required
      },
    ],
  },
  client_token: "ClientToken",
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_collection (required, Types::CostEstimationResourceCollectionFilter)

    The collection of Amazon Web Services resources used to create a monthly DevOps Guru cost estimate.

  • :client_token (String)

    The idempotency token used to identify each cost estimate request.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2286
2287
2288
2289
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 2286

def start_cost_estimation(params = {}, options = {})
  req = build_request(:start_cost_estimation, params)
  req.send_request(options)
end

#update_event_sources_config(params = {}) ⇒ Struct

Enables or disables integration with a service that can be integrated with DevOps Guru. The one service that can be integrated with DevOps Guru is Amazon CodeGuru Profiler, which can produce proactive recommendations which can be stored and viewed in DevOps Guru.

Examples:

Request syntax with placeholder values


resp = client.update_event_sources_config({
  event_sources: {
    amazon_code_guru_profiler: {
      status: "ENABLED", # accepts ENABLED, DISABLED
    },
  },
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :event_sources (Types::EventSourcesConfig)

    Configuration information about the integration of DevOps Guru as the Consumer via EventBridge with another AWS Service.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2316
2317
2318
2319
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 2316

def update_event_sources_config(params = {}, options = {})
  req = build_request(:update_event_sources_config, params)
  req.send_request(options)
end

#update_resource_collection(params = {}) ⇒ Struct

Updates the collection of resources that DevOps Guru analyzes. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks. This method also creates the IAM role required for you to use DevOps Guru.

Examples:

Request syntax with placeholder values


resp = client.update_resource_collection({
  action: "ADD", # required, accepts ADD, REMOVE
  resource_collection: { # required
    cloud_formation: {
      stack_names: ["StackName"],
    },
    tags: [
      {
        app_boundary_key: "AppBoundaryKey", # required
        tag_values: ["TagValue"], # required
      },
    ],
  },
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :action (required, String)

    Specifies if the resource collection in the request is added or deleted to the resource collection.

  • :resource_collection (required, Types::UpdateResourceCollectionFilter)

    Contains information used to update a collection of Amazon Web Services resources.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2361
2362
2363
2364
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 2361

def update_resource_collection(params = {}, options = {})
  req = build_request(:update_resource_collection, params)
  req.send_request(options)
end

#update_service_integration(params = {}) ⇒ Struct

Enables or disables integration with a service that can be integrated with DevOps Guru. The one service that can be integrated with DevOps Guru is Amazon Web Services Systems Manager, which can be used to create an OpsItem for each generated insight.

Examples:

Request syntax with placeholder values


resp = client.update_service_integration({
  service_integration: { # required
    ops_center: {
      opt_in_status: "ENABLED", # accepts ENABLED, DISABLED
    },
    logs_anomaly_detection: {
      opt_in_status: "ENABLED", # accepts ENABLED, DISABLED
    },
    kms_server_side_encryption: {
      kms_key_id: "KMSKeyId",
      opt_in_status: "ENABLED", # accepts ENABLED, DISABLED
      type: "CUSTOMER_MANAGED_KEY", # accepts CUSTOMER_MANAGED_KEY, AWS_OWNED_KMS_KEY
    },
  },
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :service_integration (required, Types::UpdateServiceIntegrationConfig)

    An IntegratedServiceConfig object used to specify the integrated service you want to update, and whether you want to update it to enabled or disabled.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2400
2401
2402
2403
# File 'gems/aws-sdk-devopsguru/lib/aws-sdk-devopsguru/client.rb', line 2400

def update_service_integration(params = {}, options = {})
  req = build_request(:update_service_integration, params)
  req.send_request(options)
end