mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-28 04:02:00 +00:00
return metric labels as list
This commit is contained in:
parent
49e93085db
commit
3a82b57a26
3 changed files with 517 additions and 1 deletions
|
|
@ -221,6 +221,12 @@ class MetricLabelMatcher(BaseModel):
|
|||
operator: MetricLabelOperator = MetricLabelOperator.EQUALS
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class MetricLabel(BaseModel):
|
||||
name: str
|
||||
value: str
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class MetricDataPoint(BaseModel):
|
||||
timestamp: datetime
|
||||
|
|
@ -230,7 +236,7 @@ class MetricDataPoint(BaseModel):
|
|||
@json_schema_type
|
||||
class MetricSeries(BaseModel):
|
||||
metric: str
|
||||
labels: dict[str, str]
|
||||
labels: list[MetricLabel]
|
||||
values: list[MetricDataPoint]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue