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.
gitops-tbrnt/monitoring/vendor/github.com/grafana/grafonnet-lib/grafonnet/graphite.libsonnet

28 lines
671 B
Plaintext

{
/**
* Return an Graphite Target
*
* @param target Graphite Query. Nested queries are possible by adding the query reference (refId).
* @param targetFull Expanding the @target. Used in nested queries.
* @param hide Disable query on graph.
* @param textEditor Enable raw query mode.
* @param datasource Datasource.
* @return Panel target
*/
target(
target,
targetFull=null,
hide=false,
textEditor=false,
datasource=null,
):: {
target: target,
hide: hide,
textEditor: textEditor,
[if targetFull != null then 'targetFull']: targetFull,
[if datasource != null then 'datasource']: datasource,
},
}