Class: Aws::DevOpsGuru::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::DevOpsGuru::Client
- Includes:
- ClientStubs
- Defined in:
- 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](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#add_notification_channel(params = {}) ⇒ Types::AddNotificationChannelResponse
Adds a notification channel to DevOps Guru.
-
#delete_insight(params = {}) ⇒ Struct
Deletes the insight along with the associated anomalies, events and recommendations.
-
#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.
-
#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.
-
#describe_anomaly(params = {}) ⇒ Types::DescribeAnomalyResponse
Returns details about an anomaly that you specify using its ID.
-
#describe_event_sources_config(params = {}) ⇒ Types::DescribeEventSourcesConfigResponse
Returns the integration status of services that are integrated with DevOps Guru as Consumer via EventBridge.
-
#describe_feedback(params = {}) ⇒ Types::DescribeFeedbackResponse
Returns the most recent feedback submitted in the current Amazon Web Services account and Region.
-
#describe_insight(params = {}) ⇒ Types::DescribeInsightResponse
Returns details about an insight that you specify using its ID.
-
#describe_organization_health(params = {}) ⇒ Types::DescribeOrganizationHealthResponse
Returns active insights, predictive insights, and resource hours analyzed in last hour.
-
#describe_organization_overview(params = {}) ⇒ Types::DescribeOrganizationOverviewResponse
Returns an overview of your organization’s history based on the specified time range.
-
#describe_organization_resource_collection_health(params = {}) ⇒ Types::DescribeOrganizationResourceCollectionHealthResponse
Provides an overview of your system’s health.
-
#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.
-
#describe_service_integration(params = {}) ⇒ Types::DescribeServiceIntegrationResponse
Returns the integration status of services that are integrated with DevOps Guru.
-
#get_cost_estimation(params = {}) ⇒ Types::GetCostEstimationResponse
Returns an estimate of the monthly cost for DevOps Guru to analyze your Amazon Web Services resources.
-
#get_resource_collection(params = {}) ⇒ Types::GetResourceCollectionResponse
Returns lists Amazon Web Services resources that are of the specified resource collection type.
-
#list_anomalies_for_insight(params = {}) ⇒ Types::ListAnomaliesForInsightResponse
Returns a list of the anomalies that belong to an insight that you specify using its ID.
-
#list_anomalous_log_groups(params = {}) ⇒ Types::ListAnomalousLogGroupsResponse
Returns the list of log groups that contain log anomalies.
-
#list_events(params = {}) ⇒ Types::ListEventsResponse
Returns a list of the events emitted by the resources that are evaluated by DevOps Guru.
-
#list_insights(params = {}) ⇒ Types::ListInsightsResponse
Returns a list of insights in your Amazon Web Services account.
-
#list_monitored_resources(params = {}) ⇒ Types::ListMonitoredResourcesResponse
Returns the list of all log groups that are being monitored and tagged by DevOps Guru.
-
#list_notification_channels(params = {}) ⇒ Types::ListNotificationChannelsResponse
Returns a list of notification channels configured for DevOps Guru.
-
#list_organization_insights(params = {}) ⇒ Types::ListOrganizationInsightsResponse
Returns a list of insights associated with the account or OU Id.
-
#list_recommendations(params = {}) ⇒ Types::ListRecommendationsResponse
Returns a list of a specified insight’s recommendations.
-
#put_feedback(params = {}) ⇒ Struct
Collects customer feedback about the specified insight.
-
#remove_notification_channel(params = {}) ⇒ Struct
Removes a notification channel from DevOps Guru.
-
#search_insights(params = {}) ⇒ Types::SearchInsightsResponse
Returns a list of insights in your Amazon Web Services account.
-
#search_organization_insights(params = {}) ⇒ Types::SearchOrganizationInsightsResponse
Returns a list of insights in your organization.
-
#start_cost_estimation(params = {}) ⇒ Struct
Starts the creation of an estimate of the monthly cost to analyze your Amazon Web Services resources.
-
#update_event_sources_config(params = {}) ⇒ Struct
Enables or disables integration with a service that can be integrated with DevOps Guru.
-
#update_resource_collection(params = {}) ⇒ Struct
Updates the collection of resources that DevOps Guru analyzes.
-
#update_service_integration(params = {}) ⇒ Struct
Enables or disables integration with a service that can be integrated with DevOps Guru.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
434 435 436 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 434 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2426 2427 2428 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 2426 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2429 2430 2431 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 2429 def errors_module Errors 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].
[1]: docs.aws.amazon.com/devops-guru/latest/userguide/sns-required-permissions.html [2]: docs.aws.amazon.com/devops-guru/latest/userguide/sns-kms-permissions.html
493 494 495 496 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 493 def add_notification_channel(params = {}, = {}) req = build_request(:add_notification_channel, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 2399 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::DevOpsGuru') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-devopsguru' context[:gem_version] = '1.48.0' Seahorse::Client::Request.new(handlers, context) end |
#delete_insight(params = {}) ⇒ Struct
Deletes the insight along with the associated anomalies, events and recommendations.
516 517 518 519 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 516 def delete_insight(params = {}, = {}) req = build_request(:delete_insight, params) req.send_request() 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.
546 547 548 549 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 546 def describe_account_health(params = {}, = {}) req = build_request(:describe_account_health, params) req.send_request() 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.
590 591 592 593 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 590 def describe_account_overview(params = {}, = {}) req = build_request(:describe_account_overview, params) req.send_request() end |
#describe_anomaly(params = {}) ⇒ Types::DescribeAnomalyResponse
Returns details about an anomaly that you specify using its ID.
746 747 748 749 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 746 def describe_anomaly(params = {}, = {}) req = build_request(:describe_anomaly, params) req.send_request() 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.
769 770 771 772 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 769 def describe_event_sources_config(params = {}, = {}) req = build_request(:describe_event_sources_config, params) req.send_request() end |
#describe_feedback(params = {}) ⇒ Types::DescribeFeedbackResponse
Returns the most recent feedback submitted in the current Amazon Web Services account and Region.
799 800 801 802 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 799 def describe_feedback(params = {}, = {}) req = build_request(:describe_feedback, params) req.send_request() end |
#describe_insight(params = {}) ⇒ Types::DescribeInsightResponse
Returns details about an insight that you specify using its ID.
861 862 863 864 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 861 def describe_insight(params = {}, = {}) req = build_request(:describe_insight, params) req.send_request() end |
#describe_organization_health(params = {}) ⇒ Types::DescribeOrganizationHealthResponse
Returns active insights, predictive insights, and resource hours analyzed in last hour.
900 901 902 903 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 900 def describe_organization_health(params = {}, = {}) req = build_request(:describe_organization_health, params) req.send_request() 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.
949 950 951 952 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 949 def describe_organization_overview(params = {}, = {}) req = build_request(:describe_organization_overview, params) req.send_request() 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.
1033 1034 1035 1036 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1033 def describe_organization_resource_collection_health(params = {}, = {}) req = build_request(:describe_organization_resource_collection_health, params) req.send_request() 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.
1105 1106 1107 1108 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1105 def describe_resource_collection_health(params = {}, = {}) req = build_request(:describe_resource_collection_health, params) req.send_request() 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.
1131 1132 1133 1134 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1131 def describe_service_integration(params = {}, = {}) req = build_request(:describe_service_integration, params) req.send_request() 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][1
-
and [Amazon DevOps Guru
[1]: docs.aws.amazon.com/devops-guru/latest/userguide/cost-estimate.html [2]: aws.amazon.com/devops-guru/pricing/
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1191 1192 1193 1194 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1191 def get_cost_estimation(params = {}, = {}) req = build_request(:get_cost_estimation, params) req.send_request() 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.
1242 1243 1244 1245 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1242 def get_resource_collection(params = {}, = {}) req = build_request(:get_resource_collection, params) req.send_request() 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.
1432 1433 1434 1435 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1432 def list_anomalies_for_insight(params = {}, = {}) req = build_request(:list_anomalies_for_insight, params) req.send_request() 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.
1490 1491 1492 1493 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1490 def list_anomalous_log_groups(params = {}, = {}) req = build_request(:list_anomalous_log_groups, params) req.send_request() 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.
1575 1576 1577 1578 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1575 def list_events(params = {}, = {}) req = build_request(:list_events, params) req.send_request() 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.
1675 1676 1677 1678 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1675 def list_insights(params = {}, = {}) req = build_request(:list_insights, params) req.send_request() 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.
1733 1734 1735 1736 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1733 def list_monitored_resources(params = {}, = {}) req = build_request(:list_monitored_resources, params) req.send_request() 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.
1776 1777 1778 1779 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1776 def list_notification_channels(params = {}, = {}) req = build_request(:list_notification_channels, params) req.send_request() 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.
1881 1882 1883 1884 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1881 def list_organization_insights(params = {}, = {}) req = build_request(:list_organization_insights, params) req.send_request() 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.
1947 1948 1949 1950 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1947 def list_recommendations(params = {}, = {}) req = build_request(:list_recommendations, params) req.send_request() end |
#put_feedback(params = {}) ⇒ Struct
Collects customer feedback about the specified insight.
1973 1974 1975 1976 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1973 def put_feedback(params = {}, = {}) req = build_request(:put_feedback, params) req.send_request() 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.
1997 1998 1999 2000 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 1997 def remove_notification_channel(params = {}, = {}) req = build_request(:remove_notification_channel, params) req.send_request() 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.
2114 2115 2116 2117 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 2114 def search_insights(params = {}, = {}) req = build_request(:search_insights, params) req.send_request() 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.
2235 2236 2237 2238 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 2235 def search_organization_insights(params = {}, = {}) req = build_request(:search_organization_insights, params) req.send_request() end |
#start_cost_estimation(params = {}) ⇒ Struct
Starts the creation of an estimate of the monthly cost to analyze your Amazon Web Services resources.
2276 2277 2278 2279 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 2276 def start_cost_estimation(params = {}, = {}) req = build_request(:start_cost_estimation, params) req.send_request() 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.
2306 2307 2308 2309 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 2306 def update_event_sources_config(params = {}, = {}) req = build_request(:update_event_sources_config, params) req.send_request() 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.
2351 2352 2353 2354 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 2351 def update_resource_collection(params = {}, = {}) req = build_request(:update_resource_collection, params) req.send_request() 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.
2390 2391 2392 2393 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 2390 def update_service_integration(params = {}, = {}) req = build_request(:update_service_integration, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2419 2420 2421 |
# File 'lib/aws-sdk-devopsguru/client.rb', line 2419 def waiter_names [] end |