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/sql.libsonnet

24 lines
458 B
Plaintext

{
/**
* Creates an SQL target.
*
* @name sql.target
*
* @param rawSql The SQL query
* @param datasource (optional)
* @param format (default `'time_series'`)
* @param alias (optional)
*/
target(
rawSql,
datasource=null,
format='time_series',
alias=null,
):: {
[if datasource != null then 'datasource']: datasource,
format: format,
[if alias != null then 'alias']: alias,
rawSql: rawSql,
},
}