This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
|
{
|
|
/**
|
|
* Creates a [Loki target](https://grafana.com/docs/grafana/latest/features/datasources/loki/)
|
|
*
|
|
* @name loki.target
|
|
*
|
|
* @param expr
|
|
* @param hide (optional) Disable query on graph.
|
|
*/
|
|
target(
|
|
expr,
|
|
hide=null,
|
|
):: {
|
|
[if hide != null then 'hide']: hide,
|
|
expr: expr,
|
|
},
|
|
}
|