mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PromQueryBuilder: Query builder and components that can be shared with a loki query builder and others (#42854)
This commit is contained in:
@@ -106,14 +106,14 @@ export function functionRenderer(part: any, innerExpr: string) {
|
||||
return str + parameters.join(', ') + ')';
|
||||
}
|
||||
|
||||
export function suffixRenderer(part: QueryPartDef, innerExpr: string) {
|
||||
export function suffixRenderer(part: QueryPart, innerExpr: string) {
|
||||
return innerExpr + ' ' + part.params[0];
|
||||
}
|
||||
|
||||
export function identityRenderer(part: QueryPartDef, innerExpr: string) {
|
||||
export function identityRenderer(part: QueryPart, innerExpr: string) {
|
||||
return part.params[0];
|
||||
}
|
||||
|
||||
export function quotedIdentityRenderer(part: QueryPartDef, innerExpr: string) {
|
||||
export function quotedIdentityRenderer(part: QueryPart, innerExpr: string) {
|
||||
return '"' + part.params[0] + '"';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user