mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-28 02:11:59 +00:00
get_metrics -> query_metrics
This commit is contained in:
parent
7073efede5
commit
471745fff3
4 changed files with 331 additions and 331 deletions
|
|
@ -240,7 +240,7 @@ class MetricSeries(BaseModel):
|
|||
values: list[MetricDataPoint]
|
||||
|
||||
|
||||
class GetMetricsResponse(BaseModel):
|
||||
class QueryMetricsResponse(BaseModel):
|
||||
data: list[MetricSeries]
|
||||
|
||||
|
||||
|
|
@ -290,7 +290,7 @@ class Telemetry(Protocol):
|
|||
) -> None: ...
|
||||
|
||||
@webmethod(route="/telemetry/metrics/{metric_name}", method="POST")
|
||||
async def get_metrics(
|
||||
async def query_metrics(
|
||||
self,
|
||||
metric_name: str,
|
||||
start_time: int,
|
||||
|
|
@ -298,4 +298,4 @@ class Telemetry(Protocol):
|
|||
granularity: str | None = "1d",
|
||||
query_type: MetricQueryType = MetricQueryType.RANGE,
|
||||
label_matchers: list[MetricLabelMatcher] | None = None,
|
||||
) -> GetMetricsResponse: ...
|
||||
) -> QueryMetricsResponse: ...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue