533ee1f078
* Ability to apply regex to display text * Frontend tests * scenes-react version * lock file * adjust tests input * adjust inputs * unused variable * change data type * unit tests * bump scenes * bump scenes * Update docs * V2->V1 conversion * re-generate files * update openai snapshots
923 lines
28 KiB
TypeScript
923 lines
28 KiB
TypeScript
/**
|
|
* A library containing most of the core functionality and data types used in Grafana.
|
|
*
|
|
* @packageDocumentation
|
|
*/
|
|
|
|
export { amendTable, trimTable, type Table } from './table/amendTimeSeries';
|
|
|
|
// DataFrames
|
|
export { DataFrameView } from './dataframe/DataFrameView';
|
|
export { type FieldWithIndex, FieldCache } from './dataframe/FieldCache';
|
|
export { type MutableField, MISSING_VALUE, MutableDataFrame } from './dataframe/MutableDataFrame';
|
|
export {
|
|
guessFieldTypeFromNameAndValue,
|
|
getFieldTypeFromValue,
|
|
guessFieldTypeFromValue,
|
|
guessFieldTypeForField,
|
|
guessFieldTypes,
|
|
isTableData,
|
|
isDataFrame,
|
|
isDataFrameWithValue,
|
|
toDataFrame,
|
|
toLegacyResponseData,
|
|
sortDataFrame,
|
|
reverseDataFrame,
|
|
getDataFrameRow,
|
|
toDataFrameDTO,
|
|
toFilteredDataFrameDTO,
|
|
getTimeField,
|
|
getProcessedDataFrames,
|
|
preProcessPanelData,
|
|
type PartialDataFrame,
|
|
createDataFrame,
|
|
} from './dataframe/processDataFrame';
|
|
export {
|
|
type Dimension,
|
|
type Dimensions,
|
|
createDimension,
|
|
getColumnsFromDimension,
|
|
getColumnFromDimension,
|
|
getValueFromDimension,
|
|
getAllValuesFromDimension,
|
|
getDimensionByName,
|
|
} from './dataframe/dimensions';
|
|
export {
|
|
anySeriesWithTimeField,
|
|
hasTimeField,
|
|
isTimeSeriesFrame,
|
|
isTimeSeriesFrames,
|
|
isTimeSeriesField,
|
|
getRowUniqueId,
|
|
addRow,
|
|
alignTimeRangeCompareData,
|
|
shouldAlignTimeCompare,
|
|
} from './dataframe/utils';
|
|
export {
|
|
StreamingDataFrame,
|
|
StreamingFrameAction,
|
|
type StreamingFrameOptions,
|
|
closestIdx,
|
|
} from './dataframe/StreamingDataFrame';
|
|
export { ArrayDataFrame, arrayToDataFrame } from './dataframe/ArrayDataFrame';
|
|
export {
|
|
type DataFrameJSON,
|
|
type DataFrameData,
|
|
type DataFrameSchema,
|
|
type FieldSchema,
|
|
type FieldValueEntityLookup,
|
|
decodeFieldValueEntities,
|
|
decodeFieldValueEnums,
|
|
dataFrameFromJSON,
|
|
dataFrameToJSON,
|
|
} from './dataframe/DataFrameJSON';
|
|
export { compareDataFrameStructures, compareArrayValues, shallowCompare } from './dataframe/frameComparisons';
|
|
|
|
// Query
|
|
export { getNextRefId } from './query/refId';
|
|
|
|
// Geo
|
|
export {
|
|
FrameGeometrySourceMode,
|
|
type FrameGeometrySource,
|
|
type MapLayerOptions,
|
|
type MapLayerHandler,
|
|
type MapLayerRegistryItem,
|
|
} from './geo/layer';
|
|
|
|
// Text
|
|
export {
|
|
escapeStringForRegex,
|
|
unEscapeStringFromRegex,
|
|
stringStartsAsRegEx,
|
|
stringToJsRegex,
|
|
stringToMs,
|
|
toNumberString,
|
|
toIntegerOrUndefined,
|
|
toFloatOrUndefined,
|
|
toPascalCase,
|
|
escapeRegex,
|
|
} from './text/string';
|
|
export { type TextMatch, findHighlightChunksInText, findMatchesInText, parseFlags } from './text/text';
|
|
export { type RenderMarkdownOptions, renderMarkdown, renderTextPanelMarkdown } from './text/markdown';
|
|
export { textUtil, validatePath, PathValidationError } from './text/sanitize';
|
|
|
|
// Events
|
|
export { eventFactory } from './events/eventFactory';
|
|
export {
|
|
BusEventBase,
|
|
BusEventWithPayload,
|
|
type BusEvent,
|
|
type BusEventType,
|
|
type BusEventHandler,
|
|
type EventFilterOptions,
|
|
type EventBus,
|
|
type AppEvent,
|
|
type LegacyEmitter,
|
|
type LegacyEventHandler,
|
|
type EventBusExtended,
|
|
} from './events/types';
|
|
export { EventBusSrv } from './events/EventBus';
|
|
export {
|
|
type DataHoverPayload,
|
|
DataHoverEvent,
|
|
DataHoverClearEvent,
|
|
DataSelectEvent,
|
|
AnnotationChangeEvent,
|
|
type DashboardLoadedEventPayload,
|
|
DashboardLoadedEvent,
|
|
DataSourceUpdatedSuccessfully,
|
|
DataSourceTestSucceeded,
|
|
DataSourceTestFailed,
|
|
SetPanelAttentionEvent,
|
|
} from './events/common';
|
|
|
|
// Field
|
|
export {
|
|
getFieldColorModeForField,
|
|
getFieldColorMode,
|
|
fieldColorModeRegistry,
|
|
type FieldColorMode,
|
|
getFieldSeriesColor,
|
|
/** @internal */
|
|
getColorByStringHash,
|
|
} from './field/fieldColor';
|
|
export { FieldConfigOptionsRegistry } from './field/FieldConfigOptionsRegistry';
|
|
export { sortThresholds, getActiveThreshold } from './field/thresholds';
|
|
export {
|
|
applyFieldOverrides,
|
|
validateFieldConfig,
|
|
applyRawFieldOverrides,
|
|
useFieldOverrides,
|
|
getFieldDataContextClone,
|
|
DataLinksContext,
|
|
useDataLinksContext,
|
|
} from './field/fieldOverrides';
|
|
export { getFieldDisplayValuesProxy } from './field/getFieldDisplayValuesProxy';
|
|
export {
|
|
getFieldDisplayName,
|
|
getFrameDisplayName,
|
|
cacheFieldDisplayNames,
|
|
getUniqueFieldName,
|
|
} from './field/fieldState';
|
|
export { getScaleCalculator, getFieldConfigWithMinMax, getMinMaxAndDelta } from './field/scale';
|
|
export {
|
|
type ReduceDataOptions,
|
|
VAR_SERIES_NAME,
|
|
VAR_FIELD_NAME,
|
|
VAR_FIELD_LABELS,
|
|
VAR_CALC,
|
|
VAR_CELL_PREFIX,
|
|
type FieldSparkline,
|
|
type FieldDisplay,
|
|
type GetFieldDisplayValuesOptions,
|
|
DEFAULT_FIELD_DISPLAY_VALUES_LIMIT,
|
|
getFieldDisplayValues,
|
|
hasLinks,
|
|
getDisplayValueAlignmentFactors,
|
|
fixCellTemplateExpressions,
|
|
} from './field/fieldDisplay';
|
|
export { getDisplayProcessor, getRawDisplayProcessor } from './field/displayProcessor';
|
|
export {
|
|
type StandardEditorContext,
|
|
type StandardEditorProps,
|
|
type StandardEditorsRegistryItem,
|
|
standardFieldConfigEditorRegistry,
|
|
standardEditorsRegistry,
|
|
} from './field/standardFieldConfigEditorRegistry';
|
|
export {
|
|
identityOverrideProcessor,
|
|
numberOverrideProcessor,
|
|
displayNameOverrideProcessor,
|
|
type NumberFieldConfigSettings,
|
|
type SliderFieldConfigSettings,
|
|
type DataLinksFieldConfigSettings,
|
|
type ValueMappingFieldConfigSettings,
|
|
type SelectFieldConfigSettings,
|
|
type StringFieldConfigSettings,
|
|
type ThresholdsFieldConfigSettings,
|
|
type UnitFieldConfigSettings,
|
|
type FieldColorConfigSettings,
|
|
type StatsPickerConfigSettings,
|
|
type FieldNamePickerConfigSettings,
|
|
dataLinksOverrideProcessor,
|
|
valueMappingsOverrideProcessor,
|
|
selectOverrideProcessor,
|
|
stringOverrideProcessor,
|
|
thresholdsOverrideProcessor,
|
|
unitOverrideProcessor,
|
|
booleanOverrideProcessor,
|
|
FieldNamePickerBaseNameMode,
|
|
} from './field/overrides/processors';
|
|
|
|
// Utils
|
|
export { PanelOptionsEditorBuilder, FieldConfigEditorBuilder } from './utils/OptionsUIBuilders';
|
|
export { getFlotPairs, getFlotPairsConstant } from './utils/flotPairs';
|
|
export { locationUtil } from './utils/location';
|
|
export { urlUtil, type UrlQueryMap, type UrlQueryValue, serializeStateToUrlParam, toURLRange } from './utils/url';
|
|
export { DataLinkBuiltInVars, mapInternalLinkToExplore } from './utils/dataLinks';
|
|
export { DocsId } from './utils/docs';
|
|
export { makeClassES5Compatible } from './utils/makeClassES5Compatible';
|
|
export { anyToNumber } from './utils/anyToNumber';
|
|
export { withLoadingIndicator, type WithLoadingIndicatorOptions } from './utils/withLoadingIndicator';
|
|
export { convertOldAngularValueMappings, LegacyMappingType } from './utils/valueMappings';
|
|
export { containsSearchFilter, type SearchFilterOptions, getSearchFilterScopedVar } from './utils/variables';
|
|
export { renderLegendFormat } from './utils/legend';
|
|
export { matchPluginId } from './utils/matchPluginId';
|
|
export { type RegistryItem, type RegistryItemWithOptions, Registry } from './utils/Registry';
|
|
export {
|
|
getDataSourceRef,
|
|
isDataSourceRef,
|
|
getDataSourceUID,
|
|
onUpdateDatasourceOption,
|
|
onUpdateDatasourceJsonDataOption,
|
|
onUpdateDatasourceSecureJsonDataOption,
|
|
onUpdateDatasourceJsonDataOptionSelect,
|
|
onUpdateDatasourceJsonDataOptionChecked,
|
|
onUpdateDatasourceSecureJsonDataOptionSelect,
|
|
onUpdateDatasourceResetOption,
|
|
updateDatasourcePluginOption,
|
|
updateDatasourcePluginJsonDataOption,
|
|
updateDatasourcePluginSecureJsonDataOption,
|
|
updateDatasourcePluginResetOption,
|
|
} from './utils/datasource';
|
|
export { deprecationWarning } from './utils/deprecationWarning';
|
|
export {
|
|
CSVHeaderStyle,
|
|
type CSVConfig,
|
|
type CSVParseCallbacks,
|
|
type CSVOptions,
|
|
readCSV,
|
|
CSVReader,
|
|
toCSV,
|
|
} from './utils/csv';
|
|
export { parseLabels, findCommonLabels, findUniqueLabels, matchAllLabels, formatLabels } from './utils/labels';
|
|
export { roundDecimals, guessDecimals } from './utils/numbers';
|
|
export { objRemoveUndefined, isEmptyObject } from './utils/object';
|
|
export { classicColors } from './utils/namedColorsPalette';
|
|
export { getSeriesTimeStep, hasMsResolution } from './utils/series';
|
|
export { BinaryOperationID, type BinaryOperation, binaryOperators } from './utils/binaryOperators';
|
|
export { UnaryOperationID, type UnaryOperation, unaryOperators } from './utils/unaryOperators';
|
|
export { NodeGraphDataFrameFieldNames } from './utils/nodeGraph';
|
|
export { toOption } from './utils/selectUtils';
|
|
export * as arrayUtils from './utils/arrayUtils';
|
|
export { store, Store } from './utils/store';
|
|
export { LocalStorageValueProvider } from './utils/LocalStorageValueProvider';
|
|
export { throwIfAngular } from './utils/throwIfAngular';
|
|
export { fuzzySearch } from './utils/fuzzySearch';
|
|
|
|
// Transformations
|
|
export { standardTransformers } from './transformations/transformers';
|
|
export {
|
|
fieldMatchers,
|
|
frameMatchers,
|
|
valueMatchers,
|
|
getFieldMatcher,
|
|
getFrameMatchers,
|
|
getValueMatcher,
|
|
} from './transformations/matchers';
|
|
export { type FieldValueMatcherConfig } from './transformations/matchers/fieldValueMatcher';
|
|
export { DataTransformerID } from './transformations/transformers/ids';
|
|
export { MatcherID, FieldMatcherID, FrameMatcherID, ValueMatcherID } from './transformations/matchers/ids';
|
|
export {
|
|
ReducerID,
|
|
isReducerID,
|
|
type FieldReducerInfo,
|
|
reduceField,
|
|
fieldReducers,
|
|
defaultCalcs,
|
|
doStandardCalcs,
|
|
} from './transformations/fieldReducer';
|
|
export { transformDataFrame } from './transformations/transformDataFrame';
|
|
export {
|
|
type TransformerRegistryItem,
|
|
type TransformerUIProps,
|
|
TransformerCategory,
|
|
standardTransformersRegistry,
|
|
} from './transformations/standardTransformersRegistry';
|
|
export {
|
|
type RegexpOrNamesMatcherOptions,
|
|
type ByNamesMatcherOptions,
|
|
ByNamesMatcherMode,
|
|
} from './transformations/matchers/nameMatcher';
|
|
export type { RenameByRegexTransformerOptions } from './transformations/transformers/renameByRegex';
|
|
/** @deprecated -- will be removed in future versions */
|
|
export {
|
|
joinDataFrames as outerJoinDataFrames,
|
|
isLikelyAscendingVector,
|
|
} from './transformations/transformers/joinDataFrames';
|
|
export * from './transformations/transformers/histogram';
|
|
export { ensureTimeField } from './transformations/transformers/convertFieldType';
|
|
// Required for Sparklines util to work in @grafana/data, but ideally kept internal
|
|
export { applyNullInsertThreshold } from './transformations/transformers/nulls/nullInsertThreshold';
|
|
export { nullToValue } from './transformations/transformers/nulls/nullToValue';
|
|
|
|
// Monaco
|
|
export { type MonacoLanguageRegistryItem, monacoLanguageRegistry } from './monaco/languageRegistry';
|
|
|
|
// Theme
|
|
export { createTheme } from './themes/createTheme';
|
|
export { getThemeById, getBuiltInThemes, type ThemeRegistryItem } from './themes/registry';
|
|
export type { NewThemeOptions } from './themes/createTheme';
|
|
export type { ThemeRichColor, GrafanaTheme2 } from './themes/types';
|
|
export type { ThemeColors } from './themes/createColors';
|
|
export type { ThemeBreakpoints, ThemeBreakpointsKey } from './themes/breakpoints';
|
|
export type { ThemeShadows } from './themes/createShadows';
|
|
export type { ThemeShape } from './themes/createShape';
|
|
export type { ThemeTypography, ThemeTypographyVariant, ThemeTypographyVariantTypes } from './themes/createTypography';
|
|
export type { ThemeTransitions } from './themes/createTransitions';
|
|
export type { ThemeSpacing, ThemeSpacingTokens } from './themes/createSpacing';
|
|
export type { ThemeZIndices } from './themes/zIndex';
|
|
export type { ThemeVisualizationColors, ThemeVizColor, ThemeVizHue } from './themes/createVisualizationColors';
|
|
export { colorManipulator } from './themes/colorManipulator';
|
|
export { ThemeContext } from './themes/context';
|
|
|
|
// ValueFormats
|
|
export {
|
|
type FormattedValue,
|
|
type ValueFormatter,
|
|
type ValueFormat,
|
|
type ValueFormatCategory,
|
|
type ValueFormatterIndex,
|
|
formattedValueToString,
|
|
toFixed,
|
|
toFixedScaled,
|
|
toFixedUnit,
|
|
isBooleanUnit,
|
|
booleanValueFormatter,
|
|
scaledUnits,
|
|
locale,
|
|
simpleCountUnit,
|
|
stringFormater,
|
|
getValueFormat,
|
|
getValueFormatterIndex,
|
|
getValueFormats,
|
|
} from './valueFormats/valueFormats';
|
|
|
|
// datetime
|
|
export * as dateMath from './datetime/datemath';
|
|
export * as rangeUtil from './datetime/rangeutil';
|
|
export { type DateTimeOptions, setTimeZoneResolver, type TimeZoneResolver, getTimeZone } from './datetime/common';
|
|
export {
|
|
ISO_8601,
|
|
type DateTimeBuiltinFormat,
|
|
type DateTimeInput,
|
|
type FormatInput,
|
|
type DurationInput,
|
|
type DurationUnit,
|
|
type DateTimeLocale,
|
|
type DateTimeDuration,
|
|
type DateTime,
|
|
setLocale,
|
|
getLocale,
|
|
getLocaleData,
|
|
isDateTimeInput,
|
|
isDateTime,
|
|
toUtc,
|
|
toDuration,
|
|
dateTime,
|
|
dateTimeAsMoment,
|
|
dateTimeForTimeZone,
|
|
getWeekdayIndex,
|
|
getWeekdayIndexByEnglishName,
|
|
setWeekStart,
|
|
} from './datetime/moment_wrapper';
|
|
export {
|
|
InternalTimeZones,
|
|
timeZoneFormatUserFriendly,
|
|
getZone,
|
|
type TimeZoneCountry,
|
|
type TimeZoneInfo,
|
|
type GroupedTimeZones,
|
|
getTimeZoneInfo,
|
|
getTimeZones,
|
|
getTimeZoneGroups,
|
|
} from './datetime/timezones';
|
|
export {
|
|
type SystemDateFormatSettings,
|
|
SystemDateFormatsState,
|
|
localTimeFormat,
|
|
systemDateFormats,
|
|
} from './datetime/formats';
|
|
export {
|
|
type DateTimeOptionsWithFormat,
|
|
dateTimeFormat,
|
|
dateTimeFormatISO,
|
|
dateTimeFormatTimeAgo,
|
|
dateTimeFormatWithAbbrevation,
|
|
timeZoneAbbrevation,
|
|
} from './datetime/formatter';
|
|
export { type DateTimeOptionsWhenParsing, dateTimeParse } from './datetime/parser';
|
|
export {
|
|
intervalToAbbreviatedDurationString,
|
|
parseDuration,
|
|
reverseParseDuration,
|
|
addDurationToDate,
|
|
durationToMilliseconds,
|
|
isValidDate,
|
|
isValidDuration,
|
|
isValidGoDuration,
|
|
isValidGrafanaDuration,
|
|
} from './datetime/durationutil';
|
|
|
|
export {
|
|
type ValueMatcherOptions,
|
|
type BasicValueMatcherOptions,
|
|
type RangeValueMatcherOptions,
|
|
} from './transformations/matchers/valueMatchers/types';
|
|
export { LayoutModes, type LayoutMode } from './types/layout';
|
|
export { PanelPlugin, type SetFieldConfigOptionsArgs, type StandardOptionConfig } from './panel/PanelPlugin';
|
|
export {
|
|
getPanelOptionsWithDefaults,
|
|
filterFieldConfigOverrides,
|
|
restoreCustomOverrideRules,
|
|
isCustomFieldProp,
|
|
isStandardFieldProp,
|
|
type OptionDefaults,
|
|
} from './panel/getPanelOptionsWithDefaults';
|
|
export { type PanelDataSummary, getPanelDataSummary } from './panel/suggestions/getPanelDataSummary';
|
|
export { createFieldConfigRegistry } from './panel/registryFactories';
|
|
export { type QueryRunner, type QueryRunnerOptions } from './types/queryRunner';
|
|
export { type GroupingToMatrixTransformerOptions } from './transformations/transformers/groupingToMatrix';
|
|
export {
|
|
type PluginContextType,
|
|
type DataSourcePluginContextType,
|
|
PluginContext,
|
|
} from './context/plugins/PluginContext';
|
|
export {
|
|
type RestrictedGrafanaApisContextType,
|
|
type RestrictedGrafanaApisAllowList,
|
|
RestrictedGrafanaApisContext,
|
|
RestrictedGrafanaApisContextProvider,
|
|
useRestrictedGrafanaApis,
|
|
} from './context/plugins/RestrictedGrafanaApis';
|
|
export { type PluginContextProviderProps, PluginContextProvider } from './context/plugins/PluginContextProvider';
|
|
export {
|
|
type DataSourcePluginContextProviderProps,
|
|
DataSourcePluginContextProvider,
|
|
} from './context/plugins/DataSourcePluginContextProvider';
|
|
export { usePluginContext } from './context/plugins/usePluginContext';
|
|
export { isDataSourcePluginContext } from './context/plugins/guards';
|
|
export { getLinksSupplier } from './field/fieldOverrides';
|
|
|
|
// Types
|
|
export { isUnsignedPluginSignature } from './types/pluginSignature';
|
|
export type {
|
|
AzureSettings,
|
|
AzureCloudInfo,
|
|
CurrentUserDTO,
|
|
AnalyticsSettings,
|
|
AppPluginConfig,
|
|
BootData,
|
|
OAuth,
|
|
OAuthSettings,
|
|
AuthSettings,
|
|
GrafanaConfig,
|
|
BuildInfo,
|
|
LicenseInfo,
|
|
PreinstalledPlugin,
|
|
UnifiedAlertingConfig,
|
|
} from './types/config';
|
|
export { availableIconsIndex, type IconName, isIconName, toIconName } from './types/icon';
|
|
export type { WithAccessControlMetadata } from './types/accesscontrol';
|
|
export { AlertState, type AlertStateInfo } from './types/alerts';
|
|
export type { CartesianCoords2D, Dimensions2D } from './types/geometry';
|
|
export {
|
|
VariableSupportType,
|
|
VariableSupportBase,
|
|
StandardVariableSupport,
|
|
CustomVariableSupport,
|
|
DataSourceVariableSupport,
|
|
type StandardVariableQuery,
|
|
} from './types/variables';
|
|
export {
|
|
type AlertPayload,
|
|
type AlertErrorPayload,
|
|
AppEvents,
|
|
PanelEvents,
|
|
type LegacyGraphHoverEventPayload,
|
|
LegacyGraphHoverEvent,
|
|
LegacyGraphHoverClearEvent,
|
|
} from './types/legacyEvents';
|
|
export type {
|
|
URLRangeValue,
|
|
URLRange,
|
|
ExploreUrlState,
|
|
ExplorePanelsState,
|
|
ExploreCorrelationHelperData,
|
|
ExploreTracePanelState,
|
|
ExploreLogsPanelState,
|
|
SplitOpenOptions,
|
|
SplitOpen,
|
|
TraceSearchProps,
|
|
TraceSearchTag,
|
|
} from './types/explore';
|
|
export type { TraceKeyValuePair, TraceLog, TraceSpanReference, TraceSpanRow } from './types/trace';
|
|
export type { FlotDataPoint } from './types/flot';
|
|
export { type UserOrgDTO, OrgRole } from './types/orgs';
|
|
export { GrafanaThemeType, type GrafanaThemeCommons, type GrafanaTheme } from './types/theme';
|
|
export { FieldColorModeId, type FieldColor, type FieldColorSeriesByMode, FALLBACK_COLOR } from './types/fieldColor';
|
|
export {
|
|
VariableRefresh,
|
|
VariableSort,
|
|
VariableHide,
|
|
type VariableRegexApplyTo,
|
|
type VariableType,
|
|
type VariableModel,
|
|
type TypedVariableModel,
|
|
type AdHocVariableFilter,
|
|
type AdHocVariableModel,
|
|
type GroupByVariableModel,
|
|
type VariableOption,
|
|
type IntervalVariableModel,
|
|
type CustomVariableModel,
|
|
type DataSourceVariableModel,
|
|
type QueryVariableModel,
|
|
type TextBoxVariableModel,
|
|
type ConstantVariableModel,
|
|
type SwitchVariableModel,
|
|
type VariableWithMultiSupport,
|
|
type VariableWithOptions,
|
|
type DashboardProps,
|
|
type DashboardVariableModel,
|
|
type OrgProps,
|
|
type OrgVariableModel,
|
|
type UserProps,
|
|
type UserVariableModel,
|
|
type SystemVariable,
|
|
type BaseVariableModel,
|
|
type SnapshotVariableModel,
|
|
} from './types/templateVars';
|
|
export { type Threshold, ThresholdsMode, type ThresholdsConfig } from './types/thresholds';
|
|
export {
|
|
LiveChannelScope,
|
|
LiveChannelType,
|
|
LiveChannelConnectionState,
|
|
LiveChannelEventType,
|
|
type LiveChannelStatusEvent,
|
|
type LiveChannelJoinEvent,
|
|
type LiveChannelLeaveEvent,
|
|
type LiveChannelMessageEvent,
|
|
type LiveChannelEvent,
|
|
type LiveChannelPresenceStatus,
|
|
type LiveChannelId,
|
|
type LiveChannelAddress,
|
|
isLiveChannelStatusEvent,
|
|
isLiveChannelJoinEvent,
|
|
isLiveChannelLeaveEvent,
|
|
isLiveChannelMessageEvent,
|
|
parseLiveChannelAddress,
|
|
isValidLiveChannelAddress,
|
|
toLiveChannelId,
|
|
} from './types/live';
|
|
export type { SliderMarks } from './types/slider';
|
|
export type { FeatureToggles } from './types/featureToggles.gen';
|
|
export {
|
|
PluginExtensionTypes,
|
|
PluginExtensionPoints,
|
|
PluginExtensionExposedComponents,
|
|
PluginExtensionPointPatterns,
|
|
type PluginExtension,
|
|
type PluginExtensionLink,
|
|
type PluginExtensionComponent,
|
|
type PluginExtensionComponentMeta,
|
|
type ComponentTypeWithExtensionMeta,
|
|
type PluginExtensionFunction,
|
|
type PluginExtensionEventHelpers,
|
|
type DataSourceConfigErrorStatusContext,
|
|
type PluginExtensionPanelContext,
|
|
type PluginExtensionQueryEditorRowAdaptiveTelemetryV1Context,
|
|
type PluginExtensionDataSourceConfigContext,
|
|
type PluginExtensionDataSourceConfigActionsContext,
|
|
type PluginExtensionDataSourceConfigStatusContext,
|
|
type PluginExtensionCommandPaletteContext,
|
|
type PluginExtensionOpenModalOptions,
|
|
type PluginExtensionExposedComponentConfig,
|
|
type PluginExtensionAddedComponentConfig,
|
|
type PluginExtensionAddedLinkConfig,
|
|
type PluginExtensionAddedFunctionConfig,
|
|
type PluginExtensionResourceAttributesContext,
|
|
type CentralAlertHistorySceneV1Props,
|
|
} from './types/pluginExtensions';
|
|
export {
|
|
type ScopeDashboardBindingSpec,
|
|
type ScopeDashboardBindingStatus,
|
|
type ScopeDashboardBinding,
|
|
type ScopeFilterOperator,
|
|
type ScopeSpecFilter,
|
|
type ScopeSpec,
|
|
type Scope,
|
|
type ScopeNodeNodeType,
|
|
type ScopeNodeLinkType,
|
|
type ScopeNodeSpec,
|
|
type ScopeNode,
|
|
scopeFilterOperatorMap,
|
|
reverseScopeFilterOperatorMap,
|
|
isEqualityOrMultiOperator,
|
|
} from './types/scopes';
|
|
export {
|
|
PluginState,
|
|
PluginType,
|
|
PluginSignatureStatus,
|
|
PluginSignatureType,
|
|
PluginErrorCode,
|
|
PluginIncludeType,
|
|
PluginLoadingStrategy,
|
|
GrafanaPlugin,
|
|
type PluginError,
|
|
type AngularMeta,
|
|
type PluginMeta,
|
|
type PluginDependencies,
|
|
type PluginExtensions,
|
|
type PluginInclude,
|
|
type PluginBuildInfo,
|
|
type ScreenshotInfo,
|
|
type PluginMetaInfo,
|
|
type PluginConfigPageProps,
|
|
type PluginConfigPage,
|
|
type ExtensionInfo,
|
|
} from './types/plugin';
|
|
export {
|
|
type InterpolateFunction,
|
|
type PanelPluginMeta,
|
|
type PanelData,
|
|
type PanelProps,
|
|
type PanelEditorProps,
|
|
type PanelMigrationHandler,
|
|
type PanelTypeChangedHandler,
|
|
type PanelOptionEditorsRegistry,
|
|
type PanelOptionsEditorProps,
|
|
type PanelOptionsEditorItem,
|
|
type PanelOptionsEditorConfig,
|
|
type PanelMenuItem,
|
|
type AngularPanelMenuItem,
|
|
type PanelPluginDataSupport,
|
|
VizOrientation,
|
|
} from './types/panel';
|
|
export {
|
|
type DataSourcePluginOptionsEditorProps,
|
|
type DataSourceQueryType,
|
|
type DataSourceOptionsType,
|
|
type DataSourcePluginMeta,
|
|
type DataSourcePluginComponents,
|
|
type DataSourceConstructor,
|
|
type DataSourceGetTagKeysOptions,
|
|
type DataSourceGetTagValuesOptions,
|
|
type DataSourceGetDrilldownsApplicabilityOptions,
|
|
type MetadataInspectorProps,
|
|
type LegacyMetricFindQueryOptions,
|
|
type QueryEditorProps,
|
|
type QueryEditorHelpProps,
|
|
type LegacyResponseData,
|
|
type DataQueryResponseData,
|
|
type DataQueryResponse,
|
|
type TestDataSourceResponse,
|
|
type DataQueryError,
|
|
type DataQueryRequest,
|
|
type DataQueryTimings,
|
|
type QueryFix,
|
|
type QueryFixType,
|
|
type QueryFixAction,
|
|
type QueryHint,
|
|
type MetricFindValue,
|
|
type DrilldownsApplicability,
|
|
type DataSourceJsonData,
|
|
type DataSourceSettings,
|
|
type DataSourceInstanceSettings,
|
|
type DataSourceSelectItem,
|
|
type AnnotationQueryRequest,
|
|
type HistoryItem,
|
|
type GetTagResponse,
|
|
DataSourcePlugin,
|
|
DataQueryErrorType,
|
|
ExploreMode,
|
|
LanguageProvider,
|
|
DataSourceApi,
|
|
} from './types/datasource';
|
|
export { CoreApp, type AppRootProps, type AppPluginMeta, AppPlugin, FeatureState } from './types/app';
|
|
export { patchArrayVectorProrotypeMethods } from './types/vector';
|
|
export {
|
|
type DynamicConfigValue,
|
|
type ConfigOverrideRule,
|
|
type SystemConfigOverrideRule,
|
|
isSystemOverrideWithRef,
|
|
isSystemOverride,
|
|
type FieldConfigSource,
|
|
type FieldOverrideContext,
|
|
type FieldConfigEditorProps,
|
|
type FieldOverrideEditorProps,
|
|
type FieldConfigEditorConfig,
|
|
type FieldConfigPropertyItem,
|
|
type DataLinkPostProcessorOptions,
|
|
type DataLinkPostProcessor,
|
|
type ApplyFieldOverrideOptions,
|
|
FieldConfigProperty,
|
|
} from './types/fieldOverrides';
|
|
export {
|
|
type VisualizationSuggestion,
|
|
type VisualizationSuggestionsSupplier,
|
|
type PanelPluginVisualizationSuggestion,
|
|
type VisualizationSuggestionsBuilder,
|
|
VisualizationSuggestionScore,
|
|
} from './types/suggestions';
|
|
export {
|
|
type MatcherConfig,
|
|
type DataTransformContext,
|
|
type TransformationApplicabilityScore,
|
|
TransformationApplicabilityLevels,
|
|
type DataTransformerInfo,
|
|
type CustomTransformOperator,
|
|
type SynchronousDataTransformerInfo,
|
|
type DataTransformerConfig,
|
|
type FrameMatcher,
|
|
type FieldMatcher,
|
|
type ValueMatcher,
|
|
type FieldMatcherInfo,
|
|
type FrameMatcherInfo,
|
|
type ValueMatcherInfo,
|
|
SpecialValue,
|
|
} from './types/transformations';
|
|
export type { ScopedVar, ScopedVars, DataContextScopedVar } from './types/ScopedVars';
|
|
export type { YAxis, GraphSeriesValue, GraphSeriesXY, CreatePlotOverlay } from './types/graph';
|
|
export type {
|
|
DisplayProcessor,
|
|
DisplayValue,
|
|
DisplayValueAlignmentFactors,
|
|
DecimalCount,
|
|
DecimalInfo,
|
|
} from './types/displayValue';
|
|
export {
|
|
MappingType,
|
|
type ValueMappingResult,
|
|
type ValueMap,
|
|
type RangeMapOptions,
|
|
type RangeMap,
|
|
type RegexMapOptions,
|
|
type RegexMap,
|
|
type SpecialValueOptions,
|
|
SpecialValueMatch,
|
|
type SpecialValueMap,
|
|
type ValueMapping,
|
|
} from './types/valueMapping';
|
|
export {
|
|
type RawTimeRange,
|
|
type TimeRange,
|
|
type RelativeTimeRange,
|
|
type AbsoluteTimeRange,
|
|
type IntervalValues,
|
|
type TimeOption,
|
|
type TimeZone,
|
|
type TimeZoneBrowser,
|
|
type TimeZoneUtc,
|
|
DefaultTimeZone,
|
|
type TimeOptions,
|
|
type TimeFragment,
|
|
TIME_FORMAT,
|
|
getDefaultTimeRange,
|
|
getDefaultRelativeTimeRange,
|
|
makeTimeRange,
|
|
} from './types/time';
|
|
export type { SelectableValue } from './types/select';
|
|
export { type NavLinkDTO, type NavModelItem, type NavModel, type NavIndex, PageLayoutType } from './types/navModel';
|
|
export { LogsDedupStrategy, LogsSortOrder } from '@grafana/schema';
|
|
|
|
export {
|
|
LogLevel,
|
|
NumericLogLevel,
|
|
LogsMetaKind,
|
|
type LogsMetaItem,
|
|
type LogRowModel,
|
|
type LogsModel,
|
|
type LogSearchMatch,
|
|
type LogLabelStatsModel,
|
|
LogsDedupDescription,
|
|
type LogRowContextOptions,
|
|
LogRowContextQueryDirection,
|
|
type DataSourceWithLogsContextSupport,
|
|
hasLogsContextSupport,
|
|
SupplementaryQueryType,
|
|
type SupplementaryQueryOptions,
|
|
type LogsVolumeOption,
|
|
type LogsSampleOptions,
|
|
LogsVolumeType,
|
|
type LogsVolumeCustomMetaData,
|
|
type DataSourceWithSupplementaryQueriesSupport,
|
|
hasSupplementaryQuerySupport,
|
|
hasLogsContextUiSupport,
|
|
type QueryFilterOptions,
|
|
type ToggleFilterAction,
|
|
type DataSourceWithToggleableQueryFiltersSupport,
|
|
type DataSourceWithQueryModificationSupport,
|
|
hasToggleableQueryFiltersSupport,
|
|
hasQueryModificationSupport,
|
|
LogSortOrderChangeEvent,
|
|
type LogSortOrderChangePayload,
|
|
} from './types/logs';
|
|
export {
|
|
type AnnotationQuery,
|
|
type AnnotationEvent,
|
|
type AnnotationEventUIModel,
|
|
type AnnotationEventFieldMapping,
|
|
type AnnotationEventMappings,
|
|
type AnnotationSupport,
|
|
AnnotationEventFieldSource,
|
|
} from './types/annotations';
|
|
export {
|
|
DataTopic,
|
|
type DataQuery,
|
|
type DataSourceRef,
|
|
type AbstractQuery,
|
|
AbstractLabelOperator,
|
|
type AbstractLabelMatcher,
|
|
type DataSourceWithQueryImportSupport,
|
|
type DataSourceWithQueryExportSupport,
|
|
hasQueryImportSupport,
|
|
hasQueryExportSupport,
|
|
} from './types/query';
|
|
export { DashboardCursorSync, type PanelModel } from './types/dashboard';
|
|
export {
|
|
type DataLink,
|
|
type DataLinkClickEvent,
|
|
type DataLinkTransformationConfig,
|
|
DataLinkConfigOrigin,
|
|
SupportedTransformationType,
|
|
type InternalDataLink,
|
|
type LinkTarget,
|
|
type LinkModel,
|
|
type LinkModelSupplier,
|
|
VariableOrigin,
|
|
type VariableSuggestion,
|
|
VariableSuggestionsScope,
|
|
OneClickMode,
|
|
} from './types/dataLink';
|
|
export {
|
|
type Action,
|
|
type ActionModel,
|
|
type ActionVariable,
|
|
type ActionVariableInput,
|
|
ActionType,
|
|
HttpRequestMethod,
|
|
ActionVariableType,
|
|
defaultActionConfig,
|
|
contentTypeOptions,
|
|
httpMethodOptions,
|
|
type FetchOptions,
|
|
type InfinityOptions,
|
|
} from './types/action';
|
|
export { DataFrameType } from './types/dataFrameTypes';
|
|
export {
|
|
FieldType,
|
|
type FieldConfig,
|
|
type FieldTypeConfig,
|
|
type EnumFieldConfig,
|
|
type ValueLinkConfig,
|
|
type Field,
|
|
type FieldState,
|
|
type NumericRange,
|
|
type DataFrame,
|
|
type DataFrameWithValue,
|
|
type FieldDTO,
|
|
type DataFrameDTO,
|
|
type FieldCalcs,
|
|
TIME_SERIES_VALUE_FIELD_NAME,
|
|
TIME_SERIES_TIME_FIELD_NAME,
|
|
TIME_SERIES_METRIC_FIELD_NAME,
|
|
type DataFrameFieldIndex,
|
|
} from './types/dataFrame';
|
|
export {
|
|
type KeyValue,
|
|
LoadingState,
|
|
preferredVisualizationTypes,
|
|
type PreferredVisualisationType,
|
|
type QueryResultMeta,
|
|
type QueryResultMetaStat,
|
|
type QueryResultMetaNotice,
|
|
type QueryResultBase,
|
|
type Labels,
|
|
type Column,
|
|
type TableData,
|
|
type TimeSeriesValue,
|
|
type TimeSeriesPoints,
|
|
type TimeSeries,
|
|
NullValueMode,
|
|
type DataConfigSource,
|
|
isTruthy,
|
|
isObject,
|
|
} from './types/data';
|
|
export { GAUGE_DEFAULT_MINIMUM, GAUGE_DEFAULT_MAXIMUM, DEFAULT_SAML_NAME } from './types/constants';
|
|
|
|
// deprecated
|
|
export { CircularVector } from './vector/CircularVector';
|
|
export { vectorator } from './vector/FunctionalVector';
|
|
export { ArrayVector } from './vector/ArrayVector';
|
|
export { CircularDataFrame } from './dataframe/CircularDataFrame';
|
|
export {
|
|
type CurrentUser,
|
|
userHasPermission,
|
|
userHasPermissionInMetadata,
|
|
userHasAllPermissions,
|
|
userHasAnyPermission,
|
|
} from './rbac/rbac';
|
|
|
|
export { type UserStorage } from './types/userStorage';
|