Commit 35982030 by 五更

release: v1.0.1

parent 2947ad81
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -8,6 +8,7 @@
* - Emits 'save' when user saves the dashboard
*/
import type { DataSourceConfig, PresetItem } from './_stores';
import './variables.css';
type __VLS_Props = {
hideHeader?: boolean;
canEdit?: boolean;
......@@ -25,11 +26,11 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
onSave?: ((json: string) => any) | undefined;
}>, {
hideHeader: boolean;
canEdit: boolean;
isEditing: boolean | null;
theme: "dark" | "light" | null;
lang: "zh" | "en" | null;
isEditing: boolean | null;
hideHeader: boolean;
canEdit: boolean;
initialEditingPanelId: string | null;
datasourceConfig: DataSourceConfig[] | null;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
......
......@@ -25,6 +25,11 @@ export { applySpanGapsToAlignedData, type SeriesSpanGapsOption, } from './uplot/
export { getStoredSeriesVisibility, type SeriesVisibilityItem, updateSeriesVisibilityToLocalStorage, } from './uplot/legendVisibilityUtils';
export { VariableDependencyGraph } from './variable/variableDependencyGraph';
export * from './variable/variableParser';
export * from './zabbix/align';
export * from './zabbix/applyFunctions';
export * from './zabbix/buildDataFrame';
export * from './zabbix/client';
export * from './zabbix/downsample';
export * from './zabbix/funcDefs';
export * from './zabbix/resolveZabbixVariable';
export { isEqual } from 'lodash-es';
......@@ -24,6 +24,8 @@ export interface VariableConfig {
value: string;
}>;
allValue?: string;
allowCustomValue?: boolean;
allowClear?: boolean;
inputWidth?: number;
constantValue?: string;
constantValueType?: 'string' | 'number';
......
export interface AlignedPoint {
/** Unix milliseconds */
ts: number;
value: number | null;
}
export declare function align(points: {
clock: string;
value: string;
}[], fromS: number, toS: number, stepS: number): AlignedPoint[];
import type { MetricFunc } from '../types/dashboard';
interface Series {
label: string;
values: (number | null)[];
valueMap?: Record<string, string>;
}
interface TimeSeriesData {
timestamps: number[];
series: Series[];
}
export declare function applyFunctions(data: TimeSeriesData, functions: MetricFunc[]): TimeSeriesData;
export {};
import type { DataFrame } from '@grafana/data';
import type { AlignedPoint } from './align';
import type { ZabbixItem } from './client';
export declare function parseIntervalMs(delay?: string): number;
export declare function buildZabbixDataFrame(alignedMap: Map<string, AlignedPoint[]>, items: ZabbixItem[], valueMaps: Map<string, Record<string, string>>, refId: string): DataFrame;
import type { ZabbixHistoryPoint } from './client';
export type AggFunc = 'avg' | 'sum' | 'min' | 'max' | 'count' | 'median';
export declare function groupByItemId(points: ZabbixHistoryPoint[], itemIds: string[]): Map<string, ZabbixHistoryPoint[]>;
export declare function aggregate(vals: number[], fn: AggFunc): number;
export declare function downsample(points: ZabbixHistoryPoint[], intervalMs: number, fn?: AggFunc): ZabbixHistoryPoint[];
import type { ZabbixDataSource } from '../types/dashboard';
import type { ResolvedVariables, VariableState } from '../types/variables';
export interface ResolvedZabbixDs extends Omit<ZabbixDataSource, 'hostId' | 'groupId' | 'lldRuleId'> {
hostIds: string[];
groupIds: string[];
lldRuleIds: string[];
}
export declare function resolveZabbixDs(ds: ZabbixDataSource, resolved: ResolvedVariables, variableStates: Record<string, VariableState>): ResolvedZabbixDs;
......@@ -23,7 +23,7 @@ export interface ArgusBoardConfig {
onSave?: (json: string) => void;
presets?: PresetItem[];
}
export declare function provideArgusBoardConfig(config: ArgusBoardConfig): {
export declare function provideArgusBoardConfig(getConfig: () => ArgusBoardConfig): {
config: Readonly<import("vue").Ref<{
readonly hideHeader: boolean;
readonly canEdit: boolean;
......
......@@ -84,7 +84,7 @@ export declare const useDashboardStore: import("pinia").StoreDefinition<"dashboa
refreshPanel: (id: string) => void;
exportJSON: () => string;
importJSON: (json: string) => boolean;
}, "isEditing" | "title" | "panels" | "layouts" | "editingPanelId" | "addPanelModalOpen" | "timeRange" | "autoRefresh" | "_editSnapshot" | "isDirty" | "panelRefreshKeys">, Pick<{
}, "title" | "panels" | "layouts" | "isEditing" | "editingPanelId" | "addPanelModalOpen" | "timeRange" | "autoRefresh" | "_editSnapshot" | "isDirty" | "panelRefreshKeys">, Pick<{
title: import("vue").Ref<string, string>;
panels: import("vue").Ref<Record<string, PanelConfig>, Record<string, PanelConfig>>;
layouts: import("vue").Ref<{
......
type __VLS_Props = {
open: boolean;
title?: string;
mode?: 'modal' | 'drawer';
width?: string | number;
/** Modal only: body height */
bodyHeight?: string | number;
footer?: boolean;
headerBorder?: boolean;
footerBorder?: boolean;
destroyOnClose?: boolean;
/** Drawer only: mask */
mask?: boolean;
};
declare var __VLS_9: {}, __VLS_11: {}, __VLS_17: {}, __VLS_27: {}, __VLS_29: {}, __VLS_35: {};
type __VLS_Slots = {} & {
title?: (props: typeof __VLS_9) => any;
} & {
footer?: (props: typeof __VLS_11) => any;
} & {
default?: (props: typeof __VLS_17) => any;
} & {
title?: (props: typeof __VLS_27) => any;
} & {
footer?: (props: typeof __VLS_29) => any;
} & {
default?: (props: typeof __VLS_35) => any;
};
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
close: () => any;
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
onClose?: (() => any) | undefined;
}>, {
width: string | number;
mode: "modal" | "drawer";
footer: boolean;
headerBorder: boolean;
footerBorder: boolean;
destroyOnClose: boolean;
mask: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};
import type { DataQueryResponse, QueryEntry, TimeRange } from '../_core';
import type { Ref } from 'vue';
export declare function usePanelData(getQueries: () => QueryEntry[], getTimeRange: () => TimeRange, panelWidthPx?: number, getRefreshKey?: () => number | undefined): {
response: Ref<DataQueryResponse | null, DataQueryResponse | null>;
loading: Ref<boolean, boolean>;
error: Ref<string | null, string | null>;
abort: () => void;
};
import type { ColorDistribution, ColorScheme } from '../_core';
import type { ColorDistribution, ColorScheme, TooltipMode, TooltipSortOrder } from '../_core';
type __VLS_Props = {
seriesValues: number[][];
seriesLabels: string[];
......@@ -11,11 +11,16 @@ type __VLS_Props = {
colorDistribution?: ColorDistribution;
lineWidth?: number;
fillOpacity?: number;
tooltipMode?: TooltipMode;
tooltipSort?: TooltipSortOrder;
unit?: string;
};
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
unit: string;
lineWidth: number;
fillOpacity: number;
tooltipMode: TooltipMode;
tooltipSort: TooltipSortOrder;
combineSeries: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
export default _default;
{
"name": "argus-board",
"version": "1.0.6",
"version": "1.0.1",
"type": "module",
"main": "./dist/argus-board.js",
"module": "./dist/argus-board.es.js",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment