Skip to content

Commit bbb3dce

Browse files
committed
clang-format
1 parent 07fb21b commit bbb3dce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.ci/metrics/metrics.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ def upload_metrics(workflow_metrics, metrics_userid, api_key):
217217
f"{name} queue_time={workflow_metric.queue_time},run_time={workflow_metric.run_time},status={workflow_metric.status} {workflow_metric.created_at_ns}"
218218
)
219219
else:
220-
raise ValueError(f"Unsupported object type {type(workflow_metric)}: {str(workflow_metric)}")
220+
raise ValueError(
221+
f"Unsupported object type {type(workflow_metric)}: {str(workflow_metric)}"
222+
)
221223

222224
request_data = "\n".join(metrics_batch)
223225
response = requests.post(
@@ -252,7 +254,9 @@ def main():
252254
current_metrics = get_per_workflow_metrics(github_repo, workflows_to_track)
253255
current_metrics += get_sampled_workflow_metrics(github_repo)
254256
# Always send a hearbeat metric so we can monitor is this container is still able to log to Grafana.
255-
current_metrics.append(GaugeMetric("metrics_container_heartbeat", 1, time.time_ns()))
257+
current_metrics.append(
258+
GaugeMetric("metrics_container_heartbeat", 1, time.time_ns())
259+
)
256260

257261
upload_metrics(current_metrics, grafana_metrics_userid, grafana_api_key)
258262
print(f"Uploaded {len(current_metrics)} metrics", file=sys.stdout)

0 commit comments

Comments
 (0)