Skip to content

Commit 1f3a904

Browse files
authored
feat(api): add FormatQuery method to Prometheus v1 API (#1856)
Signed-off-by: Yusheng Guo <[email protected]>
1 parent 40dd084 commit 1f3a904

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/prometheus/v1/api.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ type API interface {
506506
TSDB(ctx context.Context, opts ...Option) (TSDBResult, error)
507507
// WalReplay returns the current replay status of the wal.
508508
WalReplay(ctx context.Context) (WalReplayStatus, error)
509+
// FormatQuery formats a PromQL expression in a prettified way.
510+
FormatQuery(ctx context.Context, query string) (string, error)
509511
}
510512

511513
// AlertsResult contains the result from querying the alerts endpoint.

0 commit comments

Comments
 (0)