@gdacm/grafana-items 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +81 -0
- package/dist/index.js +1168 -0
- package/dist/index.js.map +1 -0
- package/dist/items/Annotation.d.ts +17 -0
- package/dist/items/Annotations.d.ts +12 -0
- package/dist/items/BarChart.d.ts +15 -0
- package/dist/items/Color.d.ts +8 -0
- package/dist/items/Dashboard.d.ts +46 -0
- package/dist/items/DataTransformation.d.ts +8 -0
- package/dist/items/Datasource.d.ts +9 -0
- package/dist/items/DatasourceInfinity.d.ts +8 -0
- package/dist/items/FieldConfig.d.ts +17 -0
- package/dist/items/FieldConfigCustom.d.ts +8 -0
- package/dist/items/FieldConfigCustomBarChart.d.ts +31 -0
- package/dist/items/FieldConfigCustomGauge.d.ts +8 -0
- package/dist/items/FieldConfigCustomGeomap.d.ts +10 -0
- package/dist/items/FieldConfigCustomStat.d.ts +8 -0
- package/dist/items/FieldConfigCustomTable.d.ts +16 -0
- package/dist/items/FieldConfigCustomTableCellOptions.d.ts +8 -0
- package/dist/items/FieldConfigCustomTableFooter.d.ts +12 -0
- package/dist/items/FieldConfigCustomText.d.ts +8 -0
- package/dist/items/FieldConfigCustomTimeSerie.d.ts +54 -0
- package/dist/items/FieldConfigDefault.d.ts +31 -0
- package/dist/items/FieldConfigOverride.d.ts +18 -0
- package/dist/items/Gauge.d.ts +14 -0
- package/dist/items/Geomap.d.ts +14 -0
- package/dist/items/GrafanaItem.d.ts +18 -0
- package/dist/items/GridPos.d.ts +12 -0
- package/dist/items/HideFrom.d.ts +10 -0
- package/dist/items/Influxdb.d.ts +8 -0
- package/dist/items/LineStyle.d.ts +8 -0
- package/dist/items/Link.d.ts +22 -0
- package/dist/items/Mapping.d.ts +8 -0
- package/dist/items/OverrideMatcher.d.ts +11 -0
- package/dist/items/OverrideMatcherOptionsByNames.d.ts +15 -0
- package/dist/items/OverrideProperty.d.ts +9 -0
- package/dist/items/Panel.d.ts +57 -0
- package/dist/items/PanelOptions.d.ts +8 -0
- package/dist/items/PanelOptionsBarChart.d.ts +30 -0
- package/dist/items/PanelOptionsGauge.d.ts +30 -0
- package/dist/items/PanelOptionsGaugeEffect.d.ts +10 -0
- package/dist/items/PanelOptionsGaugeReduceOptions.d.ts +15 -0
- package/dist/items/PanelOptionsGeomap.d.ts +32 -0
- package/dist/items/PanelOptionsGeomapBasemap.d.ts +14 -0
- package/dist/items/PanelOptionsGeomapControls.d.ts +13 -0
- package/dist/items/PanelOptionsGeomapLayer.d.ts +19 -0
- package/dist/items/PanelOptionsGeomapLayerConfig.d.ts +12 -0
- package/dist/items/PanelOptionsGeomapLayerConfigStyle.d.ts +31 -0
- package/dist/items/PanelOptionsGeomapLayerLocation.d.ts +8 -0
- package/dist/items/PanelOptionsGeomapTooltip.d.ts +8 -0
- package/dist/items/PanelOptionsGeomapView.d.ts +14 -0
- package/dist/items/PanelOptionsStat.d.ts +8 -0
- package/dist/items/PanelOptionsTable.d.ts +14 -0
- package/dist/items/PanelOptionsTableSortBy.d.ts +9 -0
- package/dist/items/PanelOptionsText.d.ts +12 -0
- package/dist/items/PanelOptionsTextCode.d.ts +10 -0
- package/dist/items/PanelOptionsTimeSeries.d.ts +16 -0
- package/dist/items/ScaleDistribution.d.ts +8 -0
- package/dist/items/Stacking.d.ts +9 -0
- package/dist/items/Stat.d.ts +14 -0
- package/dist/items/StyleColor.d.ts +8 -0
- package/dist/items/StyleRotation.d.ts +11 -0
- package/dist/items/StyleSize.d.ts +10 -0
- package/dist/items/StyleSymbol.d.ts +10 -0
- package/dist/items/StyleSymbolAlign.d.ts +9 -0
- package/dist/items/StyleTextConfig.d.ts +12 -0
- package/dist/items/Table.d.ts +14 -0
- package/dist/items/Target.d.ts +17 -0
- package/dist/items/TargetInfinity.d.ts +20 -0
- package/dist/items/Template.d.ts +29 -0
- package/dist/items/TemplateCurrent.d.ts +9 -0
- package/dist/items/TemplateOption.d.ts +10 -0
- package/dist/items/Templating.d.ts +12 -0
- package/dist/items/Testdata.d.ts +8 -0
- package/dist/items/TextPanel.d.ts +14 -0
- package/dist/items/ThresholdStyle.d.ts +8 -0
- package/dist/items/Thresholds.d.ts +14 -0
- package/dist/items/ThresholdsStep.d.ts +9 -0
- package/dist/items/TimePicker.d.ts +12 -0
- package/dist/items/TimeRange.d.ts +10 -0
- package/dist/items/TimeSeries.d.ts +15 -0
- package/dist/items/VizLegendOptions.d.ts +22 -0
- package/dist/items/VizTextDisplayOptions.d.ts +10 -0
- package/dist/items/VizTooltipOptions.d.ts +12 -0
- package/package.json +41 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { FieldConfigCustom } from "./FieldConfigCustom.js";
|
|
2
|
+
import { ScaleDistribution } from "./ScaleDistribution.js";
|
|
3
|
+
import { HideFrom } from "./HideFrom.js";
|
|
4
|
+
import { LineStyle } from "./LineStyle.js";
|
|
5
|
+
import { Stacking } from "./Stacking.js";
|
|
6
|
+
import { ThresholdStyle } from "./ThresholdStyle.js";
|
|
7
|
+
|
|
8
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
9
|
+
|
|
10
|
+
export declare class FieldConfigCustomTimeSerie extends FieldConfigCustom {
|
|
11
|
+
setAxisBorderShow(axisBorderShow: Boolean): this;
|
|
12
|
+
setAxisCenteredZero(axisCenteredZero: Boolean): this;
|
|
13
|
+
setAxisColorMode(axisColorMode: String): this;
|
|
14
|
+
setAxisGridShow(axisGridShow: Boolean): this;
|
|
15
|
+
setAxisLabel(axisLabel: String): this;
|
|
16
|
+
setAxisPlacement(axisPlacement: String): this;
|
|
17
|
+
setAxisSoftMax(axisSoftMax: Number): this;
|
|
18
|
+
setAxisSoftMin(axisSoftMin: Number): this;
|
|
19
|
+
setAxisWidth(axisWidth: Number): this;
|
|
20
|
+
setScaleDistribution(scaleDistribution: ScaleDistribution): this;
|
|
21
|
+
withScaleDistribution(onWith: (item: ScaleDistribution) => void): this;
|
|
22
|
+
get scaleDistribution(): ScaleDistribution;
|
|
23
|
+
setBarAlignment(barAlignment: Number): this;
|
|
24
|
+
setBarMaxWidth(barMaxWidth: Number): this;
|
|
25
|
+
setBarWidthFactor(barWidthFactor: Number): this;
|
|
26
|
+
setDrawStyle(drawStyle: String): this;
|
|
27
|
+
setFillBelowTo(fillBelowTo: String): this;
|
|
28
|
+
setFillColor(fillColor: String): this;
|
|
29
|
+
setFillOpacity(fillOpacity: Number): this;
|
|
30
|
+
setGradientMode(gradientMode: String): this;
|
|
31
|
+
setHideFrom(hideFrom: HideFrom): this;
|
|
32
|
+
withHideFrom(onWith: (item: HideFrom) => void): this;
|
|
33
|
+
get hideFrom(): HideFrom;
|
|
34
|
+
setInsertNulls(insertNulls: Boolean): this;
|
|
35
|
+
setLineInterpolation(lineInterpolation: String): this;
|
|
36
|
+
setLineStyle(lineStyle: LineStyle): this;
|
|
37
|
+
withLineStyle(onWith: (item: LineStyle) => void): this;
|
|
38
|
+
get lineStyle(): LineStyle;
|
|
39
|
+
setLineStyleFill(fill: string): this;
|
|
40
|
+
setLineWidth(lineWidth: Number): this;
|
|
41
|
+
setPointColor(pointColor: String): this;
|
|
42
|
+
setPointSize(pointSize: Number): this;
|
|
43
|
+
setPointSymbol(pointSymbol: String): this;
|
|
44
|
+
setShowPoints(showPoints: String): this;
|
|
45
|
+
setShowValues(showValues: Boolean): this;
|
|
46
|
+
setSpanNulls(spanNulls: Boolean): this;
|
|
47
|
+
setStacking(stacking: Stacking): this;
|
|
48
|
+
withStacking(onWith: (item: Stacking) => void): this;
|
|
49
|
+
get stacking(): Stacking;
|
|
50
|
+
setThresholdsStyle(thresholdsStyle: ThresholdStyle): this;
|
|
51
|
+
withThresholdsStyle(onWith: (item: ThresholdStyle) => void): this;
|
|
52
|
+
get thresholdsStyle(): ThresholdStyle;
|
|
53
|
+
setThresholdsStyleMode(mode: string): this;
|
|
54
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
import { Color } from "./Color.js";
|
|
3
|
+
import { FieldConfigCustom } from "./FieldConfigCustom.js";
|
|
4
|
+
import { Mapping } from "./Mapping.js";
|
|
5
|
+
import { Thresholds } from "./Thresholds.js";
|
|
6
|
+
|
|
7
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
8
|
+
|
|
9
|
+
export declare class FieldConfigDefault extends GrafanaItem {
|
|
10
|
+
setColor(color: Color): this;
|
|
11
|
+
setNewColor(onNewCreated: ((item: Color) => Color) | undefined): this;
|
|
12
|
+
withColor(onWith: (item: Color) => void): this;
|
|
13
|
+
get color(): Color;
|
|
14
|
+
setCustom(custom: FieldConfigCustom): this;
|
|
15
|
+
withCustom(onWith: (item: FieldConfigCustom) => void): this;
|
|
16
|
+
get custom(): FieldConfigCustom;
|
|
17
|
+
setDecimals(decimals: Number): this;
|
|
18
|
+
setFieldMinMax(fieldMinMax: Boolean): this;
|
|
19
|
+
initMappings(): this;
|
|
20
|
+
get mappings(): Mapping[];
|
|
21
|
+
addMapping(mapping: Mapping): this;
|
|
22
|
+
addNewMapping(onNewCreated: (item: Mapping) => Mapping): this;
|
|
23
|
+
withMappings(onWith: (mappings: Mapping[]) => void): this;
|
|
24
|
+
setMax(max: Number): this;
|
|
25
|
+
setMin(min: Number): this;
|
|
26
|
+
setThresholds(thresholds: Thresholds): this;
|
|
27
|
+
withThresholds(onWith: (item: Thresholds) => void): this;
|
|
28
|
+
get thresholds(): Thresholds;
|
|
29
|
+
setUnit(unit: String): this;
|
|
30
|
+
setColorMode(mode: string): this;
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
import { OverrideMatcher } from "./OverrideMatcher.js";
|
|
3
|
+
import { OverrideProperty } from "./OverrideProperty.js";
|
|
4
|
+
|
|
5
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
|
+
|
|
7
|
+
export declare class FieldConfigOverride extends GrafanaItem {
|
|
8
|
+
setSystemRef(systemRef: String): this;
|
|
9
|
+
setMatcher(matcher: OverrideMatcher): this;
|
|
10
|
+
setNewMatcher(onNewCreated: ((item: OverrideMatcher) => OverrideMatcher) | undefined): this;
|
|
11
|
+
withMatcher(onWith: (item: OverrideMatcher) => void): this;
|
|
12
|
+
get matcher(): OverrideMatcher;
|
|
13
|
+
initProperties(): this;
|
|
14
|
+
get properties(): OverrideProperty[];
|
|
15
|
+
addProperty(property: OverrideProperty): this;
|
|
16
|
+
addNewProperty(onNewCreated: (item: OverrideProperty) => OverrideProperty): this;
|
|
17
|
+
withProperties(onWith: (properties: OverrideProperty[]) => void): this;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Panel } from "./Panel.js";
|
|
2
|
+
import { FieldConfigCustomGauge } from "./FieldConfigCustomGauge.js";
|
|
3
|
+
import { PanelOptionsGauge } from "./PanelOptionsGauge.js";
|
|
4
|
+
|
|
5
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
|
+
|
|
7
|
+
export declare class Gauge extends Panel {
|
|
8
|
+
constructor(metaOptions: GenericMetaOptions)
|
|
9
|
+
get custom(): FieldConfigCustomGauge;
|
|
10
|
+
withCustom(code: (custom: FieldConfigCustomGauge) => void): this
|
|
11
|
+
setNewOptions(onNewCreated: ((item: PanelOptionsGauge) => PanelOptionsGauge) | undefined): this;
|
|
12
|
+
withOptions(onWith: (item: PanelOptionsGauge) => void): this;
|
|
13
|
+
get options(): PanelOptionsGauge;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Panel } from "./Panel.js";
|
|
2
|
+
import { FieldConfigCustomGeomap } from "./FieldConfigCustomGeomap.js";
|
|
3
|
+
import { PanelOptionsGeomap } from "./PanelOptionsGeomap.js";
|
|
4
|
+
|
|
5
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
|
+
|
|
7
|
+
export declare class Geomap extends Panel {
|
|
8
|
+
constructor(metaOptions: GenericMetaOptions)
|
|
9
|
+
get custom(): FieldConfigCustomGeomap;
|
|
10
|
+
withCustom(code: (custom: FieldConfigCustomGeomap) => void): this
|
|
11
|
+
setNewOptions(onNewCreated: ((item: PanelOptionsGeomap) => PanelOptionsGeomap) | undefined): this;
|
|
12
|
+
withOptions(onWith: (item: PanelOptionsGeomap) => void): this;
|
|
13
|
+
get options(): PanelOptionsGeomap;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
2
|
+
|
|
3
|
+
export declare class GrafanaItem {
|
|
4
|
+
constructor(metaOptions: GenericMetaOptions)
|
|
5
|
+
get metaOptions(): GenericMetaOptions
|
|
6
|
+
withMetaOptions(code: (metaOptions: GenericMetaOptions) => void): this
|
|
7
|
+
with(code: (item: this) => void): this
|
|
8
|
+
asJson(): Object;
|
|
9
|
+
_onInit(): void;
|
|
10
|
+
_setValue<T>(key: string, value: T): this;
|
|
11
|
+
_getValue<T>(key: string): T;
|
|
12
|
+
_initArray(key: string): this;
|
|
13
|
+
_getArray<T>(key: string): T[];
|
|
14
|
+
_addArrayItem<T>(key: string, item: T): this;
|
|
15
|
+
_setObject<T>(key: string, value: T): this;
|
|
16
|
+
_getObject<T>(key: string): T;
|
|
17
|
+
_withObject<T>(key: string, code: (item: T) => void): this;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class GridPos extends GrafanaItem {
|
|
7
|
+
setX(x: Number): this;
|
|
8
|
+
setY(y: Number): this;
|
|
9
|
+
setW(w: Number): this;
|
|
10
|
+
setH(h: Number): this;
|
|
11
|
+
setPos(x: number, y: number, w: number, h: number): this;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class HideFrom extends GrafanaItem {
|
|
7
|
+
setLegend(legend: Boolean): this;
|
|
8
|
+
setTooltip(tooltip: Boolean): this;
|
|
9
|
+
setViz(viz: Boolean): this;
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class Link extends GrafanaItem {
|
|
7
|
+
constructor(metaOptions: GenericMetaOptions)
|
|
8
|
+
setAsDropdown(asDropdown: Boolean): this;
|
|
9
|
+
setIcon(icon: String): this;
|
|
10
|
+
setIncludeVars(includeVars: Boolean): this;
|
|
11
|
+
setKeepTime(keepTime: Boolean): this;
|
|
12
|
+
initTags(): this;
|
|
13
|
+
get tags(): String[];
|
|
14
|
+
addTag(tag: String): this;
|
|
15
|
+
addNewTag(onNewCreated: (item: String) => String): this;
|
|
16
|
+
withTags(onWith: (tags: String[]) => void): this;
|
|
17
|
+
setTargetBlank(targetBlank: Boolean): this;
|
|
18
|
+
setTitle(title: String): this;
|
|
19
|
+
setTooltip(tooltip: String): this;
|
|
20
|
+
setType(type: String): this;
|
|
21
|
+
setUrl(url: String): this;
|
|
22
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class OverrideMatcher extends GrafanaItem {
|
|
7
|
+
setId(id: String): this;
|
|
8
|
+
setOptions(options: Object): this;
|
|
9
|
+
withOptions(onWith: (item: Object) => void): this;
|
|
10
|
+
get options(): Object;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class OverrideMatcherOptionsByNames extends GrafanaItem {
|
|
7
|
+
setMode(mode: String): this;
|
|
8
|
+
initNames(): this;
|
|
9
|
+
get names(): String[];
|
|
10
|
+
addName(name: String): this;
|
|
11
|
+
addNewName(onNewCreated: (item: String) => String): this;
|
|
12
|
+
withNames(onWith: (names: String[]) => void): this;
|
|
13
|
+
setPrefix(prefix: String): this;
|
|
14
|
+
setReadOnly(readOnly: Boolean): this;
|
|
15
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
import { Datasource } from "./Datasource.js";
|
|
3
|
+
import { FieldConfig } from "./FieldConfig.js";
|
|
4
|
+
import { GridPos } from "./GridPos.js";
|
|
5
|
+
import { Link } from "./Link.js";
|
|
6
|
+
import { Target } from "./Target.js";
|
|
7
|
+
import { DataTransformation } from "./DataTransformation.js";
|
|
8
|
+
|
|
9
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
10
|
+
|
|
11
|
+
export declare class Panel extends GrafanaItem {
|
|
12
|
+
setCacheTimeout(cacheTimeout: String): this;
|
|
13
|
+
setDatasource(datasource: Datasource): this;
|
|
14
|
+
withDatasource(onWith: (item: Datasource) => void): this;
|
|
15
|
+
get datasource(): Datasource;
|
|
16
|
+
setDescription(description: String): this;
|
|
17
|
+
setFieldConfig(fieldConfig: FieldConfig): this;
|
|
18
|
+
withFieldConfig(onWith: (item: FieldConfig) => void): this;
|
|
19
|
+
get fieldConfig(): FieldConfig;
|
|
20
|
+
setGridPos(gridPos: GridPos): this;
|
|
21
|
+
setNewGridPos(onNewCreated: ((item: GridPos) => GridPos) | undefined): this;
|
|
22
|
+
withGridPos(onWith: (item: GridPos) => void): this;
|
|
23
|
+
get gridPos(): GridPos;
|
|
24
|
+
setPos(x: number, y: number, w: number, h: number): this;
|
|
25
|
+
setHideTimeOverride(hideTimeOverride: Boolean): this;
|
|
26
|
+
setId(id: Number): this;
|
|
27
|
+
setInterval(interval: String): this;
|
|
28
|
+
initLinks(): this;
|
|
29
|
+
get links(): Link[];
|
|
30
|
+
addLink(link: Link): this;
|
|
31
|
+
addNewLink(onNewCreated: (item: Link) => Link): this;
|
|
32
|
+
withLinks(onWith: (links: Link[]) => void): this;
|
|
33
|
+
setMaxDataPoints(maxDataPoints: Number): this;
|
|
34
|
+
setMaxPerRow(maxPerRow: Number): this;
|
|
35
|
+
setOptions(options: Object): this;
|
|
36
|
+
withOptions(onWith: (item: Object) => void): this;
|
|
37
|
+
get options(): Object;
|
|
38
|
+
setPluginVersion(pluginVersion: String): this;
|
|
39
|
+
setQueryCachingTTL(queryCachingTTL: Number): this;
|
|
40
|
+
setRepeat(repeat: String): this;
|
|
41
|
+
setRepeatDirection(repeatDirection: String): this;
|
|
42
|
+
initTargets(): this;
|
|
43
|
+
get targets(): Target[];
|
|
44
|
+
addTarget(target: Target): this;
|
|
45
|
+
addNewTarget(onNewCreated: (item: Target) => Target): this;
|
|
46
|
+
withTargets(onWith: (targets: Target[]) => void): this;
|
|
47
|
+
addTargetWithParams(refId: string, query: string, datasource: Datasource): this;
|
|
48
|
+
setTimeFrom(timeFrom: String): this;
|
|
49
|
+
setTimeShift(timeShift: String): this;
|
|
50
|
+
initTransformations(): this;
|
|
51
|
+
get transformations(): DataTransformation[];
|
|
52
|
+
addTransformation(transformation: DataTransformation): this;
|
|
53
|
+
addNewTransformation(onNewCreated: (item: DataTransformation) => DataTransformation): this;
|
|
54
|
+
withTransformations(onWith: (transformations: DataTransformation[]) => void): this;
|
|
55
|
+
setType(type: String): this;
|
|
56
|
+
setTitle(title: String): this;
|
|
57
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PanelOptions } from "./PanelOptions.js";
|
|
2
|
+
import { VizLegendOptions } from "./VizLegendOptions.js";
|
|
3
|
+
import { VizTextDisplayOptions } from "./VizTextDisplayOptions.js";
|
|
4
|
+
import { VizTooltipOptions } from "./VizTooltipOptions.js";
|
|
5
|
+
|
|
6
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
7
|
+
|
|
8
|
+
export declare class PanelOptionsBarChart extends PanelOptions {
|
|
9
|
+
setBarRadius(barRadius: Number): this;
|
|
10
|
+
setBarWidth(barWidth: Number): this;
|
|
11
|
+
setColorByField(colorByField: String): this;
|
|
12
|
+
setFullHighlight(fullHighlight: Boolean): this;
|
|
13
|
+
setGroupWidth(groupWidth: Number): this;
|
|
14
|
+
setLegend(legend: VizLegendOptions): this;
|
|
15
|
+
withLegend(onWith: (item: VizLegendOptions) => void): this;
|
|
16
|
+
get legend(): VizLegendOptions;
|
|
17
|
+
setOrientation(orientation: String): this;
|
|
18
|
+
setShowValue(showValue: String): this;
|
|
19
|
+
setStacking(stacking: String): this;
|
|
20
|
+
setText(text: VizTextDisplayOptions): this;
|
|
21
|
+
withText(onWith: (item: VizTextDisplayOptions) => void): this;
|
|
22
|
+
get text(): VizTextDisplayOptions;
|
|
23
|
+
setTooltip(tooltip: VizTooltipOptions): this;
|
|
24
|
+
withTooltip(onWith: (item: VizTooltipOptions) => void): this;
|
|
25
|
+
get tooltip(): VizTooltipOptions;
|
|
26
|
+
setXField(xField: String): this;
|
|
27
|
+
setXTickLabelMaxLength(xTickLabelMaxLength: Number): this;
|
|
28
|
+
setXTickLabelRotation(xTickLabelRotation: Number): this;
|
|
29
|
+
setXTickLabelSpacing(xTickLabelSpacing: Number): this;
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PanelOptions } from "./PanelOptions.js";
|
|
2
|
+
import { PanelOptionsGaugeEffect } from "./PanelOptionsGaugeEffect.js";
|
|
3
|
+
import { PanelOptionsGaugeReduceOptions } from "./PanelOptionsGaugeReduceOptions.js";
|
|
4
|
+
|
|
5
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
|
+
|
|
7
|
+
export declare class PanelOptionsGauge extends PanelOptions {
|
|
8
|
+
setBarShape(barShape: String): this;
|
|
9
|
+
setBarWidthFactor(barWidthFactor: Number): this;
|
|
10
|
+
setEffects(effects: PanelOptionsGaugeEffect): this;
|
|
11
|
+
setNewEffects(onNewCreated: ((item: PanelOptionsGaugeEffect) => PanelOptionsGaugeEffect) | undefined): this;
|
|
12
|
+
withEffects(onWith: (item: PanelOptionsGaugeEffect) => void): this;
|
|
13
|
+
get effects(): PanelOptionsGaugeEffect;
|
|
14
|
+
setEndpointMarker(endpointMarker: String): this;
|
|
15
|
+
setMinVizHeight(minVizHeight: Number): this;
|
|
16
|
+
setMinVizWidth(minVizWidth: Number): this;
|
|
17
|
+
setOrientation(orientation: String): this;
|
|
18
|
+
setReduceOptions(reduceOptions: PanelOptionsGaugeReduceOptions): this;
|
|
19
|
+
setNewReduceOptions(onNewCreated: ((item: PanelOptionsGaugeReduceOptions) => PanelOptionsGaugeReduceOptions) | undefined): this;
|
|
20
|
+
withReduceOptions(onWith: (item: PanelOptionsGaugeReduceOptions) => void): this;
|
|
21
|
+
get reduceOptions(): PanelOptionsGaugeReduceOptions;
|
|
22
|
+
setSegmentCount(segmentCount: Number): this;
|
|
23
|
+
setSegmentSpacing(segmentSpacing: Number): this;
|
|
24
|
+
setShape(shape: String): this;
|
|
25
|
+
setShowThresholdLabels(showThresholdLabels: Boolean): this;
|
|
26
|
+
setShowThresholdMarkers(showThresholdMarkers: Boolean): this;
|
|
27
|
+
setSizing(sizing: String): this;
|
|
28
|
+
setSparkline(sparkline: Boolean): this;
|
|
29
|
+
setTextMode(textMode: String): this;
|
|
30
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class PanelOptionsGaugeEffect extends GrafanaItem {
|
|
7
|
+
setBarGlow(barGlow: Boolean): this;
|
|
8
|
+
setCenterGlow(centerGlow: Boolean): this;
|
|
9
|
+
setGradient(gradient: Boolean): this;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class PanelOptionsGaugeReduceOptions extends GrafanaItem {
|
|
7
|
+
initCalcs(): this;
|
|
8
|
+
get calcs(): String[];
|
|
9
|
+
addCalc(calc: String): this;
|
|
10
|
+
addNewCalc(onNewCreated: (item: String) => String): this;
|
|
11
|
+
withCalcs(onWith: (calcs: String[]) => void): this;
|
|
12
|
+
setFields(fields: String): this;
|
|
13
|
+
setLimit(limit: Number): this;
|
|
14
|
+
setValues(values: Boolean): this;
|
|
15
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PanelOptions } from "./PanelOptions.js";
|
|
2
|
+
import { PanelOptionsGeomapBasemap } from "./PanelOptionsGeomapBasemap.js";
|
|
3
|
+
import { PanelOptionsGeomapControls } from "./PanelOptionsGeomapControls.js";
|
|
4
|
+
import { PanelOptionsGeomapLayer } from "./PanelOptionsGeomapLayer.js";
|
|
5
|
+
import { PanelOptionsGeomapTooltip } from "./PanelOptionsGeomapTooltip.js";
|
|
6
|
+
import { PanelOptionsGeomapView } from "./PanelOptionsGeomapView.js";
|
|
7
|
+
|
|
8
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
9
|
+
|
|
10
|
+
export declare class PanelOptionsGeomap extends PanelOptions {
|
|
11
|
+
setBasemap(basemap: PanelOptionsGeomapBasemap): this;
|
|
12
|
+
setNewBasemap(onNewCreated: ((item: PanelOptionsGeomapBasemap) => PanelOptionsGeomapBasemap) | undefined): this;
|
|
13
|
+
withBasemap(onWith: (item: PanelOptionsGeomapBasemap) => void): this;
|
|
14
|
+
get basemap(): PanelOptionsGeomapBasemap;
|
|
15
|
+
setControls(controls: PanelOptionsGeomapControls): this;
|
|
16
|
+
setNewControls(onNewCreated: ((item: PanelOptionsGeomapControls) => PanelOptionsGeomapControls) | undefined): this;
|
|
17
|
+
withControls(onWith: (item: PanelOptionsGeomapControls) => void): this;
|
|
18
|
+
get controls(): PanelOptionsGeomapControls;
|
|
19
|
+
initLayers(): this;
|
|
20
|
+
get layers(): PanelOptionsGeomapLayer[];
|
|
21
|
+
addLayer(layer: PanelOptionsGeomapLayer): this;
|
|
22
|
+
addNewLayer(onNewCreated: (item: PanelOptionsGeomapLayer) => PanelOptionsGeomapLayer): this;
|
|
23
|
+
withLayers(onWith: (layers: PanelOptionsGeomapLayer[]) => void): this;
|
|
24
|
+
setTooltip(tooltip: PanelOptionsGeomapTooltip): this;
|
|
25
|
+
setNewTooltip(onNewCreated: ((item: PanelOptionsGeomapTooltip) => PanelOptionsGeomapTooltip) | undefined): this;
|
|
26
|
+
withTooltip(onWith: (item: PanelOptionsGeomapTooltip) => void): this;
|
|
27
|
+
get tooltip(): PanelOptionsGeomapTooltip;
|
|
28
|
+
setView(view: PanelOptionsGeomapView): this;
|
|
29
|
+
setNewView(onNewCreated: ((item: PanelOptionsGeomapView) => PanelOptionsGeomapView) | undefined): this;
|
|
30
|
+
withView(onWith: (item: PanelOptionsGeomapView) => void): this;
|
|
31
|
+
get view(): PanelOptionsGeomapView;
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class PanelOptionsGeomapBasemap extends GrafanaItem {
|
|
7
|
+
setConfig(config: Object): this;
|
|
8
|
+
setNewConfig(onNewCreated: ((item: Object) => Object) | undefined): this;
|
|
9
|
+
withConfig(onWith: (item: Object) => void): this;
|
|
10
|
+
get config(): Object;
|
|
11
|
+
setName(name: String): this;
|
|
12
|
+
setNoRepeat(noRepeat: Boolean): this;
|
|
13
|
+
setType(type: String): this;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class PanelOptionsGeomapControls extends GrafanaItem {
|
|
7
|
+
setMouseWheelZoom(mouseWheelZoom: Boolean): this;
|
|
8
|
+
setShowAttribution(showAttribution: Boolean): this;
|
|
9
|
+
setShowDebug(showDebug: Boolean): this;
|
|
10
|
+
setShowMeasure(showMeasure: Boolean): this;
|
|
11
|
+
setShowScale(showScale: Boolean): this;
|
|
12
|
+
setShowZoom(showZoom: Boolean): this;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
import { PanelOptionsGeomapLayerConfig } from "./PanelOptionsGeomapLayerConfig.js";
|
|
3
|
+
import { PanelOptionsGeomapLayerLocation } from "./PanelOptionsGeomapLayerLocation.js";
|
|
4
|
+
|
|
5
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
|
+
|
|
7
|
+
export declare class PanelOptionsGeomapLayer extends GrafanaItem {
|
|
8
|
+
setConfig(config: PanelOptionsGeomapLayerConfig): this;
|
|
9
|
+
setNewConfig(onNewCreated: ((item: PanelOptionsGeomapLayerConfig) => PanelOptionsGeomapLayerConfig) | undefined): this;
|
|
10
|
+
withConfig(onWith: (item: PanelOptionsGeomapLayerConfig) => void): this;
|
|
11
|
+
get config(): PanelOptionsGeomapLayerConfig;
|
|
12
|
+
setLocation(location: PanelOptionsGeomapLayerLocation): this;
|
|
13
|
+
setNewLocation(onNewCreated: ((item: PanelOptionsGeomapLayerLocation) => PanelOptionsGeomapLayerLocation) | undefined): this;
|
|
14
|
+
withLocation(onWith: (item: PanelOptionsGeomapLayerLocation) => void): this;
|
|
15
|
+
get location(): PanelOptionsGeomapLayerLocation;
|
|
16
|
+
setName(name: String): this;
|
|
17
|
+
setTooltip(tooltip: Boolean): this;
|
|
18
|
+
setType(type: String): this;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
import { PanelOptionsGeomapLayerConfigStyle } from "./PanelOptionsGeomapLayerConfigStyle.js";
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class PanelOptionsGeomapLayerConfig extends GrafanaItem {
|
|
7
|
+
setShowLegend(showLegend: Boolean): this;
|
|
8
|
+
setStyle(style: PanelOptionsGeomapLayerConfigStyle): this;
|
|
9
|
+
setNewStyle(onNewCreated: ((item: PanelOptionsGeomapLayerConfigStyle) => PanelOptionsGeomapLayerConfigStyle) | undefined): this;
|
|
10
|
+
withStyle(onWith: (item: PanelOptionsGeomapLayerConfigStyle) => void): this;
|
|
11
|
+
get style(): PanelOptionsGeomapLayerConfigStyle;
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
import { StyleColor } from "./StyleColor.js";
|
|
3
|
+
import { StyleRotation } from "./StyleRotation.js";
|
|
4
|
+
import { StyleSize } from "./StyleSize.js";
|
|
5
|
+
import { StyleSymbol } from "./StyleSymbol.js";
|
|
6
|
+
import { StyleSymbolAlign } from "./StyleSymbolAlign.js";
|
|
7
|
+
import { StyleTextConfig } from "./StyleTextConfig.js";
|
|
8
|
+
|
|
9
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
10
|
+
|
|
11
|
+
export declare class PanelOptionsGeomapLayerConfigStyle extends GrafanaItem {
|
|
12
|
+
setColor(color: StyleColor): this;
|
|
13
|
+
withColor(onWith: (item: StyleColor) => void): this;
|
|
14
|
+
get color(): StyleColor;
|
|
15
|
+
setOpacity(opacity: Number): this;
|
|
16
|
+
setRotation(rotation: StyleRotation): this;
|
|
17
|
+
withRotation(onWith: (item: StyleRotation) => void): this;
|
|
18
|
+
get rotation(): StyleRotation;
|
|
19
|
+
setSize(size: StyleSize): this;
|
|
20
|
+
withSize(onWith: (item: StyleSize) => void): this;
|
|
21
|
+
get size(): StyleSize;
|
|
22
|
+
setSymbol(symbol: StyleSymbol): this;
|
|
23
|
+
withSymbol(onWith: (item: StyleSymbol) => void): this;
|
|
24
|
+
get symbol(): StyleSymbol;
|
|
25
|
+
setSymbolAlign(symbolAlign: StyleSymbolAlign): this;
|
|
26
|
+
withSymbolAlign(onWith: (item: StyleSymbolAlign) => void): this;
|
|
27
|
+
get symbolAlign(): StyleSymbolAlign;
|
|
28
|
+
setTextConfig(textConfig: StyleTextConfig): this;
|
|
29
|
+
withTextConfig(onWith: (item: StyleTextConfig) => void): this;
|
|
30
|
+
get textConfig(): StyleTextConfig;
|
|
31
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class PanelOptionsGeomapView extends GrafanaItem {
|
|
7
|
+
setAllLayers(allLayers: Boolean): this;
|
|
8
|
+
setId(id: String): this;
|
|
9
|
+
setLat(lat: Number): this;
|
|
10
|
+
setLon(lon: Number): this;
|
|
11
|
+
setNoRepeat(noRepeat: Boolean): this;
|
|
12
|
+
setShared(shared: Boolean): this;
|
|
13
|
+
setZoom(zoom: Number): this;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PanelOptions } from "./PanelOptions.js";
|
|
2
|
+
import { PanelOptionsTableSortBy } from "./PanelOptionsTableSortBy.js";
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class PanelOptionsTable extends PanelOptions {
|
|
7
|
+
setCellHeight(cellHeight: String): this;
|
|
8
|
+
setShowHeader(showHeader: Boolean): this;
|
|
9
|
+
initSortBy(): this;
|
|
10
|
+
get sortBy(): PanelOptionsTableSortBy[];
|
|
11
|
+
addSortByItem(sortByItem: PanelOptionsTableSortBy): this;
|
|
12
|
+
addNewSortByItem(onNewCreated: (item: PanelOptionsTableSortBy) => PanelOptionsTableSortBy): this;
|
|
13
|
+
withSortBy(onWith: (sortBy: PanelOptionsTableSortBy[]) => void): this;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GrafanaItem } from "./GrafanaItem.js";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class PanelOptionsTableSortBy extends GrafanaItem {
|
|
7
|
+
setDesc(desc: Boolean): this;
|
|
8
|
+
setDisplayName(displayName: String): this;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PanelOptions } from "./PanelOptions.js";
|
|
2
|
+
import { PanelOptionsTextCode } from "./PanelOptionsTextCode.js";
|
|
3
|
+
|
|
4
|
+
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
|
+
|
|
6
|
+
export declare class PanelOptionsText extends PanelOptions {
|
|
7
|
+
setCode(code: PanelOptionsTextCode): this;
|
|
8
|
+
withCode(onWith: (item: PanelOptionsTextCode) => void): this;
|
|
9
|
+
get code(): PanelOptionsTextCode;
|
|
10
|
+
setContent(content: String): this;
|
|
11
|
+
setMode(mode: String): this;
|
|
12
|
+
}
|