Class: Aws::ApplicationSignals::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::ApplicationSignals::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb
Overview
An API client for ApplicationSignals. To construct a client, you need to configure a :region and :credentials.
client = Aws::ApplicationSignals::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
API Operations collapse
-
#batch_get_service_level_objective_budget_report(params = {}) ⇒ Types::BatchGetServiceLevelObjectiveBudgetReportOutput
Use this operation to retrieve one or more service level objective (SLO) budget reports.
-
#batch_update_exclusion_windows(params = {}) ⇒ Types::BatchUpdateExclusionWindowsOutput
Add or remove time window exclusions for one or more Service Level Objectives (SLOs).
-
#create_service_level_objective(params = {}) ⇒ Types::CreateServiceLevelObjectiveOutput
Creates a service level objective (SLO), which can help you ensure that your critical business operations are meeting customer expectations.
-
#delete_grouping_configuration(params = {}) ⇒ Struct
Deletes a grouping configuration that defines how services are grouped and organized in Application Signals.
-
#delete_service_level_objective(params = {}) ⇒ Struct
Deletes the specified service level objective.
-
#get_service(params = {}) ⇒ Types::GetServiceOutput
Returns information about a service discovered by Application Signals.
-
#get_service_level_objective(params = {}) ⇒ Types::GetServiceLevelObjectiveOutput
Returns information about one SLO created in the account.
-
#list_audit_findings(params = {}) ⇒ Types::ListAuditFindingsOutput
Retrieves a list of audit findings for Application Signals resources.
-
#list_grouping_attribute_definitions(params = {}) ⇒ Types::ListGroupingAttributeDefinitionsOutput
Retrieves the available grouping attribute definitions that can be used to create grouping configurations.
-
#list_service_dependencies(params = {}) ⇒ Types::ListServiceDependenciesOutput
Returns a list of service dependencies of the service that you specify.
-
#list_service_dependents(params = {}) ⇒ Types::ListServiceDependentsOutput
Returns the list of dependents that invoked the specified service during the provided time range.
-
#list_service_level_objective_exclusion_windows(params = {}) ⇒ Types::ListServiceLevelObjectiveExclusionWindowsOutput
Retrieves all exclusion windows configured for a specific SLO.
-
#list_service_level_objectives(params = {}) ⇒ Types::ListServiceLevelObjectivesOutput
Returns a list of SLOs created in this account.
-
#list_service_operations(params = {}) ⇒ Types::ListServiceOperationsOutput
Returns a list of the operations of this service that have been discovered by Application Signals.
-
#list_service_states(params = {}) ⇒ Types::ListServiceStatesOutput
Retrieves the current state information for services monitored by Application Signals.
-
#list_services(params = {}) ⇒ Types::ListServicesOutput
Returns a list of services that have been discovered by Application Signals.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Displays the tags associated with a CloudWatch resource.
-
#put_grouping_configuration(params = {}) ⇒ Types::PutGroupingConfigurationOutput
Creates or updates a grouping configuration that defines how services are organized and grouped in Application Signals dashboards and service maps.
-
#start_discovery(params = {}) ⇒ Struct
Enables this Amazon Web Services account to be able to use CloudWatch Application Signals by creating the AWSServiceRoleForCloudWatchApplicationSignals service-linked role.
-
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified CloudWatch resource, such as a service level objective.
-
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from the specified resource.
-
#update_service_level_objective(params = {}) ⇒ Types::UpdateServiceLevelObjectiveOutput
Updates an existing service level objective (SLO).
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
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.
473 474 475 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 473 def initialize(*args) super end |
Instance Method Details
#batch_get_service_level_objective_budget_report(params = {}) ⇒ Types::BatchGetServiceLevelObjectiveBudgetReportOutput
Use this operation to retrieve one or more service level objective (SLO) budget reports.
An error budget is the amount of time or requests in an unhealthy state that your service can accumulate during an interval before your overall SLO budget health is breached and the SLO is considered to be unmet. For example, an SLO with a threshold of 99.95% and a monthly interval translates to an error budget of 21.9 minutes of downtime in a 30-day month.
Budget reports include a health indicator, the attainment value, and remaining budget.
For more information about SLO error budgets, see SLO concepts.
627 628 629 630 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 627 def batch_get_service_level_objective_budget_report(params = {}, = {}) req = build_request(:batch_get_service_level_objective_budget_report, params) req.send_request() end |
#batch_update_exclusion_windows(params = {}) ⇒ Types::BatchUpdateExclusionWindowsOutput
Add or remove time window exclusions for one or more Service Level Objectives (SLOs).
696 697 698 699 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 696 def batch_update_exclusion_windows(params = {}, = {}) req = build_request(:batch_update_exclusion_windows, params) req.send_request() end |
#create_service_level_objective(params = {}) ⇒ Types::CreateServiceLevelObjectiveOutput
Creates a service level objective (SLO), which can help you ensure that your critical business operations are meeting customer expectations. Use SLOs to set and track specific target levels for the reliability and availability of your applications and services. SLOs use service level indicators (SLIs) to calculate whether the application is performing at the level that you want.
Create an SLO to set a target for a service or operation’s availability or latency. CloudWatch measures this target frequently you can find whether it has been breached.
The target performance quality that is defined for an SLO is the attainment goal.
You can set SLO targets for your applications that are discovered by Application Signals, using critical metrics such as latency and availability. You can also set SLOs against any CloudWatch metric or math expression that produces a time series.
When you create an SLO, you specify whether it is a period-based SLO or a request-based SLO. Each type of SLO has a different way of evaluating your application's performance against its attainment goal.
A period-based SLO uses defined periods of time within a specified total time interval. For each period of time, Application Signals determines whether the application met its goal. The attainment rate is calculated as the
number of good periods/number of total periods.For example, for a period-based SLO, meeting an attainment goal of 99.9% means that within your interval, your application must meet its performance goal during at least 99.9% of the time periods.
A request-based SLO doesn't use pre-defined periods of time. Instead, the SLO measures
number of good requests/number of total requestsduring the interval. At any time, you can find the ratio of good requests to total requests for the interval up to the time stamp that you specify, and measure that ratio against the goal set in your SLO.
After you have created an SLO, you can retrieve error budget reports for it. An error budget is the amount of time or amount of requests that your application can be non-compliant with the SLO's goal, and still have your application meet the goal.
For a period-based SLO, the error budget starts at a number defined by the highest number of periods that can fail to meet the threshold, while still meeting the overall goal. The remaining error budget decreases with every failed period that is recorded. The error budget within one interval can never increase.
For example, an SLO with a threshold that 99.95% of requests must be completed under 2000ms every month translates to an error budget of 21.9 minutes of downtime per month.
For a request-based SLO, the remaining error budget is dynamic and can increase or decrease, depending on the ratio of good requests to total requests.
For more information about SLOs, see Service level objectives (SLOs).
When you perform a CreateServiceLevelObjective operation,
Application Signals creates the
AWSServiceRoleForCloudWatchApplicationSignals service-linked role,
if it doesn't already exist in your account. This service- linked
role has the following permissions:
xray:GetServiceGraphlogs:StartQuerylogs:GetQueryResultscloudwatch:GetMetricDatacloudwatch:ListMetricstag:GetResourcesautoscaling:DescribeAutoScalingGroups
1110 1111 1112 1113 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 1110 def create_service_level_objective(params = {}, = {}) req = build_request(:create_service_level_objective, params) req.send_request() end |
#delete_grouping_configuration(params = {}) ⇒ Struct
Deletes a grouping configuration that defines how services are grouped and organized in Application Signals. Once deleted, services will no longer be grouped according to the specified configuration rules.
This operation is irreversible. After deletion, you must recreate the grouping configuration if you want to restore the same grouping behavior.
1129 1130 1131 1132 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 1129 def delete_grouping_configuration(params = {}, = {}) req = build_request(:delete_grouping_configuration, params) req.send_request() end |
#delete_service_level_objective(params = {}) ⇒ Struct
Deletes the specified service level objective.
1151 1152 1153 1154 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 1151 def delete_service_level_objective(params = {}, = {}) req = build_request(:delete_service_level_objective, params) req.send_request() end |
#get_service(params = {}) ⇒ Types::GetServiceOutput
Returns information about a service discovered by Application Signals.
1246 1247 1248 1249 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 1246 def get_service(params = {}, = {}) req = build_request(:get_service, params) req.send_request() end |
#get_service_level_objective(params = {}) ⇒ Types::GetServiceLevelObjectiveOutput
Returns information about one SLO created in the account.
1373 1374 1375 1376 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 1373 def get_service_level_objective(params = {}, = {}) req = build_request(:get_service_level_objective, params) req.send_request() end |
#list_audit_findings(params = {}) ⇒ Types::ListAuditFindingsOutput
Retrieves a list of audit findings for Application Signals resources. Audit findings identify potential issues, misconfigurations, or compliance violations in your observability setup.
You can filter findings by time range, auditor type, and target resources to focus on specific areas of concern. This operation supports pagination for large result sets.
1507 1508 1509 1510 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 1507 def list_audit_findings(params = {}, = {}) req = build_request(:list_audit_findings, params) req.send_request() end |
#list_grouping_attribute_definitions(params = {}) ⇒ Types::ListGroupingAttributeDefinitionsOutput
Retrieves the available grouping attribute definitions that can be used to create grouping configurations. These definitions specify the attributes and rules available for organizing services.
Use this operation to discover what grouping options are available before creating or updating grouping configurations.
1550 1551 1552 1553 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 1550 def list_grouping_attribute_definitions(params = {}, = {}) req = build_request(:list_grouping_attribute_definitions, params) req.send_request() end |
#list_service_dependencies(params = {}) ⇒ Types::ListServiceDependenciesOutput
Returns a list of service dependencies of the service that you specify. A dependency is an infrastructure component that an operation of this service connects with. Dependencies can include Amazon Web Services services, Amazon Web Services resources, and third-party services.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1651 1652 1653 1654 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 1651 def list_service_dependencies(params = {}, = {}) req = build_request(:list_service_dependencies, params) req.send_request() end |
#list_service_dependents(params = {}) ⇒ Types::ListServiceDependentsOutput
Returns the list of dependents that invoked the specified service during the provided time range. Dependents include other services, CloudWatch Synthetics canaries, and clients that are instrumented with CloudWatch RUM app monitors.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1751 1752 1753 1754 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 1751 def list_service_dependents(params = {}, = {}) req = build_request(:list_service_dependents, params) req.send_request() end |
#list_service_level_objective_exclusion_windows(params = {}) ⇒ Types::ListServiceLevelObjectiveExclusionWindowsOutput
Retrieves all exclusion windows configured for a specific SLO.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1798 1799 1800 1801 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 1798 def list_service_level_objective_exclusion_windows(params = {}, = {}) req = build_request(:list_service_level_objective_exclusion_windows, params) req.send_request() end |
#list_service_level_objectives(params = {}) ⇒ Types::ListServiceLevelObjectivesOutput
Returns a list of SLOs created in this account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1913 1914 1915 1916 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 1913 def list_service_level_objectives(params = {}, = {}) req = build_request(:list_service_level_objectives, params) req.send_request() end |
#list_service_operations(params = {}) ⇒ Types::ListServiceOperationsOutput
Returns a list of the operations of this service that have been discovered by Application Signals. Only the operations that were invoked during the specified time range are returned.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2009 2010 2011 2012 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 2009 def list_service_operations(params = {}, = {}) req = build_request(:list_service_operations, params) req.send_request() end |
#list_service_states(params = {}) ⇒ Types::ListServiceStatesOutput
Retrieves the current state information for services monitored by Application Signals. Service states include health status, recent change events, and other operational metadata.
You can filter results by time range, AWS account, and service attributes to focus on specific services or time periods. This operation supports pagination and can include data from linked accounts.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2110 2111 2112 2113 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 2110 def list_service_states(params = {}, = {}) req = build_request(:list_service_states, params) req.send_request() end |
#list_services(params = {}) ⇒ Types::ListServicesOutput
Returns a list of services that have been discovered by Application Signals. A service represents a minimum logical and transactional unit that completes a business function. Services are discovered through Application Signals instrumentation.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2198 2199 2200 2201 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 2198 def list_services(params = {}, = {}) req = build_request(:list_services, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Displays the tags associated with a CloudWatch resource. Tags can be assigned to service level objectives.
2240 2241 2242 2243 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 2240 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#put_grouping_configuration(params = {}) ⇒ Types::PutGroupingConfigurationOutput
Creates or updates a grouping configuration that defines how services are organized and grouped in Application Signals dashboards and service maps.
Grouping configurations allow you to logically organize services based on attributes such as environment, team ownership, or business function, making it easier to monitor and manage related services together.
2288 2289 2290 2291 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 2288 def put_grouping_configuration(params = {}, = {}) req = build_request(:put_grouping_configuration, params) req.send_request() end |
#start_discovery(params = {}) ⇒ Struct
Enables this Amazon Web Services account to be able to use CloudWatch Application Signals by creating the AWSServiceRoleForCloudWatchApplicationSignals service-linked role. This service- linked role has the following permissions:
xray:GetServiceGraphlogs:StartQuerylogs:GetQueryResultscloudwatch:GetMetricDatacloudwatch:ListMetricstag:GetResourcesautoscaling:DescribeAutoScalingGroups
After completing this step, you still need to instrument your Java and Python applications to send data to Application Signals. For more information, see Enabling Application Signals.
2326 2327 2328 2329 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 2326 def start_discovery(params = {}, = {}) req = build_request(:start_discovery, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Assigns one or more tags (key-value pairs) to the specified CloudWatch resource, such as a service level objective.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can use the TagResource action with an alarm that already has
tags. If you specify a new tag key for the alarm, this tag is appended
to the list of tags associated with the alarm. If you specify a tag
key that is already associated with the alarm, the new tag value that
you specify replaces the previous value for that tag.
You can associate as many as 50 tags with a CloudWatch resource.
2384 2385 2386 2387 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 2384 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from the specified resource.
2421 2422 2423 2424 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 2421 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_service_level_objective(params = {}) ⇒ Types::UpdateServiceLevelObjectiveOutput
Updates an existing service level objective (SLO). If you omit parameters, the previous values of those parameters are retained.
You cannot change from a period-based SLO to a request-based SLO, or change from a request-based SLO to a period-based SLO.
2731 2732 2733 2734 |
# File 'gems/aws-sdk-applicationsignals/lib/aws-sdk-applicationsignals/client.rb', line 2731 def update_service_level_objective(params = {}, = {}) req = build_request(:update_service_level_objective, params) req.send_request() end |