@gdacm/grafana-items 0.1.19 → 0.1.21
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.js +631 -422
- package/dist/index.js.map +1 -1
- package/dist/items/Annotation.d.ts +6 -0
- package/dist/items/BarChart.d.ts +2 -1
- package/dist/items/Color.d.ts +1 -0
- package/dist/items/Dashboard.d.ts +12 -1
- package/dist/items/Datasource.d.ts +2 -0
- package/dist/items/FieldConfigCustomBarChart.d.ts +13 -0
- package/dist/items/FieldConfigCustomTable.d.ts +2 -0
- package/dist/items/FieldConfigCustomTableCellOptions.d.ts +1 -0
- package/dist/items/FieldConfigCustomTableFooter.d.ts +0 -1
- package/dist/items/FieldConfigCustomTimeSerie.d.ts +27 -0
- package/dist/items/FieldConfigDefault.d.ts +5 -0
- package/dist/items/FieldConfigOverride.d.ts +1 -0
- package/dist/items/Gauge.d.ts +1 -0
- package/dist/items/Geomap.d.ts +1 -0
- package/dist/items/GridPos.d.ts +4 -0
- package/dist/items/HideFrom.d.ts +4 -0
- package/dist/items/LineStyle.d.ts +1 -0
- package/dist/items/Link.d.ts +9 -1
- package/dist/items/OverrideMatcher.d.ts +1 -0
- package/dist/items/OverrideMatcherOptionsByNames.d.ts +3 -1
- package/dist/items/OverrideProperty.d.ts +2 -0
- package/dist/items/Panel.d.ts +15 -0
- package/dist/items/PanelOptionsBarChart.d.ts +12 -0
- package/dist/items/PanelOptionsGauge.d.ts +14 -0
- package/dist/items/PanelOptionsGaugeEffect.d.ts +3 -0
- package/dist/items/PanelOptionsGaugeReduceOptions.d.ts +3 -1
- package/dist/items/PanelOptionsGeomapBasemap.d.ts +3 -0
- package/dist/items/PanelOptionsGeomapControls.d.ts +6 -0
- package/dist/items/PanelOptionsGeomapLayer.d.ts +3 -0
- package/dist/items/PanelOptionsGeomapLayerConfig.d.ts +1 -0
- package/dist/items/PanelOptionsGeomapLayerConfigStyle.d.ts +1 -0
- package/dist/items/PanelOptionsGeomapLayerLocation.d.ts +1 -0
- package/dist/items/PanelOptionsGeomapTooltip.d.ts +1 -0
- package/dist/items/PanelOptionsGeomapView.d.ts +7 -0
- package/dist/items/PanelOptionsPieChart.d.ts +2 -1
- package/dist/items/PanelOptionsTable.d.ts +2 -0
- package/dist/items/PanelOptionsTableSortBy.d.ts +2 -0
- package/dist/items/PanelOptionsText.d.ts +2 -0
- package/dist/items/PanelOptionsTextCode.d.ts +3 -0
- package/dist/items/PanelOptionsTimeSeries.d.ts +2 -0
- package/dist/items/PieChart.d.ts +1 -0
- package/dist/items/PieChartLegendOptions.d.ts +0 -1
- package/dist/items/ScaleDistribution.d.ts +1 -0
- package/dist/items/Stacking.d.ts +2 -0
- package/dist/items/Stat.d.ts +1 -0
- package/dist/items/StyleColor.d.ts +1 -0
- package/dist/items/StyleRotation.d.ts +4 -0
- package/dist/items/StyleSize.d.ts +3 -0
- package/dist/items/StyleSymbol.d.ts +3 -0
- package/dist/items/StyleSymbolAlign.d.ts +2 -0
- package/dist/items/StyleTextConfig.d.ts +5 -0
- package/dist/items/Table.d.ts +1 -0
- package/dist/items/Target.d.ts +6 -0
- package/dist/items/TargetInfinity.d.ts +7 -0
- package/dist/items/Template.d.ts +12 -0
- package/dist/items/TemplateCurrent.d.ts +2 -0
- package/dist/items/TemplateOption.d.ts +3 -0
- package/dist/items/TextPanel.d.ts +1 -0
- package/dist/items/ThresholdStyle.d.ts +1 -0
- package/dist/items/Thresholds.d.ts +1 -0
- package/dist/items/ThresholdsStep.d.ts +2 -0
- package/dist/items/TimePicker.d.ts +0 -1
- package/dist/items/TimeRange.d.ts +2 -0
- package/dist/items/TimeSeries.d.ts +2 -1
- package/dist/items/VizLegendOptions.d.ts +10 -1
- package/dist/items/VizTextDisplayOptions.d.ts +3 -0
- package/dist/items/VizTooltipOptions.d.ts +5 -0
- package/package.json +2 -2
|
@@ -4,11 +4,18 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class PanelOptionsGeomapView extends GrafanaItem {
|
|
7
|
+
get allLayers(): Boolean;
|
|
7
8
|
setAllLayers(allLayers: Boolean): this;
|
|
9
|
+
get id(): String;
|
|
8
10
|
setId(id: String): this;
|
|
11
|
+
get lat(): Number;
|
|
9
12
|
setLat(lat: Number): this;
|
|
13
|
+
get lon(): Number;
|
|
10
14
|
setLon(lon: Number): this;
|
|
15
|
+
get noRepeat(): Boolean;
|
|
11
16
|
setNoRepeat(noRepeat: Boolean): this;
|
|
17
|
+
get shared(): Boolean;
|
|
12
18
|
setShared(shared: Boolean): this;
|
|
19
|
+
get zoom(): Number;
|
|
13
20
|
setZoom(zoom: Number): this;
|
|
14
21
|
}
|
|
@@ -8,13 +8,14 @@ export declare class PanelOptionsPieChart extends PanelOptions {
|
|
|
8
8
|
initDisplayLabels(): this;
|
|
9
9
|
get displayLabels(): String[];
|
|
10
10
|
addDisplayLabel(displayLabel: String): this;
|
|
11
|
-
addNewDisplayLabel(onNewCreated: (item: String) => String): this;
|
|
12
11
|
withDisplayLabels(onWith: (displayLabels: String[]) => void): this;
|
|
13
12
|
setLegend(legend: PieChartLegendOptions): this;
|
|
14
13
|
setNewLegend(onNewCreated: ((item: PieChartLegendOptions) => PieChartLegendOptions) | undefined): this;
|
|
15
14
|
withLegend(onWith: (item: PieChartLegendOptions) => void): this;
|
|
16
15
|
get legend(): PieChartLegendOptions;
|
|
16
|
+
get pieType(): String;
|
|
17
17
|
setPieType(pieType: String): this;
|
|
18
|
+
get sort(): String;
|
|
18
19
|
setSort(sort: String): this;
|
|
19
20
|
setTooltip(tooltip: VizTooltipOptions): this;
|
|
20
21
|
setNewTooltip(onNewCreated: ((item: VizTooltipOptions) => VizTooltipOptions) | undefined): this;
|
|
@@ -4,7 +4,9 @@ import { PanelOptionsTableSortBy } from "./PanelOptionsTableSortBy.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class PanelOptionsTable extends PanelOptions {
|
|
7
|
+
get cellHeight(): String;
|
|
7
8
|
setCellHeight(cellHeight: String): this;
|
|
9
|
+
get showHeader(): Boolean;
|
|
8
10
|
setShowHeader(showHeader: Boolean): this;
|
|
9
11
|
initSortBy(): this;
|
|
10
12
|
get sortBy(): PanelOptionsTableSortBy[];
|
|
@@ -4,6 +4,8 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class PanelOptionsTableSortBy extends GrafanaItem {
|
|
7
|
+
get desc(): Boolean;
|
|
7
8
|
setDesc(desc: Boolean): this;
|
|
9
|
+
get displayName(): String;
|
|
8
10
|
setDisplayName(displayName: String): this;
|
|
9
11
|
}
|
|
@@ -8,6 +8,8 @@ export declare class PanelOptionsText extends PanelOptions {
|
|
|
8
8
|
setNewCode(onNewCreated: ((item: PanelOptionsTextCode) => PanelOptionsTextCode) | undefined): this;
|
|
9
9
|
withCode(onWith: (item: PanelOptionsTextCode) => void): this;
|
|
10
10
|
get code(): PanelOptionsTextCode;
|
|
11
|
+
get content(): String;
|
|
11
12
|
setContent(content: String): this;
|
|
13
|
+
get mode(): String;
|
|
12
14
|
setMode(mode: String): this;
|
|
13
15
|
}
|
|
@@ -4,7 +4,10 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class PanelOptionsTextCode extends GrafanaItem {
|
|
7
|
+
get language(): String;
|
|
7
8
|
setLanguage(language: String): this;
|
|
9
|
+
get showLineNumbers(): Boolean;
|
|
8
10
|
setShowLineNumbers(showLineNumbers: Boolean): this;
|
|
11
|
+
get showMiniMap(): Boolean;
|
|
9
12
|
setShowMiniMap(showMiniMap: Boolean): this;
|
|
10
13
|
}
|
|
@@ -5,11 +5,13 @@ import { VizTooltipOptions } from "./VizTooltipOptions.js";
|
|
|
5
5
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
6
6
|
|
|
7
7
|
export declare class PanelOptionsTimeSeries extends PanelOptions {
|
|
8
|
+
get disableKeyboardEvents(): Boolean;
|
|
8
9
|
setDisableKeyboardEvents(disableKeyboardEvents: Boolean): this;
|
|
9
10
|
setLegend(legend: VizLegendOptions): this;
|
|
10
11
|
setNewLegend(onNewCreated: ((item: VizLegendOptions) => VizLegendOptions) | undefined): this;
|
|
11
12
|
withLegend(onWith: (item: VizLegendOptions) => void): this;
|
|
12
13
|
get legend(): VizLegendOptions;
|
|
14
|
+
get orientation(): String;
|
|
13
15
|
setOrientation(orientation: String): this;
|
|
14
16
|
setTooltip(tooltip: VizTooltipOptions): this;
|
|
15
17
|
setNewTooltip(onNewCreated: ((item: VizTooltipOptions) => VizTooltipOptions) | undefined): this;
|
package/dist/items/PieChart.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare class PieChart extends Panel {
|
|
|
8
8
|
constructor(metaOptions: GenericMetaOptions)
|
|
9
9
|
get custom(): FieldConfigCustomPieChart;
|
|
10
10
|
withCustom(code: (custom: FieldConfigCustomPieChart) => void): this
|
|
11
|
+
setOptions(options: PanelOptionsPieChart): this;
|
|
11
12
|
setNewOptions(onNewCreated: ((item: PanelOptionsPieChart) => PanelOptionsPieChart) | undefined): this;
|
|
12
13
|
withOptions(onWith: (item: PanelOptionsPieChart) => void): this;
|
|
13
14
|
get options(): PanelOptionsPieChart;
|
|
@@ -7,6 +7,5 @@ export declare class PieChartLegendOptions extends VizLegendOptions {
|
|
|
7
7
|
initValues(): this;
|
|
8
8
|
get values(): String[];
|
|
9
9
|
addValue(value: String): this;
|
|
10
|
-
addNewValue(onNewCreated: (item: String) => String): this;
|
|
11
10
|
withValues(onWith: (values: String[]) => void): this;
|
|
12
11
|
}
|
package/dist/items/Stacking.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class Stacking extends GrafanaItem {
|
|
7
|
+
get group(): String;
|
|
7
8
|
setGroup(group: String): this;
|
|
9
|
+
get mode(): String;
|
|
8
10
|
setMode(mode: String): this;
|
|
9
11
|
}
|
package/dist/items/Stat.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare class Stat extends Panel {
|
|
|
8
8
|
constructor(metaOptions: GenericMetaOptions)
|
|
9
9
|
get custom(): FieldConfigCustomStat;
|
|
10
10
|
withCustom(code: (custom: FieldConfigCustomStat) => void): this
|
|
11
|
+
setOptions(options: PanelOptionsStat): this;
|
|
11
12
|
setNewOptions(onNewCreated: ((item: PanelOptionsStat) => PanelOptionsStat) | undefined): this;
|
|
12
13
|
withOptions(onWith: (item: PanelOptionsStat) => void): this;
|
|
13
14
|
get options(): PanelOptionsStat;
|
|
@@ -4,8 +4,12 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class StyleRotation extends GrafanaItem {
|
|
7
|
+
get fixed(): Number;
|
|
7
8
|
setFixed(fixed: Number): this;
|
|
9
|
+
get max(): Number;
|
|
8
10
|
setMax(max: Number): this;
|
|
11
|
+
get min(): Number;
|
|
9
12
|
setMin(min: Number): this;
|
|
13
|
+
get mode(): String;
|
|
10
14
|
setMode(mode: String): this;
|
|
11
15
|
}
|
|
@@ -4,7 +4,10 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class StyleSize extends GrafanaItem {
|
|
7
|
+
get fixed(): Number;
|
|
7
8
|
setFixed(fixed: Number): this;
|
|
9
|
+
get max(): Number;
|
|
8
10
|
setMax(max: Number): this;
|
|
11
|
+
get min(): Number;
|
|
9
12
|
setMin(min: Number): this;
|
|
10
13
|
}
|
|
@@ -4,7 +4,10 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class StyleSymbol extends GrafanaItem {
|
|
7
|
+
get field(): String;
|
|
7
8
|
setField(field: String): this;
|
|
9
|
+
get fixed(): String;
|
|
8
10
|
setFixed(fixed: String): this;
|
|
11
|
+
get mode(): String;
|
|
9
12
|
setMode(mode: String): this;
|
|
10
13
|
}
|
|
@@ -4,6 +4,8 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class StyleSymbolAlign extends GrafanaItem {
|
|
7
|
+
get horizontal(): String;
|
|
7
8
|
setHorizontal(horizontal: String): this;
|
|
9
|
+
get vertical(): String;
|
|
8
10
|
setVertical(vertical: String): this;
|
|
9
11
|
}
|
|
@@ -4,9 +4,14 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class StyleTextConfig extends GrafanaItem {
|
|
7
|
+
get fontSize(): Number;
|
|
7
8
|
setFontSize(fontSize: Number): this;
|
|
9
|
+
get offsetX(): Number;
|
|
8
10
|
setOffsetX(offsetX: Number): this;
|
|
11
|
+
get offsetY(): Number;
|
|
9
12
|
setOffsetY(offsetY: Number): this;
|
|
13
|
+
get textAlign(): String;
|
|
10
14
|
setTextAlign(textAlign: String): this;
|
|
15
|
+
get textBaseline(): String;
|
|
11
16
|
setTextBaseline(textBaseline: String): this;
|
|
12
17
|
}
|
package/dist/items/Table.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare class Table extends Panel {
|
|
|
8
8
|
constructor(metaOptions: GenericMetaOptions)
|
|
9
9
|
get custom(): FieldConfigCustomTable;
|
|
10
10
|
withCustom(code: (custom: FieldConfigCustomTable) => void): this
|
|
11
|
+
setOptions(options: PanelOptionsTable): this;
|
|
11
12
|
setNewOptions(onNewCreated: ((item: PanelOptionsTable) => PanelOptionsTable) | undefined): this;
|
|
12
13
|
withOptions(onWith: (item: PanelOptionsTable) => void): this;
|
|
13
14
|
get options(): PanelOptionsTable;
|
package/dist/items/Target.d.ts
CHANGED
|
@@ -4,14 +4,20 @@ import { Datasource } from "./Datasource.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class Target extends GrafanaItem {
|
|
7
|
+
get alias(): String;
|
|
7
8
|
setAlias(alias: String): this;
|
|
9
|
+
get refId(): String;
|
|
8
10
|
setRefId(refId: String): this;
|
|
11
|
+
get query(): String;
|
|
9
12
|
setQuery(query: String): this;
|
|
10
13
|
setDatasource(datasource: Datasource): this;
|
|
11
14
|
setNewDatasource(onNewCreated: ((item: Datasource) => Datasource) | undefined): this;
|
|
12
15
|
withDatasource(onWith: (item: Datasource) => void): this;
|
|
13
16
|
get datasource(): Datasource;
|
|
17
|
+
get seriesCount(): Number;
|
|
14
18
|
setSeriesCount(seriesCount: Number): this;
|
|
19
|
+
get scenarioId(): String;
|
|
15
20
|
setScenarioId(scenarioId: String): this;
|
|
21
|
+
get stringInput(): String;
|
|
16
22
|
setStringInput(stringInput: String): this;
|
|
17
23
|
}
|
|
@@ -10,11 +10,18 @@ export declare class TargetInfinity extends Target {
|
|
|
10
10
|
setComputedColumns(computedColumns: Object): this;
|
|
11
11
|
withComputedColumns(onWith: (item: Object) => void): this;
|
|
12
12
|
get computedColumns(): Object;
|
|
13
|
+
get format(): String;
|
|
13
14
|
setFormat(format: String): this;
|
|
15
|
+
get parser(): String;
|
|
14
16
|
setParser(parser: String): this;
|
|
17
|
+
get source(): String;
|
|
15
18
|
setSource(source: String): this;
|
|
19
|
+
get type(): String;
|
|
16
20
|
setType(type: String): this;
|
|
21
|
+
get uql(): String;
|
|
17
22
|
setUql(uql: String): this;
|
|
23
|
+
get url(): String;
|
|
18
24
|
setUrl(url: String): this;
|
|
25
|
+
get urlOptions(): Object;
|
|
19
26
|
setUrlOptions(urlOptions: Object): this;
|
|
20
27
|
}
|
package/dist/items/Template.d.ts
CHANGED
|
@@ -9,21 +9,33 @@ export declare class Template extends GrafanaItem {
|
|
|
9
9
|
setNewCurrent(onNewCreated: ((item: TemplateCurrent) => TemplateCurrent) | undefined): this;
|
|
10
10
|
withCurrent(onWith: (item: TemplateCurrent) => void): this;
|
|
11
11
|
get current(): TemplateCurrent;
|
|
12
|
+
get definition(): String;
|
|
12
13
|
setDefinition(definition: String): this;
|
|
14
|
+
get description(): String;
|
|
13
15
|
setDescription(description: String): this;
|
|
16
|
+
get hide(): Number;
|
|
14
17
|
setHide(hide: Number): this;
|
|
18
|
+
get label(): String;
|
|
15
19
|
setLabel(label: String): this;
|
|
20
|
+
get multi(): Boolean;
|
|
16
21
|
setMulti(multi: Boolean): this;
|
|
22
|
+
get name(): String;
|
|
17
23
|
setName(name: String): this;
|
|
18
24
|
initOptions(): this;
|
|
19
25
|
get options(): TemplateOption[];
|
|
20
26
|
addOption(option: TemplateOption): this;
|
|
21
27
|
addNewOption(onNewCreated: (item: TemplateOption) => TemplateOption): this;
|
|
22
28
|
withOptions(onWith: (options: TemplateOption[]) => void): this;
|
|
29
|
+
get query(): Object;
|
|
23
30
|
setQuery(query: Object): this;
|
|
31
|
+
get refresh(): Number;
|
|
24
32
|
setRefresh(refresh: Number): this;
|
|
33
|
+
get regex(): String;
|
|
25
34
|
setRegex(regex: String): this;
|
|
35
|
+
get sort(): Number;
|
|
26
36
|
setSort(sort: Number): this;
|
|
37
|
+
get type(): String;
|
|
27
38
|
setType(type: String): this;
|
|
39
|
+
get useTags(): Boolean;
|
|
28
40
|
setUseTags(useTags: Boolean): this;
|
|
29
41
|
}
|
|
@@ -4,6 +4,8 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class TemplateCurrent extends GrafanaItem {
|
|
7
|
+
get text(): Object;
|
|
7
8
|
setText(text: Object): this;
|
|
9
|
+
get value(): Object;
|
|
8
10
|
setValue(value: Object): this;
|
|
9
11
|
}
|
|
@@ -4,7 +4,10 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class TemplateOption extends GrafanaItem {
|
|
7
|
+
get selected(): Boolean;
|
|
7
8
|
setSelected(selected: Boolean): this;
|
|
9
|
+
get text(): String;
|
|
8
10
|
setText(text: String): this;
|
|
11
|
+
get value(): String;
|
|
9
12
|
setValue(value: String): this;
|
|
10
13
|
}
|
|
@@ -8,6 +8,7 @@ export declare class TextPanel extends Panel {
|
|
|
8
8
|
constructor(metaOptions: GenericMetaOptions)
|
|
9
9
|
get custom(): FieldConfigCustomText;
|
|
10
10
|
withCustom(code: (custom: FieldConfigCustomText) => void): this
|
|
11
|
+
setOptions(options: PanelOptionsText): this;
|
|
11
12
|
setNewOptions(onNewCreated: ((item: PanelOptionsText) => PanelOptionsText) | undefined): this;
|
|
12
13
|
withOptions(onWith: (item: PanelOptionsText) => void): this;
|
|
13
14
|
get options(): PanelOptionsText;
|
|
@@ -4,6 +4,7 @@ import { ThresholdsStep } from "./ThresholdsStep.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class Thresholds extends GrafanaItem {
|
|
7
|
+
get mode(): String;
|
|
7
8
|
setMode(mode: String): this;
|
|
8
9
|
initSteps(): this;
|
|
9
10
|
get steps(): ThresholdsStep[];
|
|
@@ -4,6 +4,8 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class ThresholdsStep extends GrafanaItem {
|
|
7
|
+
get value(): Number;
|
|
7
8
|
setValue(value: Number): this;
|
|
9
|
+
get color(): String;
|
|
8
10
|
setColor(color: String): this;
|
|
9
11
|
}
|
|
@@ -7,6 +7,5 @@ export declare class TimePicker extends GrafanaItem {
|
|
|
7
7
|
initRefresh_intervals(): this;
|
|
8
8
|
get refresh_intervals(): String[];
|
|
9
9
|
addRefreshInterval(refreshInterval: String): this;
|
|
10
|
-
addNewRefreshInterval(onNewCreated: (item: String) => String): this;
|
|
11
10
|
withRefresh_intervals(onWith: (refresh_intervals: String[]) => void): this;
|
|
12
11
|
}
|
|
@@ -4,7 +4,9 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class TimeRange extends GrafanaItem {
|
|
7
|
+
get from(): String;
|
|
7
8
|
setFrom(from: String): this;
|
|
9
|
+
get to(): String;
|
|
8
10
|
setTo(to: String): this;
|
|
9
11
|
setRange(from: string, to: string): this;
|
|
10
12
|
}
|
|
@@ -8,8 +8,9 @@ export declare class TimeSeries extends Panel {
|
|
|
8
8
|
constructor(metaOptions: GenericMetaOptions)
|
|
9
9
|
get custom(): FieldConfigCustomTimeSerie;
|
|
10
10
|
withCustom(code: (custom: FieldConfigCustomTimeSerie) => void): this
|
|
11
|
+
setOptions(options: PanelOptionsTimeSeries): this;
|
|
11
12
|
setNewOptions(onNewCreated: ((item: PanelOptionsTimeSeries) => PanelOptionsTimeSeries) | undefined): this;
|
|
12
13
|
withOptions(onWith: (item: PanelOptionsTimeSeries) => void): this;
|
|
13
14
|
get options(): PanelOptionsTimeSeries;
|
|
14
|
-
|
|
15
|
+
setThresholdsStyleMode(mode: string): this
|
|
15
16
|
}
|
|
@@ -4,19 +4,28 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class VizLegendOptions extends GrafanaItem {
|
|
7
|
+
get asTable(): Boolean;
|
|
7
8
|
setAsTable(asTable: Boolean): this;
|
|
8
9
|
initCalcs(): this;
|
|
9
10
|
get calcs(): String[];
|
|
10
11
|
addCalc(calc: String): this;
|
|
11
|
-
addNewCalc(onNewCreated: (item: String) => String): this;
|
|
12
12
|
withCalcs(onWith: (calcs: String[]) => void): this;
|
|
13
|
+
get displayMode(): String;
|
|
13
14
|
setDisplayMode(displayMode: String): this;
|
|
15
|
+
get isVisible(): Boolean;
|
|
14
16
|
setIsVisible(isVisible: Boolean): this;
|
|
17
|
+
get limit(): Number;
|
|
15
18
|
setLimit(limit: Number): this;
|
|
19
|
+
get overflow(): String;
|
|
16
20
|
setOverflow(overflow: String): this;
|
|
21
|
+
get placement(): String;
|
|
17
22
|
setPlacement(placement: String): this;
|
|
23
|
+
get showLegend(): Boolean;
|
|
18
24
|
setShowLegend(showLegend: Boolean): this;
|
|
25
|
+
get sortBy(): String;
|
|
19
26
|
setSortBy(sortBy: String): this;
|
|
27
|
+
get sortDesc(): Boolean;
|
|
20
28
|
setSortDesc(sortDesc: Boolean): this;
|
|
29
|
+
get width(): Number;
|
|
21
30
|
setWidth(width: Number): this;
|
|
22
31
|
}
|
|
@@ -4,7 +4,10 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class VizTextDisplayOptions extends GrafanaItem {
|
|
7
|
+
get percentSize(): Number;
|
|
7
8
|
setPercentSize(percentSize: Number): this;
|
|
9
|
+
get titleSize(): Number;
|
|
8
10
|
setTitleSize(titleSize: Number): this;
|
|
11
|
+
get valueSize(): Number;
|
|
9
12
|
setValueSize(valueSize: Number): this;
|
|
10
13
|
}
|
|
@@ -4,9 +4,14 @@ import { GrafanaItem } from "./GrafanaItem.js";
|
|
|
4
4
|
import type { GenericMetaOptions } from "@gdacm/base-types";
|
|
5
5
|
|
|
6
6
|
export declare class VizTooltipOptions extends GrafanaItem {
|
|
7
|
+
get hideZeros(): Boolean;
|
|
7
8
|
setHideZeros(hideZeros: Boolean): this;
|
|
9
|
+
get maxHeight(): Number;
|
|
8
10
|
setMaxHeight(maxHeight: Number): this;
|
|
11
|
+
get maxWidth(): Number;
|
|
9
12
|
setMaxWidth(maxWidth: Number): this;
|
|
13
|
+
get mode(): String;
|
|
10
14
|
setMode(mode: String): this;
|
|
15
|
+
get sort(): String;
|
|
11
16
|
setSort(sort: String): this;
|
|
12
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gdacm/grafana-items",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"author": "gissehel",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"update": "node updateTypes.js"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@gdacm/base-types": "^0.1.
|
|
33
|
+
"@gdacm/base-types": "^0.1.21"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"chokidar-cli": "^3.0.0",
|