gitops-zurrli/system/monitoring/vendor/github.com/grafana/grafonnet-lib/grafonnet/loki.libsonnet

23 lines
504 B
Plaintext

{
/**
* Creates a [Loki target](https://grafana.com/docs/grafana/latest/datasources/loki/)
*
* @name loki.target
*
* @param expr
* @param hide (optional) Disable query on graph.
* @param legendFormat (optional) Defines the legend. Defaults to ''.
*/
target(
expr,
hide=null,
legendFormat='',
instant=null,
):: {
[if hide != null then 'hide']: hide,
expr: expr,
legendFormat: legendFormat,
[if instant != null then 'instant']: instant,
},
}