Skip to content

Commit

Permalink
Minor change: correction of the function name in metrics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
j9sh264 committed Sep 23, 2024
1 parent 9ae4561 commit 5d641e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weather_mv/loader_pipeline/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ class CreateTimeSeries(beam.DoFn):
project: str
region: str

def create_time_series(self, metric_name: str, metric_value: float) -> None:
"""Writes data to a Metrics TimeSeries."""
def create_time_series_object(self, metric_name: str, metric_value: float) -> None:
"""Returns a Metrics TimeSeries object."""
series = monitoring_v3.TimeSeries()
series.metric.type = f"custom.googleapis.com/{metric_name}"
series.metric.labels["description"] = metric_name
Expand Down

0 comments on commit 5d641e8

Please sign in to comment.