Class: Aws::LookoutMetrics::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::LookoutMetrics::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-lookoutmetrics/client.rb
Overview
An API client for LookoutMetrics. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::LookoutMetrics::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
-
#activate_anomaly_detector(params = {}) ⇒ Struct
Activates an anomaly detector.
-
#back_test_anomaly_detector(params = {}) ⇒ Struct
Runs a backtest for anomaly detection for the specified resource.
-
#create_alert(params = {}) ⇒ Types::CreateAlertResponse
Creates an alert for an anomaly detector.
-
#create_anomaly_detector(params = {}) ⇒ Types::CreateAnomalyDetectorResponse
Creates an anomaly detector.
-
#create_metric_set(params = {}) ⇒ Types::CreateMetricSetResponse
Creates a dataset.
-
#deactivate_anomaly_detector(params = {}) ⇒ Struct
Deactivates an anomaly detector.
-
#delete_alert(params = {}) ⇒ Struct
Deletes an alert.
-
#delete_anomaly_detector(params = {}) ⇒ Struct
Deletes a detector.
-
#describe_alert(params = {}) ⇒ Types::DescribeAlertResponse
Describes an alert.
-
#describe_anomaly_detection_executions(params = {}) ⇒ Types::DescribeAnomalyDetectionExecutionsResponse
Returns information about the status of the specified anomaly detection jobs.
-
#describe_anomaly_detector(params = {}) ⇒ Types::DescribeAnomalyDetectorResponse
Describes a detector.
-
#describe_metric_set(params = {}) ⇒ Types::DescribeMetricSetResponse
Describes a dataset.
-
#detect_metric_set_config(params = {}) ⇒ Types::DetectMetricSetConfigResponse
Detects an Amazon S3 dataset’s file format, interval, and offset.
-
#get_anomaly_group(params = {}) ⇒ Types::GetAnomalyGroupResponse
Returns details about a group of anomalous metrics.
-
#get_data_quality_metrics(params = {}) ⇒ Types::GetDataQualityMetricsResponse
Returns details about the requested data quality metrics.
-
#get_feedback(params = {}) ⇒ Types::GetFeedbackResponse
Get feedback for an anomaly group.
-
#get_sample_data(params = {}) ⇒ Types::GetSampleDataResponse
Returns a selection of sample records from an Amazon S3 datasource.
-
#list_alerts(params = {}) ⇒ Types::ListAlertsResponse
Lists the alerts attached to a detector.
-
#list_anomaly_detectors(params = {}) ⇒ Types::ListAnomalyDetectorsResponse
Lists the detectors in the current AWS Region.
-
#list_anomaly_group_related_metrics(params = {}) ⇒ Types::ListAnomalyGroupRelatedMetricsResponse
Returns a list of measures that are potential causes or effects of an anomaly group.
-
#list_anomaly_group_summaries(params = {}) ⇒ Types::ListAnomalyGroupSummariesResponse
Returns a list of anomaly groups.
-
#list_anomaly_group_time_series(params = {}) ⇒ Types::ListAnomalyGroupTimeSeriesResponse
Gets a list of anomalous metrics for a measure in an anomaly group.
-
#list_metric_sets(params = {}) ⇒ Types::ListMetricSetsResponse
Lists the datasets in the current AWS Region.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Gets a list of [tags] for a detector, dataset, or alert.
-
#put_feedback(params = {}) ⇒ Struct
Add feedback for an anomalous metric.
-
#tag_resource(params = {}) ⇒ Struct
Adds [tags] to a detector, dataset, or alert.
-
#untag_resource(params = {}) ⇒ Struct
Removes [tags] from a detector, dataset, or alert.
-
#update_alert(params = {}) ⇒ Types::UpdateAlertResponse
Make changes to an existing alert.
-
#update_anomaly_detector(params = {}) ⇒ Types::UpdateAnomalyDetectorResponse
Updates a detector.
-
#update_metric_set(params = {}) ⇒ Types::UpdateMetricSetResponse
Updates a dataset.
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.
444 445 446 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 444 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.
2131 2132 2133 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 2131 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.
2134 2135 2136 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 2134 def errors_module Errors end |
Instance Method Details
#activate_anomaly_detector(params = {}) ⇒ Struct
Activates an anomaly detector.
467 468 469 470 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 467 def activate_anomaly_detector(params = {}, = {}) req = build_request(:activate_anomaly_detector, params) req.send_request() end |
#back_test_anomaly_detector(params = {}) ⇒ Struct
Runs a backtest for anomaly detection for the specified resource.
489 490 491 492 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 489 def back_test_anomaly_detector(params = {}, = {}) req = build_request(:back_test_anomaly_detector, 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.
2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 2104 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::LookoutMetrics') ) 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-lookoutmetrics' context[:gem_version] = '1.48.0' Seahorse::Client::Request.new(handlers, context) end |
#create_alert(params = {}) ⇒ Types::CreateAlertResponse
Creates an alert for an anomaly detector.
566 567 568 569 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 566 def create_alert(params = {}, = {}) req = build_request(:create_alert, params) req.send_request() end |
#create_anomaly_detector(params = {}) ⇒ Types::CreateAnomalyDetectorResponse
Creates an anomaly detector.
618 619 620 621 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 618 def create_anomaly_detector(params = {}, = {}) req = build_request(:create_anomaly_detector, params) req.send_request() end |
#create_metric_set(params = {}) ⇒ Types::CreateMetricSetResponse
Creates a dataset.
787 788 789 790 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 787 def create_metric_set(params = {}, = {}) req = build_request(:create_metric_set, params) req.send_request() end |
#deactivate_anomaly_detector(params = {}) ⇒ Struct
Deactivates an anomaly detector.
809 810 811 812 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 809 def deactivate_anomaly_detector(params = {}, = {}) req = build_request(:deactivate_anomaly_detector, params) req.send_request() end |
#delete_alert(params = {}) ⇒ Struct
Deletes an alert.
831 832 833 834 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 831 def delete_alert(params = {}, = {}) req = build_request(:delete_alert, params) req.send_request() end |
#delete_anomaly_detector(params = {}) ⇒ Struct
Deletes a detector. Deleting an anomaly detector will delete all of its corresponding resources including any configured datasets and alerts.
855 856 857 858 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 855 def delete_anomaly_detector(params = {}, = {}) req = build_request(:delete_anomaly_detector, params) req.send_request() end |
#describe_alert(params = {}) ⇒ Types::DescribeAlertResponse
Describes an alert.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
907 908 909 910 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 907 def describe_alert(params = {}, = {}) req = build_request(:describe_alert, params) req.send_request() end |
#describe_anomaly_detection_executions(params = {}) ⇒ Types::DescribeAnomalyDetectionExecutionsResponse
Returns information about the status of the specified anomaly detection jobs.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
956 957 958 959 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 956 def describe_anomaly_detection_executions(params = {}, = {}) req = build_request(:describe_anomaly_detection_executions, params) req.send_request() end |
#describe_anomaly_detector(params = {}) ⇒ Types::DescribeAnomalyDetectorResponse
Describes a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
1007 1008 1009 1010 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1007 def describe_anomaly_detector(params = {}, = {}) req = build_request(:describe_anomaly_detector, params) req.send_request() end |
#describe_metric_set(params = {}) ⇒ Types::DescribeMetricSetResponse
Describes a dataset.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
1121 1122 1123 1124 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1121 def describe_metric_set(params = {}, = {}) req = build_request(:describe_metric_set, params) req.send_request() end |
#detect_metric_set_config(params = {}) ⇒ Types::DetectMetricSetConfigResponse
Detects an Amazon S3 dataset’s file format, interval, and offset.
1187 1188 1189 1190 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1187 def detect_metric_set_config(params = {}, = {}) req = build_request(:detect_metric_set_config, params) req.send_request() end |
#get_anomaly_group(params = {}) ⇒ Types::GetAnomalyGroupResponse
Returns details about a group of anomalous metrics.
1231 1232 1233 1234 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1231 def get_anomaly_group(params = {}, = {}) req = build_request(:get_anomaly_group, params) req.send_request() end |
#get_data_quality_metrics(params = {}) ⇒ Types::GetDataQualityMetricsResponse
Returns details about the requested data quality metrics.
1272 1273 1274 1275 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1272 def get_data_quality_metrics(params = {}, = {}) req = build_request(:get_data_quality_metrics, params) req.send_request() end |
#get_feedback(params = {}) ⇒ Types::GetFeedbackResponse
Get feedback for an anomaly group.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1322 1323 1324 1325 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1322 def get_feedback(params = {}, = {}) req = build_request(:get_feedback, params) req.send_request() end |
#get_sample_data(params = {}) ⇒ Types::GetSampleDataResponse
Returns a selection of sample records from an Amazon S3 datasource.
1373 1374 1375 1376 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1373 def get_sample_data(params = {}, = {}) req = build_request(:get_sample_data, params) req.send_request() end |
#list_alerts(params = {}) ⇒ Types::ListAlertsResponse
Lists the alerts attached to a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1430 1431 1432 1433 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1430 def list_alerts(params = {}, = {}) req = build_request(:list_alerts, params) req.send_request() end |
#list_anomaly_detectors(params = {}) ⇒ Types::ListAnomalyDetectorsResponse
Lists the detectors in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1481 1482 1483 1484 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1481 def list_anomaly_detectors(params = {}, = {}) req = build_request(:list_anomaly_detectors, params) req.send_request() end |
#list_anomaly_group_related_metrics(params = {}) ⇒ Types::ListAnomalyGroupRelatedMetricsResponse
Returns a list of measures that are potential causes or effects of an anomaly group.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1537 1538 1539 1540 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1537 def (params = {}, = {}) req = build_request(:list_anomaly_group_related_metrics, params) req.send_request() end |
#list_anomaly_group_summaries(params = {}) ⇒ Types::ListAnomalyGroupSummariesResponse
Returns a list of anomaly groups.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1593 1594 1595 1596 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1593 def list_anomaly_group_summaries(params = {}, = {}) req = build_request(:list_anomaly_group_summaries, params) req.send_request() end |
#list_anomaly_group_time_series(params = {}) ⇒ Types::ListAnomalyGroupTimeSeriesResponse
Gets a list of anomalous metrics for a measure in an anomaly group.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1655 1656 1657 1658 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1655 def list_anomaly_group_time_series(params = {}, = {}) req = build_request(:list_anomaly_group_time_series, params) req.send_request() end |
#list_metric_sets(params = {}) ⇒ Types::ListMetricSetsResponse
Lists the datasets in the current AWS Region.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1710 1711 1712 1713 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1710 def list_metric_sets(params = {}, = {}) req = build_request(:list_metric_sets, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Gets a list of [tags] for a detector, dataset, or alert.
[1]: docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html
1743 1744 1745 1746 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1743 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#put_feedback(params = {}) ⇒ Struct
Add feedback for an anomalous metric.
1773 1774 1775 1776 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1773 def put_feedback(params = {}, = {}) req = build_request(:put_feedback, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds [tags] to a detector, dataset, or alert.
[1]: docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html
1806 1807 1808 1809 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1806 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes [tags] from a detector, dataset, or alert.
[1]: docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html
1836 1837 1838 1839 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1836 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_alert(params = {}) ⇒ Types::UpdateAlertResponse
Make changes to an existing alert.
1899 1900 1901 1902 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1899 def update_alert(params = {}, = {}) req = build_request(:update_alert, params) req.send_request() end |
#update_anomaly_detector(params = {}) ⇒ Types::UpdateAnomalyDetectorResponse
Updates a detector. After activation, you can only change a detector’s ingestion delay and description.
1943 1944 1945 1946 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 1943 def update_anomaly_detector(params = {}, = {}) req = build_request(:update_anomaly_detector, params) req.send_request() end |
#update_metric_set(params = {}) ⇒ Types::UpdateMetricSetResponse
Updates a dataset.
2095 2096 2097 2098 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 2095 def update_metric_set(params = {}, = {}) req = build_request(:update_metric_set, 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.
2124 2125 2126 |
# File 'lib/aws-sdk-lookoutmetrics/client.rb', line 2124 def waiter_names [] end |