8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
put_metric_data
1 parent 32e05ec commit 6679ec9Copy full SHA for 6679ec9
localstack-core/localstack/services/logs/provider.py
@@ -81,9 +81,10 @@ def put_log_events(
81
value = float(value) if is_number(value) else 1
82
data = [{"MetricName": tf["metricName"], "Value": value}]
83
try:
84
- self.cw_client.put_metric_data(
85
- Namespace=tf["metricNamespace"], MetricData=data
86
- )
+ client = connect_to(
+ aws_access_key_id=context.account_id, region_name=context.region
+ ).cloudwatch
87
+ client.put_metric_data(Namespace=tf["metricNamespace"], MetricData=data)
88
except Exception as e:
89
LOG.info(
90
"Unable to put metric data for matching CloudWatch log events", e
0 commit comments