File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/frequenz/client/reporting Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def __iter__(self) -> Iterator[MetricSample]:
92
92
for item in items :
93
93
cid = getattr (item , self .id_attr )
94
94
for sample in getattr (item , "metric_samples" , []):
95
- ts = sample .sample_time .ToDatetime ().replace (tzinfo = timezone .utc )
95
+ ts = sample .sampled_at .ToDatetime ().replace (tzinfo = timezone .utc )
96
96
met = Metric .from_proto (sample .metric ).name
97
97
98
98
# Handle simple_metric
@@ -127,7 +127,7 @@ def __iter__(self) -> Iterator[MetricSample]:
127
127
)
128
128
129
129
for state in getattr (item , "states" , []):
130
- ts = state .sample_time .ToDatetime ().replace (tzinfo = timezone .utc )
130
+ ts = state .sampled_at .ToDatetime ().replace (tzinfo = timezone .utc )
131
131
for category , category_items in {
132
132
"state" : getattr (state , "states" , []),
133
133
"warning" : getattr (state , "warnings" , []),
You can’t perform that action at this time.
0 commit comments