ops/monitoring: pull in grafonnet-7.0
Change-Id: Ie036ef767419418876a18255a5ad378f5cfa1535
diff --git a/ops/monitoring/lib/grafonnet/panel/text.libsonnet b/ops/monitoring/lib/grafonnet/panel/text.libsonnet
new file mode 100644
index 0000000..1c4c682
--- /dev/null
+++ b/ops/monitoring/lib/grafonnet/panel/text.libsonnet
@@ -0,0 +1,58 @@
+// This file was generated by https://github.com/grafana/dashboard-spec
+
+{
+ new(
+ content=null,
+ datasource='default',
+ description=null,
+ mode='markdown',
+ repeat=null,
+ repeatDirection=null,
+ title=null,
+ transparent=false,
+ ):: {
+ [if content != null then 'content']: content,
+ [if datasource != null then 'datasource']: datasource,
+ [if description != null then 'description']: description,
+ [if mode != null then 'mode']: mode,
+ [if repeat != null then 'repeat']: repeat,
+ [if repeatDirection != null then 'repeatDirection']: repeatDirection,
+ [if title != null then 'title']: title,
+ [if transparent != null then 'transparent']: transparent,
+ type: 'text',
+
+ setGridPos(
+ h=8,
+ w=12,
+ x=null,
+ y=null,
+ ):: self {}
+ + { gridPos+: { [if h != null then 'h']: h } }
+ + { gridPos+: { [if w != null then 'w']: w } }
+ + { gridPos+: { [if x != null then 'x']: x } }
+ + { gridPos+: { [if y != null then 'y']: y } }
+ ,
+
+
+ addPanelLink(
+ targetBlank=true,
+ title=null,
+ url=null,
+ ):: self {}
+ + { links+: [
+ {
+ [if targetBlank != null then 'targetBlank']: targetBlank,
+ [if title != null then 'title']: title,
+ [if url != null then 'url']: url,
+ },
+ ] },
+
+ addTarget(
+ target
+ ):: self {}
+ + { targets+: [
+ target,
+ ] },
+
+ },
+}