mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Docs: remove checked-in generated package api docs. (#27880)
This commit is contained in:
parent
df28cc69b4
commit
31001a016c
@ -1,21 +1,6 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "API Reference"
|
||||
keywords = ["grafana","documentation","sdk"]
|
||||
type = "docs"
|
||||
# -------------------------------------------------------------------------
|
||||
# Do not add anything to this folder. The packages reference docs will be
|
||||
# automatically generated when syncing the rest of the docs to the website.
|
||||
# -------------------------------------------------------------------------
|
||||
+++
|
||||
|
||||
## API Reference
|
||||
|
||||
### Packages
|
||||
|
||||
| Package | Description |
|
||||
| --- | --- |
|
||||
| [@grafana/data](./data/) | A library containing most of the core functionality and data types used in Grafana. |
|
||||
| [@grafana/e2e](./e2e/) | A library for writing end-to-end tests for Grafana and its ecosystem. |
|
||||
| [@grafana/e2e-selectors](./e2e-selectors/) | A library containing the different design components of the Grafana ecosystem. |
|
||||
| [@grafana/runtime](./runtime/) | A library containing services, configurations etc. used to interact with the Grafana engine. |
|
||||
| [@grafana/ui](./ui/) | A library containing the different design components of the Grafana ecosystem. |
|
||||
|
||||
|
@ -1,477 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "@grafana/data"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## @grafana/data package
|
||||
|
||||
A library containing most of the core functionality and data types used in Grafana.
|
||||
|
||||
## Classes
|
||||
|
||||
| Class | Description |
|
||||
| --- | --- |
|
||||
| [AppendedVectors](./appendedvectors/) | This may be more trouble than it is worth. This trades some computation time for RAM -- rather than allocate a new array the size of all previous arrays, this just points the correct index to their original array values |
|
||||
| [AppPlugin](./appplugin/) | |
|
||||
| [ArrayVector](./arrayvector/) | |
|
||||
| [BinaryOperationVector](./binaryoperationvector/) | |
|
||||
| [CircularDataFrame](./circulardataframe/) | This dataframe can have values constantly added, and will never exceed the given capacity |
|
||||
| [CircularVector](./circularvector/) | Circular vector uses a single buffer to capture a stream of values overwriting the oldest value on add.<!-- -->This supports adding to the 'head' or 'tail' and will grow the buffer to match a configured capacity. |
|
||||
| [ConstantVector](./constantvector/) | |
|
||||
| [CSVReader](./csvreader/) | |
|
||||
| [DataFrameView](./dataframeview/) | <b><i>(BETA)</i></b> This abstraction will present the contents of a DataFrame as if it were a well typed javascript object Vector. |
|
||||
| [DataSourceApi](./datasourceapi/) | The main data source abstraction interface, represents an instance of a data source<!-- -->Although this is a class, datasource implementations do not \*yet\* need to extend it. As such, we can not yet add functions with default implementations. |
|
||||
| [DataSourcePlugin](./datasourceplugin/) | |
|
||||
| [FieldCache](./fieldcache/) | |
|
||||
| [FieldConfigEditorBuilder](./fieldconfigeditorbuilder/) | Fluent API for declarative creation of field config option editors |
|
||||
| [FieldConfigOptionsRegistry](./fieldconfigoptionsregistry/) | |
|
||||
| [FormattedVector](./formattedvector/) | |
|
||||
| [GrafanaPlugin](./grafanaplugin/) | |
|
||||
| [LanguageProvider](./languageprovider/) | |
|
||||
| [MutableDataFrame](./mutabledataframe/) | |
|
||||
| [PanelOptionsEditorBuilder](./paneloptionseditorbuilder/) | Fluent API for declarative creation of panel options |
|
||||
| [PanelPlugin](./panelplugin/) | |
|
||||
| [Registry](./registry/) | |
|
||||
| [SortedVector](./sortedvector/) | Values are returned in the order defined by the input parameter |
|
||||
|
||||
## Enumerations
|
||||
|
||||
| Enumeration | Description |
|
||||
| --- | --- |
|
||||
| [BinaryOperationID](./binaryoperationid/) | |
|
||||
| [ColorScheme](./colorscheme/) | |
|
||||
| [CoreApp](./coreapp/) | |
|
||||
| [CSVHeaderStyle](./csvheaderstyle/) | |
|
||||
| [DataSourceStatus](./datasourcestatus/) | |
|
||||
| [DataTransformerID](./datatransformerid/) | |
|
||||
| [ExploreMode](./exploremode/) | |
|
||||
| [FieldColorMode](./fieldcolormode/) | |
|
||||
| [FieldConfigProperty](./fieldconfigproperty/) | |
|
||||
| [FieldMatcherID](./fieldmatcherid/) | |
|
||||
| [FieldType](./fieldtype/) | |
|
||||
| [FrameMatcherID](./framematcherid/) | Field name matchers |
|
||||
| [GrafanaThemeType](./grafanathemetype/) | |
|
||||
| [InternalTimeZones](./internaltimezones/) | |
|
||||
| [LoadingState](./loadingstate/) | Represent panel data loading state. |
|
||||
| [LogLevel](./loglevel/) | Mapping of log level abbreviation to canonical log level. Supported levels are reduce to limit color variation. |
|
||||
| [LogsDedupDescription](./logsdedupdescription/) | |
|
||||
| [LogsDedupStrategy](./logsdedupstrategy/) | |
|
||||
| [LogsMetaKind](./logsmetakind/) | |
|
||||
| [MappingType](./mappingtype/) | |
|
||||
| [MatcherID](./matcherid/) | |
|
||||
| [NullValueMode](./nullvaluemode/) | |
|
||||
| [OrgRole](./orgrole/) | |
|
||||
| [PluginIncludeType](./pluginincludetype/) | |
|
||||
| [PluginSignatureStatus](./pluginsignaturestatus/) | |
|
||||
| [PluginState](./pluginstate/) | |
|
||||
| [PluginType](./plugintype/) | |
|
||||
| [ReducerID](./reducerid/) | |
|
||||
| [ThresholdsMode](./thresholdsmode/) | Display mode |
|
||||
| [VariableOrigin](./variableorigin/) | |
|
||||
| [VariableSuggestionsScope](./variablesuggestionsscope/) | |
|
||||
| [VizOrientation](./vizorientation/) | |
|
||||
|
||||
## Functions
|
||||
|
||||
| Function | Description |
|
||||
| --- | --- |
|
||||
| [addLogLevelToSeries(series, lineIndex)](./addlogleveltoseries/) | |
|
||||
| [applyFieldOverrides(options)](./applyfieldoverrides/) | Return a copy of the DataFrame with all rules applied |
|
||||
| [arrowTableToDataFrame(table)](./arrowtabletodataframe/) | |
|
||||
| [base64StringToArrowTable(text)](./base64stringtoarrowtable/) | |
|
||||
| [calculateFieldStats(rows, extractor)](./calculatefieldstats/) | |
|
||||
| [calculateLogsLabelStats(rows, label)](./calculatelogslabelstats/) | |
|
||||
| [calculateStats(values)](./calculatestats/) | |
|
||||
| [doStandardCalcs(field, ignoreNulls, nullAsZero)](./dostandardcalcs/) | |
|
||||
| [eventFactory(name)](./eventfactory/) | |
|
||||
| [findCommonLabels(labelsSets)](./findcommonlabels/) | Returns a map labels that are common to the given label sets. |
|
||||
| [findHighlightChunksInText({ searchWords, textToHighlight, })](./findhighlightchunksintext/) | Adapt findMatchesInText for react-highlight-words findChunks handler. See https://github.com/bvaughn/react-highlight-words\#props |
|
||||
| [findMatchesInText(haystack, needle)](./findmatchesintext/) | Returns a list of substring regexp matches. |
|
||||
| [findUniqueLabels(labels, commonLabels)](./finduniquelabels/) | Returns a map of labels that are in <code>labels</code>, but not in <code>commonLabels</code>. |
|
||||
| [formatLabels(labels, defaultValue)](./formatlabels/) | Serializes the given labels to a string. |
|
||||
| [formattedValueToString(val)](./formattedvaluetostring/) | |
|
||||
| [getActiveThreshold(value, thresholds)](./getactivethreshold/) | |
|
||||
| [getDataFrameRow(data, row)](./getdataframerow/) | Wrapper to get an array from each field value |
|
||||
| [getDecimalsForValue(value, decimalOverride)](./getdecimalsforvalue/) | |
|
||||
| [getDisplayProcessor(options)](./getdisplayprocessor/) | |
|
||||
| [getDisplayValueAlignmentFactors(values)](./getdisplayvaluealignmentfactors/) | |
|
||||
| [getFieldDisplayName(field, frame, allFrames)](./getfielddisplayname/) | |
|
||||
| [getFieldMatcher(config)](./getfieldmatcher/) | |
|
||||
| [getFlotPairs({ xField, yField, nullValueMode })](./getflotpairs/) | |
|
||||
| [getFlotPairsConstant(seriesData, range)](./getflotpairsconstant/) | Returns a constant series based on the first value from the provide series. |
|
||||
| [getFrameDisplayName(frame, index)](./getframedisplayname/) | Get an appropriate display title |
|
||||
| [getFrameMatchers(config)](./getframematchers/) | |
|
||||
| [getLogLevel(line)](./getloglevel/) | Returns the log level of a log line. Parse the line for level words. If no level is found, it returns <code>LogLevel.unknown</code>.<!-- -->Example: <code>getLogLevel('WARN 1999-12-31 this is great') // LogLevel.warn</code> |
|
||||
| [getLogLevelFromKey(key)](./getloglevelfromkey/) | |
|
||||
| [getParser(line)](./getparser/) | |
|
||||
| [getScaleCalculator(field, theme)](./getscalecalculator/) | |
|
||||
| [getValueFormat(id)](./getvalueformat/) | |
|
||||
| [getValueFormats()](./getvalueformats/) | |
|
||||
| [getValueFormatterIndex()](./getvalueformatterindex/) | |
|
||||
| [grafanaDataFrameToArrowTable(data, keepOriginalNames)](./grafanadataframetoarrowtable/) | |
|
||||
| [guessFieldTypeForField(field)](./guessfieldtypeforfield/) | Looks at the data to guess the column type. This ignores any existing setting |
|
||||
| [guessFieldTypeFromNameAndValue(name, v)](./guessfieldtypefromnameandvalue/) | Given a name and value, this will pick a reasonable field type |
|
||||
| [guessFieldTypeFromValue(v)](./guessfieldtypefromvalue/) | Given a value this will guess the best column type<!-- -->TODO: better Date/Time support! Look for standard date strings? |
|
||||
| [hasLinks(field)](./haslinks/) | |
|
||||
| [locale(value, decimals)](./locale/) | |
|
||||
| [parseFlags(text)](./parseflags/) | Converts any mode modifiers in the text to the Javascript equivalent flag |
|
||||
| [parseLabels(labels)](./parselabels/) | Returns a map of label keys to value from an input selector string.<!-- -->Example: <code>parseLabels('{job="foo", instance="bar"}) // {job: "foo", instance: "bar"}</code> |
|
||||
| [readCSV(csv, options)](./readcsv/) | |
|
||||
| [reduceField(options)](./reducefield/) | |
|
||||
| [renderMarkdown(str)](./rendermarkdown/) | |
|
||||
| [reverseDataFrame(data)](./reversedataframe/) | Returns a copy with all values reversed |
|
||||
| [scaledUnits(factor, extArray)](./scaledunits/) | |
|
||||
| [setMarkdownOptions(optionsOverride)](./setmarkdownoptions/) | |
|
||||
| [simpleCountUnit(symbol)](./simplecountunit/) | |
|
||||
| [sortDataFrame(data, sortIndex, reverse)](./sortdataframe/) | |
|
||||
| [sortThresholds(thresholds)](./sortthresholds/) | Sorts the thresholds |
|
||||
| [stringStartsAsRegEx(str)](./stringstartsasregex/) | |
|
||||
| [stringToJsRegex(str)](./stringtojsregex/) | |
|
||||
| [stringToMs(str)](./stringtoms/) | |
|
||||
| [toCSV(data, config)](./tocsv/) | |
|
||||
| [toDataFrame(data)](./todataframe/) | Inspect any object and return the results as a DataFrame |
|
||||
| [toDataFrameDTO(data)](./todataframedto/) | Returns a copy that does not include functions |
|
||||
| [toFixed(value, decimals)](./tofixed/) | |
|
||||
| [toFixedScaled(value, decimals, scaledDecimals, additionalDecimals, ext)](./tofixedscaled/) | |
|
||||
| [toFixedUnit(unit, asPrefix)](./tofixedunit/) | |
|
||||
| [toFloatOrUndefined(value)](./tofloatorundefined/) | |
|
||||
| [toIntegerOrUndefined(value)](./tointegerorundefined/) | |
|
||||
| [toNumberString(value)](./tonumberstring/) | |
|
||||
| [transformDataFrame(options, data)](./transformdataframe/) | Apply configured transformations to the input data |
|
||||
| [updateDatasourcePluginOption(props, key, val)](./updatedatasourcepluginoption/) | |
|
||||
| [validateFieldConfig(config)](./validatefieldconfig/) | This checks that all options on FieldConfig make sense. It mutates any value that needs fixed. In particular this makes sure that the first threshold value is -Infinity (not valid in JSON) |
|
||||
| [vectorator(vector)](./vectorator/) | Use functional programming with your vector |
|
||||
|
||||
## Interfaces
|
||||
|
||||
| Interface | Description |
|
||||
| --- | --- |
|
||||
| [AbsoluteTimeRange](./absolutetimerange/) | |
|
||||
| [AnnotationEvent](./annotationevent/) | |
|
||||
| [AnnotationQueryRequest](./annotationqueryrequest/) | Options passed to the datasource.annotationQuery method. See docs/plugins/developing/datasource.md |
|
||||
| [AppEvent](./appevent/) | |
|
||||
| [ApplyFieldOverrideOptions](./applyfieldoverrideoptions/) | |
|
||||
| [AppPluginMeta](./apppluginmeta/) | |
|
||||
| [AppRootProps](./approotprops/) | |
|
||||
| [ArrowDataFrame](./arrowdataframe/) | |
|
||||
| [BuildInfo](./buildinfo/) | Describes the build information that will be available via the Grafana configuration. |
|
||||
| [ColorFieldConfigSettings](./colorfieldconfigsettings/) | |
|
||||
| [Column](./column/) | |
|
||||
| [ConfigOverrideRule](./configoverriderule/) | |
|
||||
| [CreatePlotOverlay](./createplotoverlay/) | |
|
||||
| [CSVConfig](./csvconfig/) | |
|
||||
| [CSVOptions](./csvoptions/) | |
|
||||
| [CSVParseCallbacks](./csvparsecallbacks/) | |
|
||||
| [DataConfigSource](./dataconfigsource/) | Describes and API for exposing panel specific data configurations. |
|
||||
| [DataFrame](./dataframe/) | |
|
||||
| [DataFrameDTO](./dataframedto/) | Like a DataFrame, but fields may be a FieldDTO |
|
||||
| [DataLink](./datalink/) | Link configuration. The values may contain variables that need to be processed before showing the link to user.<!-- -->TODO: <<!-- -->T extends DataQuery<!-- -->> is not strictly true for internal links as we do not need refId for example but all data source defined queries extend this so this is more for documentation. |
|
||||
| [DataLinkClickEvent](./datalinkclickevent/) | Callback info for DataLink click events |
|
||||
| [DataLinksFieldConfigSettings](./datalinksfieldconfigsettings/) | |
|
||||
| [DataQuery](./dataquery/) | These are the common properties available to all queries in all datasources Specific implementations will extend this interface adding the required properties for the given context |
|
||||
| [DataQueryError](./dataqueryerror/) | |
|
||||
| [DataQueryRequest](./dataqueryrequest/) | |
|
||||
| [DataQueryResponse](./dataqueryresponse/) | |
|
||||
| [DataQueryTimings](./dataquerytimings/) | |
|
||||
| [DataSourceConstructor](./datasourceconstructor/) | |
|
||||
| [DataSourceInstanceSettings](./datasourceinstancesettings/) | Frontend settings model that is passed to Datasource constructor. This differs a bit from the model above as this data model is available to every user who has access to a data source (Viewers+). This is loaded in bootData (on page load), or from: /api/frontend/settings |
|
||||
| [DataSourceJsonData](./datasourcejsondata/) | |
|
||||
| [DataSourcePluginComponents](./datasourceplugincomponents/) | |
|
||||
| [DataSourcePluginMeta](./datasourcepluginmeta/) | |
|
||||
| [DataSourcePluginOptionsEditorProps](./datasourcepluginoptionseditorprops/) | |
|
||||
| [DataSourceSelectItem](./datasourceselectitem/) | |
|
||||
| [DataSourceSettings](./datasourcesettings/) | Data Source instance edit model. This is returned from: /api/datasources |
|
||||
| [DataTransformerConfig](./datatransformerconfig/) | |
|
||||
| [DataTransformerInfo](./datatransformerinfo/) | |
|
||||
| [DateTime](./datetime/) | |
|
||||
| [DateTimeBuiltinFormat](./datetimebuiltinformat/) | |
|
||||
| [DateTimeDuration](./datetimeduration/) | |
|
||||
| [DateTimeLocale](./datetimelocale/) | |
|
||||
| [DateTimeOptions](./datetimeoptions/) | The type describing date and time options. Used for all the helper functions available to parse or format date and time values. |
|
||||
| [DateTimeOptionsWhenParsing](./datetimeoptionswhenparsing/) | The type that describes options that can be passed when parsing a date and time value. |
|
||||
| [DateTimeOptionsWithFormat](./datetimeoptionswithformat/) | The type describing the options that can be passed to the [dateTimeFormat](./data/datetimeformat.md) helper function to control how the date and time value passed to the function is formatted. |
|
||||
| [DecimalInfo](./decimalinfo/) | |
|
||||
| [Dimension](./dimension/) | |
|
||||
| [DisplayValue](./displayvalue/) | |
|
||||
| [DisplayValueAlignmentFactors](./displayvaluealignmentfactors/) | These represents the display value with the longest title and text. Used to align widths and heights when displaying multiple DisplayValues |
|
||||
| [DynamicConfigValue](./dynamicconfigvalue/) | |
|
||||
| [ExploreQueryFieldProps](./explorequeryfieldprops/) | |
|
||||
| [ExploreStartPageProps](./explorestartpageprops/) | |
|
||||
| [FeatureToggles](./featuretoggles/) | Describes available feature toggles in Grafana. These can be configured via the <code>conf/custom.ini</code> to enable features under development or not yet available in stable version. |
|
||||
| [Field](./field/) | |
|
||||
| [FieldCalcs](./fieldcalcs/) | |
|
||||
| [FieldColor](./fieldcolor/) | |
|
||||
| [FieldConfig](./fieldconfig/) | Every property is optional<!-- -->Plugins may extend this with additional properties. Something like series overrides |
|
||||
| [FieldConfigEditorConfig](./fieldconfigeditorconfig/) | |
|
||||
| [FieldConfigEditorProps](./fieldconfigeditorprops/) | |
|
||||
| [FieldConfigPropertyItem](./fieldconfigpropertyitem/) | |
|
||||
| [FieldConfigSource](./fieldconfigsource/) | |
|
||||
| [FieldDisplay](./fielddisplay/) | |
|
||||
| [FieldDTO](./fielddto/) | Like a field, but properties are optional and values may be a simple array |
|
||||
| [FieldMatcherInfo](./fieldmatcherinfo/) | |
|
||||
| [FieldOverrideContext](./fieldoverridecontext/) | |
|
||||
| [FieldOverrideEditorProps](./fieldoverrideeditorprops/) | |
|
||||
| [FieldReducerInfo](./fieldreducerinfo/) | |
|
||||
| [FieldState](./fieldstate/) | |
|
||||
| [FieldWithIndex](./fieldwithindex/) | |
|
||||
| [FlotDataPoint](./flotdatapoint/) | |
|
||||
| [FormattedValue](./formattedvalue/) | |
|
||||
| [FrameMatcherInfo](./framematcherinfo/) | |
|
||||
| [GetFieldDisplayValuesOptions](./getfielddisplayvaluesoptions/) | |
|
||||
| [GrafanaConfig](./grafanaconfig/) | Describes all the different Grafana configuration values available for an instance. |
|
||||
| [GrafanaTheme](./grafanatheme/) | |
|
||||
| [GrafanaThemeCommons](./grafanathemecommons/) | |
|
||||
| [GraphSeriesXY](./graphseriesxy/) | View model projection of a series |
|
||||
| [GroupedTimeZones](./groupedtimezones/) | |
|
||||
| [HistoryItem](./historyitem/) | |
|
||||
| [IntervalValues](./intervalvalues/) | |
|
||||
| [Labels](./labels/) | |
|
||||
| [LicenseInfo](./licenseinfo/) | Describes the license information about the current running instance of Grafana. |
|
||||
| [LinkModel](./linkmodel/) | Processed Link Model. The values are ready to use |
|
||||
| [LinkModelSupplier](./linkmodelsupplier/) | Provides a way to produce links on demand<!-- -->TODO: ScopedVars in in GrafanaUI package! |
|
||||
| [LogLabelStatsModel](./loglabelstatsmodel/) | |
|
||||
| [LogRowModel](./logrowmodel/) | |
|
||||
| [LogSearchMatch](./logsearchmatch/) | |
|
||||
| [LogsMetaItem](./logsmetaitem/) | |
|
||||
| [LogsModel](./logsmodel/) | |
|
||||
| [LogsParser](./logsparser/) | |
|
||||
| [MatcherConfig](./matcherconfig/) | |
|
||||
| [MetadataInspectorProps](./metadatainspectorprops/) | |
|
||||
| [MetricFindValue](./metricfindvalue/) | |
|
||||
| [MutableVector](./mutablevector/) | Vector with standard manipulation functions |
|
||||
| [NavModel](./navmodel/) | Interface used to describe different kinds of page titles and page navigation. Navmodels are usually generated in the backend and stored in Redux. |
|
||||
| [NavModelBreadcrumb](./navmodelbreadcrumb/) | |
|
||||
| [NavModelItem](./navmodelitem/) | |
|
||||
| [NumberFieldConfigSettings](./numberfieldconfigsettings/) | |
|
||||
| [PanelData](./paneldata/) | |
|
||||
| [PanelEditorProps](./paneleditorprops/) | |
|
||||
| [PanelModel](./panelmodel/) | |
|
||||
| [PanelOptionsEditorConfig](./paneloptionseditorconfig/) | |
|
||||
| [PanelOptionsEditorItem](./paneloptionseditoritem/) | |
|
||||
| [PanelOptionsEditorProps](./paneloptionseditorprops/) | |
|
||||
| [PanelPluginMeta](./panelpluginmeta/) | |
|
||||
| [PanelProps](./panelprops/) | |
|
||||
| [PluginBuildInfo](./pluginbuildinfo/) | |
|
||||
| [PluginConfigPage](./pluginconfigpage/) | |
|
||||
| [PluginConfigPageProps](./pluginconfigpageprops/) | |
|
||||
| [PluginDependencies](./plugindependencies/) | |
|
||||
| [PluginInclude](./plugininclude/) | |
|
||||
| [PluginMeta](./pluginmeta/) | |
|
||||
| [PluginMetaInfo](./pluginmetainfo/) | |
|
||||
| [QueryEditorProps](./queryeditorprops/) | |
|
||||
| [QueryFix](./queryfix/) | |
|
||||
| [QueryFixAction](./queryfixaction/) | |
|
||||
| [QueryHint](./queryhint/) | |
|
||||
| [QueryResultBase](./queryresultbase/) | |
|
||||
| [QueryResultMeta](./queryresultmeta/) | |
|
||||
| [QueryResultMetaNotice](./queryresultmetanotice/) | QueryResultMetaNotice is a structure that provides user notices for query result data |
|
||||
| [QueryResultMetaStat](./queryresultmetastat/) | |
|
||||
| [RangeMap](./rangemap/) | |
|
||||
| [RawTimeRange](./rawtimerange/) | |
|
||||
| [ReadWriteVector](./readwritevector/) | Apache arrow vectors are Read/Write |
|
||||
| [ReduceDataOptions](./reducedataoptions/) | Options for how to turn DataFrames into an array of display values |
|
||||
| [RegexpOrNamesMatcherOptions](./regexpornamesmatcheroptions/) | |
|
||||
| [RegistryItem](./registryitem/) | |
|
||||
| [RegistryItemWithOptions](./registryitemwithoptions/) | |
|
||||
| [ScaledValue](./scaledvalue/) | |
|
||||
| [ScopedVar](./scopedvar/) | |
|
||||
| [ScopedVars](./scopedvars/) | |
|
||||
| [ScreenshotInfo](./screenshotinfo/) | |
|
||||
| [SelectableValue](./selectablevalue/) | Used in select elements |
|
||||
| [SelectFieldConfigSettings](./selectfieldconfigsettings/) | |
|
||||
| [StandardEditorContext](./standardeditorcontext/) | |
|
||||
| [StandardEditorProps](./standardeditorprops/) | |
|
||||
| [StandardEditorsRegistryItem](./standardeditorsregistryitem/) | |
|
||||
| [StringFieldConfigSettings](./stringfieldconfigsettings/) | |
|
||||
| [TableData](./tabledata/) | |
|
||||
| [TextMatch](./textmatch/) | |
|
||||
| [Threshold](./threshold/) | |
|
||||
| [ThresholdsConfig](./thresholdsconfig/) | Config that is passed to the ThresholdsEditor |
|
||||
| [ThresholdsFieldConfigSettings](./thresholdsfieldconfigsettings/) | |
|
||||
| [TimeOption](./timeoption/) | |
|
||||
| [TimeOptions](./timeoptions/) | |
|
||||
| [TimeRange](./timerange/) | |
|
||||
| [TimeSeries](./timeseries/) | |
|
||||
| [TimeZoneCountry](./timezonecountry/) | |
|
||||
| [TimeZoneInfo](./timezoneinfo/) | |
|
||||
| [TransformerRegistyItem](./transformerregistyitem/) | |
|
||||
| [TransformerUIProps](./transformeruiprops/) | |
|
||||
| [UnitFieldConfigSettings](./unitfieldconfigsettings/) | |
|
||||
| [UserOrgDTO](./userorgdto/) | |
|
||||
| [ValueFormat](./valueformat/) | |
|
||||
| [ValueFormatCategory](./valueformatcategory/) | |
|
||||
| [ValueLinkConfig](./valuelinkconfig/) | |
|
||||
| [ValueMap](./valuemap/) | |
|
||||
| [ValueMappingFieldConfigSettings](./valuemappingfieldconfigsettings/) | |
|
||||
| [VariableModel](./variablemodel/) | |
|
||||
| [VariableSuggestion](./variablesuggestion/) | |
|
||||
| [Vector](./vector/) | |
|
||||
| [YAxis](./yaxis/) | |
|
||||
|
||||
## Namespaces
|
||||
|
||||
| Namespace | Description |
|
||||
| --- | --- |
|
||||
| [AppEvents](./appevents/) | |
|
||||
| [dateMath](./datemath/) | |
|
||||
| [PanelEvents](./panelevents/) | |
|
||||
| [rangeUtil](./rangeutil/) | |
|
||||
|
||||
## Variables
|
||||
|
||||
| Variable | Description |
|
||||
| --- | --- |
|
||||
| [binaryOperators](./binaryoperators/) | |
|
||||
| [booleanOverrideProcessor](./booleanoverrideprocessor/) | |
|
||||
| [createDimension](./createdimension/) | |
|
||||
| [DataLinkBuiltInVars](./datalinkbuiltinvars/) | |
|
||||
| [dataLinksOverrideProcessor](./datalinksoverrideprocessor/) | |
|
||||
| [dateTime](./datetime/) | |
|
||||
| [dateTimeAsMoment](./datetimeasmoment/) | |
|
||||
| [dateTimeFormat](./datetimeformat/) | Helper function to format date and time according to the specified options. If no options are supplied, then default values are used. For more details, see [DateTimeOptionsWithFormat](./data/datetimeoptionswithformat.md)<!-- -->. |
|
||||
| [dateTimeFormatISO](./datetimeformatiso/) | Helper function to format date and time according to the standard ISO format e.g. 2013-02-04T22:44:30.652Z. If no options are supplied, then default values are used. For more details, see [DateTimeOptionsWithFormat](./data/datetimeoptionswithformat.md)<!-- -->. |
|
||||
| [dateTimeFormatTimeAgo](./datetimeformattimeago/) | Helper function to return elapsed time since passed date. The returned value will be formatted in a human readable format e.g. 4 years ago. If no options are supplied, then default values are used. For more details, see [DateTimeOptions](./data/datetimeoptions.md)<!-- -->. |
|
||||
| [dateTimeFormatWithAbbrevation](./datetimeformatwithabbrevation/) | Helper function to format date and time according to the Grafana default formatting, but it also appends the time zone abbreviation at the end e.g. 2020-05-20 13:37:00 CET. If no options are supplied, then default values are used. For more details please see [DateTimeOptions](./data/datetimeoptions.md)<!-- -->. |
|
||||
| [dateTimeForTimeZone](./datetimefortimezone/) | |
|
||||
| [dateTimeParse](./datetimeparse/) | Helper function to parse a number, text or Date to a DateTime value. If a timeZone is supplied the incoming value is parsed with that timeZone as a base. The only exception to this is if the passed value is in a UTC-based format. Then it will use UTC as the base. Examples on UTC-based values are Unix epoch and ISO formatted strings.<!-- -->It can also parse the Grafana quick date and time format, e.g. now-6h will be parsed as Date.now() - 6 hours and returned as a valid DateTime value.<!-- -->If no options are supplied, then default values are used. For more details please see [DateTimeOptions](./data/datetimeoptions.md)<!-- -->. |
|
||||
| [DEFAULT\_DATE\_TIME\_FORMAT](./default_date_time_format/) | |
|
||||
| [DEFAULT\_FIELD\_DISPLAY\_VALUES\_LIMIT](./default_field_display_values_limit/) | |
|
||||
| [DefaultTimeRange](./defaulttimerange/) | |
|
||||
| [DefaultTimeZone](./defaulttimezone/) | |
|
||||
| [deprecationWarning](./deprecationwarning/) | |
|
||||
| [escapeStringForRegex](./escapestringforregex/) | |
|
||||
| [fieldMatchers](./fieldmatchers/) | |
|
||||
| [fieldReducers](./fieldreducers/) | |
|
||||
| [frameMatchers](./framematchers/) | |
|
||||
| [getAllValuesFromDimension](./getallvaluesfromdimension/) | |
|
||||
| [getColorByName](./getcolorbyname/) | |
|
||||
| [getColorDefinition](./getcolordefinition/) | |
|
||||
| [getColorDefinitionByName](./getcolordefinitionbyname/) | |
|
||||
| [getColorForTheme](./getcolorfortheme/) | |
|
||||
| [getColorFromHexRgbOrName](./getcolorfromhexrgborname/) | |
|
||||
| [getColorName](./getcolorname/) | |
|
||||
| [getColumnFromDimension](./getcolumnfromdimension/) | |
|
||||
| [getColumnsFromDimension](./getcolumnsfromdimension/) | |
|
||||
| [getDimensionByName](./getdimensionbyname/) | |
|
||||
| [getFieldDisplayValues](./getfielddisplayvalues/) | |
|
||||
| [getLocaleData](./getlocaledata/) | |
|
||||
| [getMappedValue](./getmappedvalue/) | |
|
||||
| [getNamedColorPalette](./getnamedcolorpalette/) | |
|
||||
| [getSeriesTimeStep](./getseriestimestep/) | Returns minimal time step from series time field |
|
||||
| [getTimeField](./gettimefield/) | |
|
||||
| [getTimeZoneGroups](./gettimezonegroups/) | |
|
||||
| [getTimeZoneInfo](./gettimezoneinfo/) | |
|
||||
| [getTimeZones](./gettimezones/) | |
|
||||
| [getValueFromDimension](./getvaluefromdimension/) | |
|
||||
| [guessFieldTypes](./guessfieldtypes/) | |
|
||||
| [hasMsResolution](./hasmsresolution/) | Checks if series time field has ms resolution |
|
||||
| [identityOverrideProcessor](./identityoverrideprocessor/) | |
|
||||
| [isDataFrame](./isdataframe/) | |
|
||||
| [isDateTime](./isdatetime/) | |
|
||||
| [ISO\_8601](./iso_8601/) | |
|
||||
| [isTableData](./istabledata/) | |
|
||||
| [locationUtil](./locationutil/) | |
|
||||
| [LogsParsers](./logsparsers/) | |
|
||||
| [MISSING\_VALUE](./missing_value/) | |
|
||||
| [MS\_DATE\_TIME\_FORMAT](./ms_date_time_format/) | |
|
||||
| [numberOverrideProcessor](./numberoverrideprocessor/) | |
|
||||
| [objRemoveUndefined](./objremoveundefined/) | |
|
||||
| [onUpdateDatasourceJsonDataOption](./onupdatedatasourcejsondataoption/) | |
|
||||
| [onUpdateDatasourceJsonDataOptionChecked](./onupdatedatasourcejsondataoptionchecked/) | |
|
||||
| [onUpdateDatasourceJsonDataOptionSelect](./onupdatedatasourcejsondataoptionselect/) | |
|
||||
| [onUpdateDatasourceOption](./onupdatedatasourceoption/) | |
|
||||
| [onUpdateDatasourceResetOption](./onupdatedatasourceresetoption/) | |
|
||||
| [onUpdateDatasourceSecureJsonDataOption](./onupdatedatasourcesecurejsondataoption/) | |
|
||||
| [onUpdateDatasourceSecureJsonDataOptionSelect](./onupdatedatasourcesecurejsondataoptionselect/) | |
|
||||
| [selectOverrideProcessor](./selectoverrideprocessor/) | |
|
||||
| [setLocale](./setlocale/) | |
|
||||
| [standardEditorsRegistry](./standardeditorsregistry/) | |
|
||||
| [standardFieldConfigEditorRegistry](./standardfieldconfigeditorregistry/) | |
|
||||
| [standardTransformers](./standardtransformers/) | |
|
||||
| [standardTransformersRegistry](./standardtransformersregistry/) | Registry of transformation options that can be driven by stored configuration files. |
|
||||
| [stringOverrideProcessor](./stringoverrideprocessor/) | |
|
||||
| [textUtil](./textutil/) | |
|
||||
| [thresholdsOverrideProcessor](./thresholdsoverrideprocessor/) | |
|
||||
| [TIME\_FORMAT](./time_format/) | |
|
||||
| [TIME\_SERIES\_TIME\_FIELD\_NAME](./time_series_time_field_name/) | |
|
||||
| [TIME\_SERIES\_VALUE\_FIELD\_NAME](./time_series_value_field_name/) | |
|
||||
| [timeZoneAbbrevation](./timezoneabbrevation/) | Helper function to return only the time zone abbreviation for a given date and time value. If no options are supplied, then default values are used. For more details please see [DateTimeOptions](./data/datetimeoptions.md)<!-- -->. |
|
||||
| [timeZoneFormatUserFriendly](./timezoneformatuserfriendly/) | |
|
||||
| [toDuration](./toduration/) | |
|
||||
| [toLegacyResponseData](./tolegacyresponsedata/) | |
|
||||
| [toPascalCase](./topascalcase/) | |
|
||||
| [toUtc](./toutc/) | |
|
||||
| [unEscapeStringFromRegex](./unescapestringfromregex/) | |
|
||||
| [unitOverrideProcessor](./unitoverrideprocessor/) | |
|
||||
| [updateDatasourcePluginJsonDataOption](./updatedatasourcepluginjsondataoption/) | |
|
||||
| [updateDatasourcePluginResetOption](./updatedatasourcepluginresetoption/) | |
|
||||
| [updateDatasourcePluginSecureJsonDataOption](./updatedatasourcepluginsecurejsondataoption/) | |
|
||||
| [urlUtil](./urlutil/) | |
|
||||
| [valueMappingsOverrideProcessor](./valuemappingsoverrideprocessor/) | |
|
||||
| [VAR\_CALC](./var_calc/) | |
|
||||
| [VAR\_CELL\_PREFIX](./var_cell_prefix/) | |
|
||||
| [VAR\_FIELD\_LABELS](./var_field_labels/) | |
|
||||
| [VAR\_FIELD\_NAME](./var_field_name/) | |
|
||||
| [VAR\_SERIES\_NAME](./var_series_name/) | |
|
||||
|
||||
## Type Aliases
|
||||
|
||||
| Type Alias | Description |
|
||||
| --- | --- |
|
||||
| [BinaryOperation](./binaryoperation/) | |
|
||||
| [Color](./color/) | |
|
||||
| [ColorDefinition](./colordefinition/) | |
|
||||
| [DataQueryResponseData](./dataqueryresponsedata/) | |
|
||||
| [DataSourceOptionsType](./datasourceoptionstype/) | |
|
||||
| [DataSourceQueryType](./datasourcequerytype/) | |
|
||||
| [DataTransformer](./datatransformer/) | Function that transform data frames (AKA transformer) |
|
||||
| [DateTimeInput](./datetimeinput/) | |
|
||||
| [DecimalCount](./decimalcount/) | |
|
||||
| [Dimensions](./dimensions/) | |
|
||||
| [DisplayProcessor](./displayprocessor/) | |
|
||||
| [DurationInput](./durationinput/) | |
|
||||
| [DurationUnit](./durationunit/) | |
|
||||
| [FieldMatcher](./fieldmatcher/) | |
|
||||
| [FormatInput](./formatinput/) | |
|
||||
| [FrameMatcher](./framematcher/) | |
|
||||
| [GraphSeriesValue](./graphseriesvalue/) | |
|
||||
| [InterpolateFunction](./interpolatefunction/) | |
|
||||
| [KeyValue](./keyvalue/) | |
|
||||
| [LegacyResponseData](./legacyresponsedata/) | Starting in v6.2 DataFrame can represent both TimeSeries and TableData |
|
||||
| [LinkTarget](./linktarget/) | |
|
||||
| [MutableField](./mutablefield/) | |
|
||||
| [NavIndex](./navindex/) | |
|
||||
| [Omit\_2](./omit_2/) | |
|
||||
| [PanelMigrationHandler](./panelmigrationhandler/) | Called when a panel is first loaded with current panel model |
|
||||
| [PanelOptionEditorsRegistry](./paneloptioneditorsregistry/) | |
|
||||
| [PanelTypeChangedHandler](./paneltypechangedhandler/) | Called before a panel is initialized. Allows panel inspection for any updates before changing the panel type. |
|
||||
| [PreferredVisualisationType](./preferredvisualisationtype/) | |
|
||||
| [ScaleCalculator](./scalecalculator/) | |
|
||||
| [Subtract](./subtract/) | |
|
||||
| [TimeFragment](./timefragment/) | |
|
||||
| [TimeSeriesPoints](./timeseriespoints/) | |
|
||||
| [TimeSeriesValue](./timeseriesvalue/) | |
|
||||
| [TimeZone](./timezone/) | |
|
||||
| [TimeZoneBrowser](./timezonebrowser/) | |
|
||||
| [TimeZoneResolver](./timezoneresolver/) | The type to describe the time zone resolver function that will be used to access the default time zone of a user. |
|
||||
| [TimeZoneUtc](./timezoneutc/) | |
|
||||
| [Trace](./trace/) | |
|
||||
| [TraceData](./tracedata/) | |
|
||||
| [TraceKeyValuePair](./tracekeyvaluepair/) | All timestamps are in microseconds |
|
||||
| [TraceLink](./tracelink/) | |
|
||||
| [TraceLog](./tracelog/) | |
|
||||
| [TraceProcess](./traceprocess/) | |
|
||||
| [TraceSpan](./tracespan/) | |
|
||||
| [TraceSpanData](./tracespandata/) | |
|
||||
| [TraceSpanReference](./tracespanreference/) | |
|
||||
| [UrlQueryMap](./urlquerymap/) | Type to represent the values parsed from the query string. |
|
||||
| [UrlQueryValue](./urlqueryvalue/) | Type to represent the value of a single query variable. |
|
||||
| [ValueConverter](./valueconverter/) | |
|
||||
| [ValueFormatter](./valueformatter/) | |
|
||||
| [ValueMapping](./valuemapping/) | |
|
||||
| [VariableType](./variabletype/) | |
|
||||
|
@ -1,43 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "AbsoluteTimeRange"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AbsoluteTimeRange interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface AbsoluteTimeRange
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AbsoluteTimeRange } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [from](#from-property) | <code>number</code> | |
|
||||
| [to](#to-property) | <code>number</code> | |
|
||||
|
||||
### from property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
from: number;
|
||||
```
|
||||
|
||||
### to property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
to: number;
|
||||
```
|
@ -1,34 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "addLogLevelToSeries"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## addLogLevelToSeries() function
|
||||
|
||||
### addLogLevelToSeries() function
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare function addLogLevelToSeries(series: DataFrame, lineIndex: number): DataFrame;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { addLogLevelToSeries } from '@grafana/data';
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| series | <code>DataFrame</code> | |
|
||||
| lineIndex | <code>number</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`DataFrame`
|
||||
|
@ -1,169 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "AnnotationEvent"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AnnotationEvent interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface AnnotationEvent
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AnnotationEvent } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [annotation](#annotation-property) | <code>any</code> | |
|
||||
| [avatarUrl](#avatarurl-property) | <code>string</code> | |
|
||||
| [dashboardId](#dashboardid-property) | <code>number</code> | |
|
||||
| [email](#email-property) | <code>string</code> | |
|
||||
| [id](#id-property) | <code>string</code> | |
|
||||
| [isRegion](#isregion-property) | <code>boolean</code> | |
|
||||
| [login](#login-property) | <code>string</code> | |
|
||||
| [panelId](#panelid-property) | <code>number</code> | |
|
||||
| [source](#source-property) | <code>any</code> | |
|
||||
| [tags](#tags-property) | <code>string[]</code> | |
|
||||
| [text](#text-property) | <code>string</code> | |
|
||||
| [time](#time-property) | <code>number</code> | |
|
||||
| [timeEnd](#timeend-property) | <code>number</code> | |
|
||||
| [title](#title-property) | <code>string</code> | |
|
||||
| [type](#type-property) | <code>string</code> | |
|
||||
| [userId](#userid-property) | <code>number</code> | |
|
||||
|
||||
### annotation property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
annotation?: any;
|
||||
```
|
||||
|
||||
### avatarUrl property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
avatarUrl?: string;
|
||||
```
|
||||
|
||||
### dashboardId property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
dashboardId?: number;
|
||||
```
|
||||
|
||||
### email property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
email?: string;
|
||||
```
|
||||
|
||||
### id property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
id?: string;
|
||||
```
|
||||
|
||||
### isRegion property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
isRegion?: boolean;
|
||||
```
|
||||
|
||||
### login property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
login?: string;
|
||||
```
|
||||
|
||||
### panelId property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
panelId?: number;
|
||||
```
|
||||
|
||||
### source property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
source?: any;
|
||||
```
|
||||
|
||||
### tags property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
tags?: string[];
|
||||
```
|
||||
|
||||
### text property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
text?: string;
|
||||
```
|
||||
|
||||
### time property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
time?: number;
|
||||
```
|
||||
|
||||
### timeEnd property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
timeEnd?: number;
|
||||
```
|
||||
|
||||
### title property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
title?: string;
|
||||
```
|
||||
|
||||
### type property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
type?: string;
|
||||
```
|
||||
|
||||
### userId property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
userId?: number;
|
||||
```
|
@ -1,67 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "AnnotationQueryRequest"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AnnotationQueryRequest interface
|
||||
|
||||
Options passed to the datasource.annotationQuery method. See docs/plugins/developing/datasource.md
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface AnnotationQueryRequest<MoreOptions = {}>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AnnotationQueryRequest } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [annotation](#annotation-property) | <code>{</code><br/><code> datasource: string;</code><br/><code> enable: boolean;</code><br/><code> name: string;</code><br/><code> } & MoreOptions</code> | |
|
||||
| [dashboard](#dashboard-property) | <code>any</code> | |
|
||||
| [range](#range-property) | <code>TimeRange</code> | |
|
||||
| [rangeRaw](#rangeraw-property) | <code>RawTimeRange</code> | |
|
||||
|
||||
### annotation property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
annotation: {
|
||||
datasource: string;
|
||||
enable: boolean;
|
||||
name: string;
|
||||
} & MoreOptions;
|
||||
```
|
||||
|
||||
### dashboard property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
dashboard: any;
|
||||
```
|
||||
|
||||
### range property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
range: TimeRange;
|
||||
```
|
||||
|
||||
### rangeRaw property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
rangeRaw: RawTimeRange;
|
||||
```
|
@ -1,152 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "AppendedVectors"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AppendedVectors class
|
||||
|
||||
This may be more trouble than it is worth. This trades some computation time for RAM -- rather than allocate a new array the size of all previous arrays, this just points the correct index to their original array values
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare class AppendedVectors<T = any> implements Vector<T>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AppendedVectors } from '@grafana/data';
|
||||
```
|
||||
<b>Constructors</b>
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [constructor(startAt)](#constructor-startat) | | Constructs a new instance of the <code>AppendedVectors</code> class |
|
||||
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [length](#length-property) | | <code>number</code> | |
|
||||
| [source](#source-property) | | <code>Array<AppendedVectorInfo<T>></code> | |
|
||||
|
||||
<b>Methods</b>
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [append(v)](#append-method) | | |
|
||||
| [get(index)](#get-method) | | |
|
||||
| [setLength(length)](#setlength-method) | | Make the vector look like it is this long |
|
||||
| [toArray()](#toarray-method) | | |
|
||||
| [toJSON()](#tojson-method) | | |
|
||||
|
||||
### constructor(startAt)
|
||||
|
||||
Constructs a new instance of the `AppendedVectors` class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
constructor(startAt?: number);
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| startAt | <code>number</code> | |
|
||||
|
||||
### length property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
length: number;
|
||||
```
|
||||
|
||||
### source property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
source: Array<AppendedVectorInfo<T>>;
|
||||
```
|
||||
|
||||
### append method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
append(v: Vector<T>): AppendedVectorInfo<T>;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| v | <code>Vector<T></code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`AppendedVectorInfo<T>`
|
||||
|
||||
### get method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
get(index: number): T;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| index | <code>number</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`T`
|
||||
|
||||
### setLength method
|
||||
|
||||
Make the vector look like it is this long
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setLength(length: number): void;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| length | <code>number</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`void`
|
||||
|
||||
### toArray method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
toArray(): T[];
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`T[]`
|
||||
|
||||
### toJSON method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
toJSON(): T[];
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`T[]`
|
||||
|
@ -1,43 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "AppEvent"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AppEvent interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface AppEvent<T>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AppEvent } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [name](#name-property) | <code>string</code> | |
|
||||
| [payload](#payload-property) | <code>T</code> | |
|
||||
|
||||
### name property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
readonly name: string;
|
||||
```
|
||||
|
||||
### payload property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
payload?: T;
|
||||
```
|
@ -1,43 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "AppEvents"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AppEvents namespace
|
||||
|
||||
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
||||
>
|
||||
|
||||
### AppEvents namespace
|
||||
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AppEvents } from '@grafana/data';
|
||||
```
|
||||
|
||||
## Interfaces
|
||||
|
||||
| Interface | Description |
|
||||
| --- | --- |
|
||||
| [AppEvent](./appevent/) | |
|
||||
|
||||
## Variables
|
||||
|
||||
| Variable | Description |
|
||||
| --- | --- |
|
||||
| [alertError](./alerterror/) | |
|
||||
| [alertSuccess](./alertsuccess/) | |
|
||||
| [alertWarning](./alertwarning/) | |
|
||||
|
||||
## Type Aliases
|
||||
|
||||
| Type Alias | Description |
|
||||
| --- | --- |
|
||||
| [AlertErrorPayload](./alerterrorpayload/) | |
|
||||
| [AlertPayload](./alertpayload/) | |
|
||||
|
@ -1,24 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "alertError"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AppEvents.alertError variable
|
||||
|
||||
### AppEvents.alertError variable
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
alertError: AppEvent<AlertErrorPayload>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AppEvents } from '@grafana/data';
|
||||
const { alertError } = AppEvents;
|
||||
```
|
@ -1,24 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "AlertErrorPayload"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AppEvents.AlertErrorPayload type
|
||||
|
||||
### AppEvents.AlertErrorPayload type
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare type AlertErrorPayload = [string, (string | Error)?];
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AppEvents } from '@grafana/data';
|
||||
const { AlertErrorPayload } = AppEvents;
|
||||
```
|
@ -1,24 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "AlertPayload"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AppEvents.AlertPayload type
|
||||
|
||||
### AppEvents.AlertPayload type
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare type AlertPayload = [string, string?];
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AppEvents } from '@grafana/data';
|
||||
const { AlertPayload } = AppEvents;
|
||||
```
|
@ -1,24 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "alertSuccess"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AppEvents.alertSuccess variable
|
||||
|
||||
### AppEvents.alertSuccess variable
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
alertSuccess: AppEvent<AlertPayload>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AppEvents } from '@grafana/data';
|
||||
const { alertSuccess } = AppEvents;
|
||||
```
|
@ -1,24 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "alertWarning"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AppEvents.alertWarning variable
|
||||
|
||||
### AppEvents.alertWarning variable
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
alertWarning: AppEvent<AlertPayload>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AppEvents } from '@grafana/data';
|
||||
const { alertWarning } = AppEvents;
|
||||
```
|
@ -1,44 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "AppEvent"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AppEvents.AppEvent interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface AppEvent<T>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AppEvents } from '@grafana/data';
|
||||
const { AppEvent } = AppEvents;
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [name](#name-property) | <code>string</code> | |
|
||||
| [payload](#payload-property) | <code>T</code> | |
|
||||
|
||||
### name property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
readonly name: string;
|
||||
```
|
||||
|
||||
### payload property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
payload?: T;
|
||||
```
|
@ -1,97 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "ApplyFieldOverrideOptions"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## ApplyFieldOverrideOptions interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface ApplyFieldOverrideOptions
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { ApplyFieldOverrideOptions } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [autoMinMax](#autominmax-property) | <code>boolean</code> | |
|
||||
| [data](#data-property) | <code>DataFrame[]</code> | |
|
||||
| [fieldConfig](#fieldconfig-property) | <code>FieldConfigSource</code> | |
|
||||
| [fieldConfigRegistry](#fieldconfigregistry-property) | <code>FieldConfigOptionsRegistry</code> | |
|
||||
| [getDataSourceSettingsByUid](#getdatasourcesettingsbyuid-property) | <code>(uid: string) => DataSourceInstanceSettings | undefined</code> | |
|
||||
| [replaceVariables](#replacevariables-property) | <code>InterpolateFunction</code> | |
|
||||
| [theme](#theme-property) | <code>GrafanaTheme</code> | |
|
||||
| [timeZone](#timezone-property) | <code>TimeZone</code> | |
|
||||
|
||||
### autoMinMax property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
autoMinMax?: boolean;
|
||||
```
|
||||
|
||||
### data property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
data?: DataFrame[];
|
||||
```
|
||||
|
||||
### fieldConfig property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
fieldConfig: FieldConfigSource;
|
||||
```
|
||||
|
||||
### fieldConfigRegistry property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
fieldConfigRegistry?: FieldConfigOptionsRegistry;
|
||||
```
|
||||
|
||||
### getDataSourceSettingsByUid property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
getDataSourceSettingsByUid: (uid: string) => DataSourceInstanceSettings | undefined;
|
||||
```
|
||||
|
||||
### replaceVariables property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
replaceVariables: InterpolateFunction;
|
||||
```
|
||||
|
||||
### theme property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
theme: GrafanaTheme;
|
||||
```
|
||||
|
||||
### timeZone property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
timeZone?: TimeZone;
|
||||
```
|
@ -1,35 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "applyFieldOverrides"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## applyFieldOverrides() function
|
||||
|
||||
### applyFieldOverrides() function
|
||||
|
||||
Return a copy of the DataFrame with all rules applied
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare function applyFieldOverrides(options: ApplyFieldOverrideOptions): DataFrame[];
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { applyFieldOverrides } from '@grafana/data';
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| options | <code>ApplyFieldOverrideOptions</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`DataFrame[]`
|
||||
|
@ -1,119 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "AppPlugin"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AppPlugin class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare class AppPlugin<T = KeyValue> extends GrafanaPlugin<AppPluginMeta<T>>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AppPlugin } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [angularPages](#angularpages-property) | | <code>{</code><br/><code> [component: string]: any;</code><br/><code> }</code> | |
|
||||
| [root](#root-property) | | <code>ComponentClass<AppRootProps<T>></code> | |
|
||||
| [rootNav](#rootnav-property) | | <code>NavModel</code> | |
|
||||
|
||||
<b>Methods</b>
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [init(meta)](#init-method) | | Called after the module has loaded, and before the app is used. This function may be called multiple times on the same instance. The first time, <code>this.meta</code> will be undefined |
|
||||
| [setComponentsFromLegacyExports(pluginExports)](#setcomponentsfromlegacyexports-method) | | |
|
||||
| [setRootPage(root, rootNav)](#setrootpage-method) | | Set the component displayed under: /a/$<!-- -->{<!-- -->plugin-id<!-- -->}<!-- -->/\* |
|
||||
|
||||
### angularPages property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
angularPages?: {
|
||||
[component: string]: any;
|
||||
};
|
||||
```
|
||||
|
||||
### root property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
root?: ComponentClass<AppRootProps<T>>;
|
||||
```
|
||||
|
||||
### rootNav property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
rootNav?: NavModel;
|
||||
```
|
||||
|
||||
### init method
|
||||
|
||||
Called after the module has loaded, and before the app is used. This function may be called multiple times on the same instance. The first time, `this.meta` will be undefined
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
init(meta: AppPluginMeta): void;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| meta | <code>AppPluginMeta</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`void`
|
||||
|
||||
### setComponentsFromLegacyExports method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setComponentsFromLegacyExports(pluginExports: any): void;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| pluginExports | <code>any</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`void`
|
||||
|
||||
### setRootPage method
|
||||
|
||||
Set the component displayed under: /a/$<!-- -->{<!-- -->plugin-id<!-- -->}<!-- -->/\*
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setRootPage(root: ComponentClass<AppRootProps<T>>, rootNav?: NavModel): this;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| root | <code>ComponentClass<AppRootProps<T>></code> | |
|
||||
| rootNav | <code>NavModel</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`this`
|
||||
|
@ -1,21 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "AppPluginMeta"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AppPluginMeta interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface AppPluginMeta<T = KeyValue> extends PluginMeta<T>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AppPluginMeta } from '@grafana/data';
|
||||
```
|
@ -1,63 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "AppRootProps"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## AppRootProps interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface AppRootProps<T = KeyValue>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { AppRootProps } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [meta](#meta-property) | <code>AppPluginMeta<T></code> | |
|
||||
| [onNavChanged](#onnavchanged-property) | <code>(nav: NavModel) => void</code> | Pass the nav model to the container... is there a better way? |
|
||||
| [path](#path-property) | <code>string</code> | |
|
||||
| [query](#query-property) | <code>KeyValue</code> | |
|
||||
|
||||
### meta property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
meta: AppPluginMeta<T>;
|
||||
```
|
||||
|
||||
### onNavChanged property
|
||||
|
||||
Pass the nav model to the container... is there a better way?
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
onNavChanged: (nav: NavModel) => void;
|
||||
```
|
||||
|
||||
### path property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
path: string;
|
||||
```
|
||||
|
||||
### query property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
query: KeyValue;
|
||||
```
|
@ -1,161 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "ArrayVector"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## ArrayVector class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare class ArrayVector<T = any> extends FunctionalVector<T> implements MutableVector<T>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { ArrayVector } from '@grafana/data';
|
||||
```
|
||||
<b>Constructors</b>
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [constructor(buffer)](#constructor-buffer) | | Constructs a new instance of the <code>ArrayVector</code> class |
|
||||
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [buffer](#buffer-property) | | <code>T[]</code> | |
|
||||
| [length](#length-property) | | <code>number</code> | |
|
||||
|
||||
<b>Methods</b>
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [add(value)](#add-method) | | |
|
||||
| [get(index)](#get-method) | | |
|
||||
| [reverse()](#reverse-method) | | |
|
||||
| [set(index, value)](#set-method) | | |
|
||||
| [toArray()](#toarray-method) | | |
|
||||
| [toJSON()](#tojson-method) | | |
|
||||
|
||||
### constructor(buffer)
|
||||
|
||||
Constructs a new instance of the `ArrayVector` class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
constructor(buffer?: T[]);
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| buffer | <code>T[]</code> | |
|
||||
|
||||
### buffer property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
buffer: T[];
|
||||
```
|
||||
|
||||
### length property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
get length(): number;
|
||||
```
|
||||
|
||||
### add method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
add(value: T): void;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| value | <code>T</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`void`
|
||||
|
||||
### get method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
get(index: number): T;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| index | <code>number</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`T`
|
||||
|
||||
### reverse method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
reverse(): void;
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`void`
|
||||
|
||||
### set method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
set(index: number, value: T): void;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| index | <code>number</code> | |
|
||||
| value | <code>T</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`void`
|
||||
|
||||
### toArray method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
toArray(): T[];
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`T[]`
|
||||
|
||||
### toJSON method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
toJSON(): T[];
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`T[]`
|
||||
|
@ -1,34 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "ArrowDataFrame"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## ArrowDataFrame interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface ArrowDataFrame extends DataFrame
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { ArrowDataFrame } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [table](#table-property) | <code>Table</code> | |
|
||||
|
||||
### table property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
table: Table;
|
||||
```
|
@ -1,33 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "arrowTableToDataFrame"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## arrowTableToDataFrame() function
|
||||
|
||||
### arrowTableToDataFrame() function
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare function arrowTableToDataFrame(table: Table): ArrowDataFrame;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { arrowTableToDataFrame } from '@grafana/data';
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| table | <code>Table</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`ArrowDataFrame`
|
||||
|
@ -1,33 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "base64StringToArrowTable"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## base64StringToArrowTable() function
|
||||
|
||||
### base64StringToArrowTable() function
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare function base64StringToArrowTable(text: string): Table;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { base64StringToArrowTable } from '@grafana/data';
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| text | <code>string</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`Table`
|
||||
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "BinaryOperation"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## BinaryOperation type
|
||||
|
||||
### BinaryOperation type
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare type BinaryOperation = (left: number, right: number) => number;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { BinaryOperation } from '@grafana/data';
|
||||
```
|
@ -1,33 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "BinaryOperationID"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## BinaryOperationID enum
|
||||
|
||||
### BinaryOperationID enum
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare enum BinaryOperationID
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { BinaryOperationID } from '@grafana/data';
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| Add | <code>"+"</code> | |
|
||||
| Divide | <code>"/"</code> | |
|
||||
| Multiply | <code>"*"</code> | |
|
||||
| Subtract | <code>"-"</code> | |
|
||||
|
@ -1,105 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "BinaryOperationVector"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## BinaryOperationVector class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare class BinaryOperationVector implements Vector<number>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { BinaryOperationVector } from '@grafana/data';
|
||||
```
|
||||
<b>Constructors</b>
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [constructor(left, right, operation)](#constructor-leftrightoperation) | | Constructs a new instance of the <code>BinaryOperationVector</code> class |
|
||||
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [length](#length-property) | | <code>number</code> | |
|
||||
|
||||
<b>Methods</b>
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [get(index)](#get-method) | | |
|
||||
| [toArray()](#toarray-method) | | |
|
||||
| [toJSON()](#tojson-method) | | |
|
||||
|
||||
### constructor(left, right, operation)
|
||||
|
||||
Constructs a new instance of the `BinaryOperationVector` class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
constructor(left: Vector<number>, right: Vector<number>, operation: BinaryOperation);
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| left | <code>Vector<number></code> | |
|
||||
| right | <code>Vector<number></code> | |
|
||||
| operation | <code>BinaryOperation</code> | |
|
||||
|
||||
### length property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
get length(): number;
|
||||
```
|
||||
|
||||
### get method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
get(index: number): number;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| index | <code>number</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`number`
|
||||
|
||||
### toArray method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
toArray(): number[];
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`number[]`
|
||||
|
||||
### toJSON method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
toJSON(): number[];
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`number[]`
|
||||
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "binaryOperators"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## binaryOperators variable
|
||||
|
||||
### binaryOperators variable
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
binaryOperators: Registry<BinaryOperatorInfo>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { binaryOperators } from '@grafana/data';
|
||||
```
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "booleanOverrideProcessor"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## booleanOverrideProcessor variable
|
||||
|
||||
### booleanOverrideProcessor variable
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
booleanOverrideProcessor: (value: boolean, _context: FieldOverrideContext, _settings?: ThresholdsFieldConfigSettings | undefined) => boolean
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { booleanOverrideProcessor } from '@grafana/data';
|
||||
```
|
@ -1,101 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "BuildInfo"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## BuildInfo interface
|
||||
|
||||
Describes the build information that will be available via the Grafana configuration.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface BuildInfo
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { BuildInfo } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [commit](#commit-property) | <code>string</code> | |
|
||||
| [edition](#edition-property) | <code>string</code> | |
|
||||
| [env](#env-property) | <code>string</code> | |
|
||||
| [hasUpdate](#hasupdate-property) | <code>boolean</code> | |
|
||||
| [hideVersion](#hideversion-property) | <code>boolean</code> | |
|
||||
| [isEnterprise](#isenterprise-property) | <code>boolean</code> | Is set to true when running Grafana Enterprise edition. |
|
||||
| [latestVersion](#latestversion-property) | <code>string</code> | |
|
||||
| [version](#version-property) | <code>string</code> | |
|
||||
|
||||
### commit property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
commit: string;
|
||||
```
|
||||
|
||||
### edition property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
edition: string;
|
||||
```
|
||||
|
||||
### env property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
env: string;
|
||||
```
|
||||
|
||||
### hasUpdate property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
hasUpdate: boolean;
|
||||
```
|
||||
|
||||
### hideVersion property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
hideVersion: boolean;
|
||||
```
|
||||
|
||||
### isEnterprise property
|
||||
|
||||
Is set to true when running Grafana Enterprise edition.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
isEnterprise: boolean;
|
||||
```
|
||||
|
||||
### latestVersion property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
latestVersion: string;
|
||||
```
|
||||
|
||||
### version property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
version: string;
|
||||
```
|
@ -1,34 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "calculateFieldStats"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## calculateFieldStats() function
|
||||
|
||||
### calculateFieldStats() function
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare function calculateFieldStats(rows: LogRowModel[], extractor: RegExp): LogLabelStatsModel[];
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { calculateFieldStats } from '@grafana/data';
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| rows | <code>LogRowModel[]</code> | |
|
||||
| extractor | <code>RegExp</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`LogLabelStatsModel[]`
|
||||
|
@ -1,34 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "calculateLogsLabelStats"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## calculateLogsLabelStats() function
|
||||
|
||||
### calculateLogsLabelStats() function
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare function calculateLogsLabelStats(rows: LogRowModel[], label: string): LogLabelStatsModel[];
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { calculateLogsLabelStats } from '@grafana/data';
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| rows | <code>LogRowModel[]</code> | |
|
||||
| label | <code>string</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`LogLabelStatsModel[]`
|
||||
|
@ -1,33 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "calculateStats"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## calculateStats() function
|
||||
|
||||
### calculateStats() function
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare function calculateStats(values: any[]): LogLabelStatsModel[];
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { calculateStats } from '@grafana/data';
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| values | <code>any[]</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`LogLabelStatsModel[]`
|
||||
|
@ -1,44 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "CircularDataFrame"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## CircularDataFrame class
|
||||
|
||||
This dataframe can have values constantly added, and will never exceed the given capacity
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare class CircularDataFrame<T = any> extends MutableDataFrame<T>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { CircularDataFrame } from '@grafana/data';
|
||||
```
|
||||
<b>Constructors</b>
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [constructor(options)](#constructor-options) | | Constructs a new instance of the <code>CircularDataFrame</code> class |
|
||||
|
||||
### constructor(options)
|
||||
|
||||
Constructs a new instance of the `CircularDataFrame` class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
constructor(options: CircularOptions);
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| options | <code>CircularOptions</code> | |
|
||||
|
@ -1,185 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "CircularVector"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## CircularVector class
|
||||
|
||||
Circular vector uses a single buffer to capture a stream of values overwriting the oldest value on add.
|
||||
|
||||
This supports adding to the 'head' or 'tail' and will grow the buffer to match a configured capacity.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare class CircularVector<T = any> extends FunctionalVector implements MutableVector<T>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { CircularVector } from '@grafana/data';
|
||||
```
|
||||
<b>Constructors</b>
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [constructor(options)](#constructor-options) | | Constructs a new instance of the <code>CircularVector</code> class |
|
||||
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [add](#add-property) | | <code>(value: T) => void</code> | Add the value to the buffer |
|
||||
| [length](#length-property) | | <code>number</code> | |
|
||||
|
||||
<b>Methods</b>
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [get(index)](#get-method) | | |
|
||||
| [reverse()](#reverse-method) | | |
|
||||
| [set(index, value)](#set-method) | | |
|
||||
| [setAppendMode(mode)](#setappendmode-method) | | |
|
||||
| [setCapacity(v)](#setcapacity-method) | | |
|
||||
| [toArray()](#toarray-method) | | |
|
||||
| [toJSON()](#tojson-method) | | |
|
||||
|
||||
### constructor(options)
|
||||
|
||||
Constructs a new instance of the `CircularVector` class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
constructor(options: CircularOptions<T>);
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| options | <code>CircularOptions<T></code> | |
|
||||
|
||||
### add property
|
||||
|
||||
Add the value to the buffer
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
add: (value: T) => void;
|
||||
```
|
||||
|
||||
### length property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
get length(): number;
|
||||
```
|
||||
|
||||
### get method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
get(index: number): T;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| index | <code>number</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`T`
|
||||
|
||||
### reverse method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
reverse(): void;
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`void`
|
||||
|
||||
### set method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
set(index: number, value: T): void;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| index | <code>number</code> | |
|
||||
| value | <code>T</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`void`
|
||||
|
||||
### setAppendMode method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setAppendMode(mode: 'head' | 'tail'): void;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| mode | <code>'head' | 'tail'</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`void`
|
||||
|
||||
### setCapacity method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setCapacity(v: number): void;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| v | <code>number</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`void`
|
||||
|
||||
### toArray method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
toArray(): T[];
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`T[]`
|
||||
|
||||
### toJSON method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
toJSON(): T[];
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`T[]`
|
||||
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "Color"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## Color type
|
||||
|
||||
### Color type
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare type Color = 'green' | 'dark-green' | 'semi-dark-green' | 'light-green' | 'super-light-green' | 'yellow' | 'dark-yellow' | 'semi-dark-yellow' | 'light-yellow' | 'super-light-yellow' | 'red' | 'dark-red' | 'semi-dark-red' | 'light-red' | 'super-light-red' | 'blue' | 'dark-blue' | 'semi-dark-blue' | 'light-blue' | 'super-light-blue' | 'orange' | 'dark-orange' | 'semi-dark-orange' | 'light-orange' | 'super-light-orange' | 'purple' | 'dark-purple' | 'semi-dark-purple' | 'light-purple' | 'super-light-purple';
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { Color } from '@grafana/data';
|
||||
```
|
@ -1,28 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "ColorDefinition"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## ColorDefinition type
|
||||
|
||||
### ColorDefinition type
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare type ColorDefinition = {
|
||||
hue: Hue;
|
||||
isPrimary?: boolean;
|
||||
name: Color;
|
||||
variants: ThemeVariants;
|
||||
};
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { ColorDefinition } from '@grafana/data';
|
||||
```
|
@ -1,52 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "ColorFieldConfigSettings"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## ColorFieldConfigSettings interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface ColorFieldConfigSettings
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { ColorFieldConfigSettings } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [allowUndefined](#allowundefined-property) | <code>boolean</code> | |
|
||||
| [disableNamedColors](#disablenamedcolors-property) | <code>boolean</code> | |
|
||||
| [textWhenUndefined](#textwhenundefined-property) | <code>string</code> | |
|
||||
|
||||
### allowUndefined property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
allowUndefined?: boolean;
|
||||
```
|
||||
|
||||
### disableNamedColors property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
disableNamedColors?: boolean;
|
||||
```
|
||||
|
||||
### textWhenUndefined property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
textWhenUndefined?: string;
|
||||
```
|
@ -1,56 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "ColorScheme"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## ColorScheme enum
|
||||
|
||||
### ColorScheme enum
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare enum ColorScheme
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { ColorScheme } from '@grafana/data';
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| Blues | <code>"Blues"</code> | |
|
||||
| BrBG | <code>"BrBG"</code> | |
|
||||
| BuGn | <code>"BuGn"</code> | |
|
||||
| BuPu | <code>"BuPu"</code> | |
|
||||
| GnBu | <code>"GnBu"</code> | |
|
||||
| Greens | <code>"Greens"</code> | |
|
||||
| Greys | <code>"Greys"</code> | |
|
||||
| Oranges | <code>"Oranges"</code> | |
|
||||
| OrRd | <code>"OrRd"</code> | |
|
||||
| PiYG | <code>"PiYG"</code> | |
|
||||
| PRGn | <code>"PRGn"</code> | |
|
||||
| PuBu | <code>"PuBu"</code> | |
|
||||
| PuBuGn | <code>"PuBuGn"</code> | |
|
||||
| PuOr | <code>"PuOr"</code> | |
|
||||
| PuRd | <code>"PuRd"</code> | |
|
||||
| Purples | <code>"Purples"</code> | |
|
||||
| RdBu | <code>"RdBu"</code> | |
|
||||
| RdGy | <code>"RdGy"</code> | |
|
||||
| RdPu | <code>"RdPu"</code> | |
|
||||
| RdYlBu | <code>"RdYlBu"</code> | |
|
||||
| RdYlGn | <code>"RdYlGn"</code> | |
|
||||
| Reds | <code>"Reds"</code> | |
|
||||
| Spectral | <code>"Spectral"</code> | |
|
||||
| YlGn | <code>"YlGn"</code> | |
|
||||
| YlGnBu | <code>"YlGnBu"</code> | |
|
||||
| YlOrBr | <code>"YlOrBr"</code> | |
|
||||
| YlOrRd | <code>"YlOrRd"</code> | |
|
||||
|
@ -1,61 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "Column"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## Column interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface Column
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { Column } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [custom](#custom-property) | <code>Record<string, any></code> | |
|
||||
| [filterable](#filterable-property) | <code>boolean</code> | |
|
||||
| [text](#text-property) | <code>string</code> | |
|
||||
| [unit](#unit-property) | <code>string</code> | |
|
||||
|
||||
### custom property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
custom?: Record<string, any>;
|
||||
```
|
||||
|
||||
### filterable property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
filterable?: boolean;
|
||||
```
|
||||
|
||||
### text property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
text: string;
|
||||
```
|
||||
|
||||
### unit property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
unit?: string;
|
||||
```
|
@ -1,43 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "ConfigOverrideRule"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## ConfigOverrideRule interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface ConfigOverrideRule
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { ConfigOverrideRule } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [matcher](#matcher-property) | <code>MatcherConfig</code> | |
|
||||
| [properties](#properties-property) | <code>DynamicConfigValue[]</code> | |
|
||||
|
||||
### matcher property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
matcher: MatcherConfig;
|
||||
```
|
||||
|
||||
### properties property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
properties: DynamicConfigValue[];
|
||||
```
|
@ -1,104 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "ConstantVector"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## ConstantVector class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare class ConstantVector<T = any> implements Vector<T>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { ConstantVector } from '@grafana/data';
|
||||
```
|
||||
<b>Constructors</b>
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [constructor(value, len)](#constructor-valuelen) | | Constructs a new instance of the <code>ConstantVector</code> class |
|
||||
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [length](#length-property) | | <code>number</code> | |
|
||||
|
||||
<b>Methods</b>
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [get(index)](#get-method) | | |
|
||||
| [toArray()](#toarray-method) | | |
|
||||
| [toJSON()](#tojson-method) | | |
|
||||
|
||||
### constructor(value, len)
|
||||
|
||||
Constructs a new instance of the `ConstantVector` class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
constructor(value: T, len: number);
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| value | <code>T</code> | |
|
||||
| len | <code>number</code> | |
|
||||
|
||||
### length property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
get length(): number;
|
||||
```
|
||||
|
||||
### get method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
get(index: number): T;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| index | <code>number</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`T`
|
||||
|
||||
### toArray method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
toArray(): T[];
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`T[]`
|
||||
|
||||
### toJSON method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
toJSON(): T[];
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`T[]`
|
||||
|
@ -1,31 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "CoreApp"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## CoreApp enum
|
||||
|
||||
### CoreApp enum
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare enum CoreApp
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { CoreApp } from '@grafana/data';
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| Dashboard | <code>"dashboard"</code> | |
|
||||
| Explore | <code>"explore"</code> | |
|
||||
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "createDimension"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## createDimension variable
|
||||
|
||||
### createDimension variable
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
createDimension: (name: string, columns: Field[]) => Dimension
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { createDimension } from '@grafana/data';
|
||||
```
|
@ -1,21 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "CreatePlotOverlay"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## CreatePlotOverlay interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface CreatePlotOverlay
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { CreatePlotOverlay } from '@grafana/data';
|
||||
```
|
@ -1,70 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "CSVConfig"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## CSVConfig interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface CSVConfig
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { CSVConfig } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [delimiter](#delimiter-property) | <code>string</code> | |
|
||||
| [encoding](#encoding-property) | <code>string</code> | |
|
||||
| [headerStyle](#headerstyle-property) | <code>CSVHeaderStyle</code> | |
|
||||
| [newline](#newline-property) | <code>string</code> | |
|
||||
| [quoteChar](#quotechar-property) | <code>string</code> | |
|
||||
|
||||
### delimiter property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
delimiter?: string;
|
||||
```
|
||||
|
||||
### encoding property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
encoding?: string;
|
||||
```
|
||||
|
||||
### headerStyle property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
headerStyle?: CSVHeaderStyle;
|
||||
```
|
||||
|
||||
### newline property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
newline?: string;
|
||||
```
|
||||
|
||||
### quoteChar property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
quoteChar?: string;
|
||||
```
|
@ -1,32 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "CSVHeaderStyle"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## CSVHeaderStyle enum
|
||||
|
||||
### CSVHeaderStyle enum
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare enum CSVHeaderStyle
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { CSVHeaderStyle } from '@grafana/data';
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| full | <code>0</code> | |
|
||||
| name | <code>1</code> | |
|
||||
| none | <code>2</code> | |
|
||||
|
@ -1,43 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "CSVOptions"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## CSVOptions interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface CSVOptions
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { CSVOptions } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [callback](#callback-property) | <code>CSVParseCallbacks</code> | |
|
||||
| [config](#config-property) | <code>CSVConfig</code> | |
|
||||
|
||||
### callback property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
callback?: CSVParseCallbacks;
|
||||
```
|
||||
|
||||
### config property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
config?: CSVConfig;
|
||||
```
|
@ -1,45 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "CSVParseCallbacks"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## CSVParseCallbacks interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface CSVParseCallbacks
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { CSVParseCallbacks } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [onHeader](#onheader-property) | <code>(fields: Field[]) => void</code> | Get a callback before any rows are processed This can return a modified table to force any Column configurations |
|
||||
| [onRow](#onrow-property) | <code>(row: any[]) => void</code> | |
|
||||
|
||||
### onHeader property
|
||||
|
||||
Get a callback before any rows are processed This can return a modified table to force any Column configurations
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
onHeader: (fields: Field[]) => void;
|
||||
```
|
||||
|
||||
### onRow property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
onRow: (row: any[]) => void;
|
||||
```
|
@ -1,115 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "CSVReader"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## CSVReader class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare class CSVReader
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { CSVReader } from '@grafana/data';
|
||||
```
|
||||
<b>Constructors</b>
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [constructor(options)](#constructor-options) | | Constructs a new instance of the <code>CSVReader</code> class |
|
||||
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [callback](#callback-property) | | <code>CSVParseCallbacks</code> | |
|
||||
| [config](#config-property) | | <code>CSVConfig</code> | |
|
||||
| [current](#current-property) | | <code>MutableDataFrame</code> | |
|
||||
| [data](#data-property) | | <code>MutableDataFrame[]</code> | |
|
||||
| [state](#state-property) | | <code>ParseState</code> | |
|
||||
|
||||
<b>Methods</b>
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [readCSV(text)](#readcsv-method) | | |
|
||||
|
||||
### constructor(options)
|
||||
|
||||
Constructs a new instance of the `CSVReader` class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
constructor(options?: CSVOptions);
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| options | <code>CSVOptions</code> | |
|
||||
|
||||
### callback property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
callback?: CSVParseCallbacks;
|
||||
```
|
||||
|
||||
### config property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
config: CSVConfig;
|
||||
```
|
||||
|
||||
### current property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
current: MutableDataFrame;
|
||||
```
|
||||
|
||||
### data property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
data: MutableDataFrame[];
|
||||
```
|
||||
|
||||
### state property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
state: ParseState;
|
||||
```
|
||||
|
||||
### readCSV method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
readCSV(text: string): MutableDataFrame[];
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| text | <code>string</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`MutableDataFrame[]`
|
||||
|
@ -1,45 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataConfigSource"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataConfigSource interface
|
||||
|
||||
Describes and API for exposing panel specific data configurations.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataConfigSource
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataConfigSource } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [getFieldOverrideOptions](#getfieldoverrideoptions-property) | <code>() => ApplyFieldOverrideOptions | undefined</code> | |
|
||||
| [getTransformations](#gettransformations-property) | <code>() => DataTransformerConfig[] | undefined</code> | |
|
||||
|
||||
### getFieldOverrideOptions property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
getFieldOverrideOptions: () => ApplyFieldOverrideOptions | undefined;
|
||||
```
|
||||
|
||||
### getTransformations property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
getTransformations: () => DataTransformerConfig[] | undefined;
|
||||
```
|
@ -1,52 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataFrame"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataFrame interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataFrame extends QueryResultBase
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataFrame } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [fields](#fields-property) | <code>Field[]</code> | |
|
||||
| [length](#length-property) | <code>number</code> | |
|
||||
| [name](#name-property) | <code>string</code> | |
|
||||
|
||||
### fields property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
fields: Field[];
|
||||
```
|
||||
|
||||
### length property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
length: number;
|
||||
```
|
||||
|
||||
### name property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
name?: string;
|
||||
```
|
@ -1,45 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataFrameDTO"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataFrameDTO interface
|
||||
|
||||
Like a DataFrame, but fields may be a FieldDTO
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataFrameDTO extends QueryResultBase
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataFrameDTO } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [fields](#fields-property) | <code>Array<FieldDTO | Field></code> | |
|
||||
| [name](#name-property) | <code>string</code> | |
|
||||
|
||||
### fields property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
fields: Array<FieldDTO | Field>;
|
||||
```
|
||||
|
||||
### name property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
name?: string;
|
||||
```
|
@ -1,164 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataFrameView"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataFrameView class
|
||||
|
||||
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
||||
>
|
||||
|
||||
This abstraction will present the contents of a DataFrame as if it were a well typed javascript object Vector.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare class DataFrameView<T = any> extends FunctionalVector<T>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataFrameView } from '@grafana/data';
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
The [DataFrameView.get()](./data/dataframeview/get.md) is optimized for use in a loop and will return same object. See function for more details.
|
||||
|
||||
<b>Constructors</b>
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [constructor(data)](#constructor-data) | | <b><i>(BETA)</i></b> Constructs a new instance of the <code>DataFrameView</code> class |
|
||||
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [dataFrame](#dataframe-property) | | <code>DataFrame</code> | <b><i>(BETA)</i></b> |
|
||||
| [length](#length-property) | | <code>number</code> | <b><i>(BETA)</i></b> |
|
||||
|
||||
<b>Methods</b>
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [get(idx)](#get-method) | | <b><i>(BETA)</i></b> The contents of the object returned from this function are optimized for use in a loop. All calls return the same object but the index has changed. |
|
||||
| [getFieldDisplayProcessor(colIndex)](#getfielddisplayprocessor-method) | | <b><i>(BETA)</i></b> Helper function to return the [DisplayProcessor](./data/displayprocessor.md) for a given field column. |
|
||||
| [toArray()](#toarray-method) | | <b><i>(BETA)</i></b> |
|
||||
|
||||
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
||||
>
|
||||
|
||||
### constructor(data)
|
||||
|
||||
Constructs a new instance of the `DataFrameView` class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
constructor(data: DataFrame);
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| data | <code>DataFrame</code> | |
|
||||
|
||||
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
||||
>
|
||||
|
||||
### dataFrame property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
get dataFrame(): DataFrame;
|
||||
```
|
||||
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
||||
>
|
||||
|
||||
### length property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
get length(): number;
|
||||
```
|
||||
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
||||
>
|
||||
|
||||
### get method
|
||||
|
||||
The contents of the object returned from this function are optimized for use in a loop. All calls return the same object but the index has changed.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
get(idx: number): T;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| idx | <code>number</code> | The index of the object you currently are inspecting |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`T`
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
```typescript
|
||||
// `first`, `second` and `third` will all point to the same contents at index 2:
|
||||
const first = view.get(0);
|
||||
const second = view.get(1);
|
||||
const third = view.get(2);
|
||||
|
||||
// If you need three different objects, consider something like:
|
||||
const first = { ...view.get(0) };
|
||||
const second = { ...view.get(1) };
|
||||
const third = { ...view.get(2) };
|
||||
|
||||
```
|
||||
|
||||
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
||||
>
|
||||
|
||||
### getFieldDisplayProcessor method
|
||||
|
||||
Helper function to return the [DisplayProcessor](./data/displayprocessor.md) for a given field column.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
getFieldDisplayProcessor(colIndex: number): DisplayProcessor | null;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| colIndex | <code>number</code> | the field column index for the data frame. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`DisplayProcessor | null`
|
||||
|
||||
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
||||
>
|
||||
|
||||
### toArray method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
toArray(): T[];
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`T[]`
|
||||
|
@ -1,86 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataLink"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataLink interface
|
||||
|
||||
Link configuration. The values may contain variables that need to be processed before showing the link to user.
|
||||
|
||||
TODO: <<!-- -->T extends DataQuery<!-- -->> is not strictly true for internal links as we do not need refId for example but all data source defined queries extend this so this is more for documentation.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataLink<T extends DataQuery = any>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataLink } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [internal](#internal-property) | <code>{</code><br/><code> query: T;</code><br/><code> datasourceUid: string;</code><br/><code> }</code> | |
|
||||
| [onBuildUrl](#onbuildurl-property) | <code>(event: DataLinkClickEvent) => string</code> | |
|
||||
| [onClick](#onclick-property) | <code>(event: DataLinkClickEvent) => void</code> | |
|
||||
| [targetBlank](#targetblank-property) | <code>boolean</code> | |
|
||||
| [title](#title-property) | <code>string</code> | |
|
||||
| [url](#url-property) | <code>string</code> | |
|
||||
|
||||
### internal property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
internal?: {
|
||||
query: T;
|
||||
datasourceUid: string;
|
||||
};
|
||||
```
|
||||
|
||||
### onBuildUrl property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
onBuildUrl?: (event: DataLinkClickEvent) => string;
|
||||
```
|
||||
|
||||
### onClick property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
onClick?: (event: DataLinkClickEvent) => void;
|
||||
```
|
||||
|
||||
### targetBlank property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
targetBlank?: boolean;
|
||||
```
|
||||
|
||||
### title property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
title: string;
|
||||
```
|
||||
|
||||
### url property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
url: string;
|
||||
```
|
@ -1,35 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataLinkBuiltInVars"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataLinkBuiltInVars variable
|
||||
|
||||
### DataLinkBuiltInVars variable
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
DataLinkBuiltInVars: {
|
||||
keepTime: string;
|
||||
timeRangeFrom: string;
|
||||
timeRangeTo: string;
|
||||
includeVars: string;
|
||||
seriesName: string;
|
||||
fieldName: string;
|
||||
valueTime: string;
|
||||
valueNumeric: string;
|
||||
valueText: string;
|
||||
valueRaw: string;
|
||||
valueCalc: string;
|
||||
}
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataLinkBuiltInVars } from '@grafana/data';
|
||||
```
|
@ -1,54 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataLinkClickEvent"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataLinkClickEvent interface
|
||||
|
||||
Callback info for DataLink click events
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataLinkClickEvent<T = any>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataLinkClickEvent } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [e](#e-property) | <code>any</code> | |
|
||||
| [origin](#origin-property) | <code>T</code> | |
|
||||
| [scopedVars](#scopedvars-property) | <code>ScopedVars</code> | |
|
||||
|
||||
### e property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
e?: any;
|
||||
```
|
||||
|
||||
### origin property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
origin: T;
|
||||
```
|
||||
|
||||
### scopedVars property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
scopedVars: ScopedVars;
|
||||
```
|
@ -1,21 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataLinksFieldConfigSettings"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataLinksFieldConfigSettings interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataLinksFieldConfigSettings
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataLinksFieldConfigSettings } from '@grafana/data';
|
||||
```
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "dataLinksOverrideProcessor"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dataLinksOverrideProcessor variable
|
||||
|
||||
### dataLinksOverrideProcessor variable
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
dataLinksOverrideProcessor: (value: any, _context: FieldOverrideContext, _settings?: DataLinksFieldConfigSettings | undefined) => DataLink<any>[]
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dataLinksOverrideProcessor } from '@grafana/data';
|
||||
```
|
@ -1,82 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataQuery"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataQuery interface
|
||||
|
||||
These are the common properties available to all queries in all datasources Specific implementations will extend this interface adding the required properties for the given context
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataQuery
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataQuery } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [datasource](#datasource-property) | <code>string | null</code> | For mixed data sources the selected datasource is on the query level. For non mixed scenarios this is undefined. |
|
||||
| [hide](#hide-property) | <code>boolean</code> | true if query is disabled (ie should not be returned to the dashboard) |
|
||||
| [key](#key-property) | <code>string</code> | Unique, guid like, string used in explore mode |
|
||||
| [queryType](#querytype-property) | <code>string</code> | Specify the query flavor |
|
||||
| [refId](#refid-property) | <code>string</code> | A - Z |
|
||||
|
||||
### datasource property
|
||||
|
||||
For mixed data sources the selected datasource is on the query level. For non mixed scenarios this is undefined.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
datasource?: string | null;
|
||||
```
|
||||
|
||||
### hide property
|
||||
|
||||
true if query is disabled (ie should not be returned to the dashboard)
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
hide?: boolean;
|
||||
```
|
||||
|
||||
### key property
|
||||
|
||||
Unique, guid like, string used in explore mode
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
key?: string;
|
||||
```
|
||||
|
||||
### queryType property
|
||||
|
||||
Specify the query flavor
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
queryType?: string;
|
||||
```
|
||||
|
||||
### refId property
|
||||
|
||||
A - Z
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
refId: string;
|
||||
```
|
@ -1,82 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataQueryError"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataQueryError interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataQueryError
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataQueryError } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [cancelled](#cancelled-property) | <code>boolean</code> | |
|
||||
| [data](#data-property) | <code>{</code><br/><code> message?: string;</code><br/><code> error?: string;</code><br/><code> }</code> | |
|
||||
| [message](#message-property) | <code>string</code> | |
|
||||
| [refId](#refid-property) | <code>string</code> | |
|
||||
| [status](#status-property) | <code>string</code> | |
|
||||
| [statusText](#statustext-property) | <code>string</code> | |
|
||||
|
||||
### cancelled property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
cancelled?: boolean;
|
||||
```
|
||||
|
||||
### data property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
data?: {
|
||||
message?: string;
|
||||
error?: string;
|
||||
};
|
||||
```
|
||||
|
||||
### message property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
message?: string;
|
||||
```
|
||||
|
||||
### refId property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
refId?: string;
|
||||
```
|
||||
|
||||
### status property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
status?: string;
|
||||
```
|
||||
|
||||
### statusText property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
statusText?: string;
|
||||
```
|
@ -1,187 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataQueryRequest"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataQueryRequest interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataQueryRequest<TQuery extends DataQuery = DataQuery>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataQueryRequest } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [app](#app-property) | <code>CoreApp | string</code> | |
|
||||
| [cacheTimeout](#cachetimeout-property) | <code>string</code> | |
|
||||
| [dashboardId](#dashboardid-property) | <code>number</code> | |
|
||||
| [endTime](#endtime-property) | <code>number</code> | |
|
||||
| [exploreMode](#exploremode-property) | <code>ExploreMode</code> | |
|
||||
| [interval](#interval-property) | <code>string</code> | |
|
||||
| [intervalMs](#intervalms-property) | <code>number</code> | |
|
||||
| [maxDataPoints](#maxdatapoints-property) | <code>number</code> | |
|
||||
| [panelId](#panelid-property) | <code>number</code> | |
|
||||
| [range](#range-property) | <code>TimeRange</code> | |
|
||||
| [rangeRaw](#rangeraw-property) | <code>RawTimeRange</code> | |
|
||||
| [requestId](#requestid-property) | <code>string</code> | |
|
||||
| [reverse](#reverse-property) | <code>boolean</code> | |
|
||||
| [scopedVars](#scopedvars-property) | <code>ScopedVars</code> | |
|
||||
| [startTime](#starttime-property) | <code>number</code> | |
|
||||
| [targets](#targets-property) | <code>TQuery[]</code> | |
|
||||
| [timeInfo](#timeinfo-property) | <code>string</code> | |
|
||||
| [timezone](#timezone-property) | <code>string</code> | |
|
||||
|
||||
### app property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
app: CoreApp | string;
|
||||
```
|
||||
|
||||
### cacheTimeout property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
cacheTimeout?: string;
|
||||
```
|
||||
|
||||
### dashboardId property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
dashboardId: number;
|
||||
```
|
||||
|
||||
### endTime property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
endTime?: number;
|
||||
```
|
||||
|
||||
### exploreMode property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
exploreMode?: ExploreMode;
|
||||
```
|
||||
|
||||
### interval property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
interval: string;
|
||||
```
|
||||
|
||||
### intervalMs property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
intervalMs?: number;
|
||||
```
|
||||
|
||||
### maxDataPoints property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
maxDataPoints?: number;
|
||||
```
|
||||
|
||||
### panelId property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
panelId: number;
|
||||
```
|
||||
|
||||
### range property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
range: TimeRange;
|
||||
```
|
||||
|
||||
### rangeRaw property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
rangeRaw?: RawTimeRange;
|
||||
```
|
||||
|
||||
### requestId property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
requestId: string;
|
||||
```
|
||||
|
||||
### reverse property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
reverse?: boolean;
|
||||
```
|
||||
|
||||
### scopedVars property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
scopedVars: ScopedVars;
|
||||
```
|
||||
|
||||
### startTime property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
startTime: number;
|
||||
```
|
||||
|
||||
### targets property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
targets: TQuery[];
|
||||
```
|
||||
|
||||
### timeInfo property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
timeInfo?: string;
|
||||
```
|
||||
|
||||
### timezone property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
timezone: string;
|
||||
```
|
@ -1,69 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataQueryResponse"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataQueryResponse interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataQueryResponse
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataQueryResponse } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [data](#data-property) | <code>DataQueryResponseData[]</code> | The response data. When streaming, this may be empty or a partial result set |
|
||||
| [error](#error-property) | <code>DataQueryError</code> | Optionally include error info along with the response data |
|
||||
| [key](#key-property) | <code>string</code> | When returning multiple partial responses or streams Use this key to inform Grafana how to combine the partial responses Multiple responses with same key are replaced (latest used) |
|
||||
| [state](#state-property) | <code>LoadingState</code> | Use this to control which state the response should have Defaults to LoadingState.Done if state is not defined |
|
||||
|
||||
### data property
|
||||
|
||||
The response data. When streaming, this may be empty or a partial result set
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
data: DataQueryResponseData[];
|
||||
```
|
||||
|
||||
### error property
|
||||
|
||||
Optionally include error info along with the response data
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
error?: DataQueryError;
|
||||
```
|
||||
|
||||
### key property
|
||||
|
||||
When returning multiple partial responses or streams Use this key to inform Grafana how to combine the partial responses Multiple responses with same key are replaced (latest used)
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
key?: string;
|
||||
```
|
||||
|
||||
### state property
|
||||
|
||||
Use this to control which state the response should have Defaults to LoadingState.Done if state is not defined
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
state?: LoadingState;
|
||||
```
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataQueryResponseData"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataQueryResponseData type
|
||||
|
||||
### DataQueryResponseData type
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare type DataQueryResponseData = DataFrame | DataFrameDTO | LegacyResponseData;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataQueryResponseData } from '@grafana/data';
|
||||
```
|
@ -1,34 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataQueryTimings"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataQueryTimings interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataQueryTimings
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataQueryTimings } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [dataProcessingTime](#dataprocessingtime-property) | <code>number</code> | |
|
||||
|
||||
### dataProcessingTime property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
dataProcessingTime: number;
|
||||
```
|
@ -1,438 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourceApi"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourceApi class
|
||||
|
||||
The main data source abstraction interface, represents an instance of a data source
|
||||
|
||||
Although this is a class, datasource implementations do not \*yet\* need to extend it. As such, we can not yet add functions with default implementations.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare abstract class DataSourceApi<TQuery extends DataQuery = DataQuery, TOptions extends DataSourceJsonData = DataSourceJsonData>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourceApi } from '@grafana/data';
|
||||
```
|
||||
<b>Constructors</b>
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [constructor(instanceSettings)](#constructor-instancesettings) | | Constructs a new instance of the <code>DataSourceApi</code> class |
|
||||
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [components](#components-property) | | <code>DataSourcePluginComponents<DataSourceApi<TQuery, TOptions>, TQuery, TOptions></code> | Set after constructor call, as the data source instance is the most common thing to pass around we attach the components to this instance for easy access |
|
||||
| [getLogRowContext](#getlogrowcontext-property) | | <code><TContextQueryOptions extends {}>(row: LogRowModel, options?: TContextQueryOptions) => Promise<DataQueryResponse></code> | Retrieve context for a given log row |
|
||||
| [id](#id-property) | | <code>number</code> | Set in constructor |
|
||||
| [init](#init-property) | | <code>() => void</code> | Initializes a datasource after instantiation |
|
||||
| [interval](#interval-property) | | <code>string</code> | min interval range |
|
||||
| [languageProvider](#languageprovider-property) | | <code>any</code> | Used in explore |
|
||||
| [meta](#meta-property) | | <code>DataSourcePluginMeta</code> | static information about the datasource |
|
||||
| [name](#name-property) | | <code>string</code> | Set in constructor |
|
||||
|
||||
<b>Methods</b>
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [annotationQuery(options)](#annotationquery-method) | | Can be optionally implemented to allow datasource to be a source of annotations for dashboard. To be visible in the annotation editor <code>annotations</code> capability also needs to be enabled in plugin.json. |
|
||||
| [getHighlighterExpression(query)](#gethighlighterexpression-method) | | Used in explore |
|
||||
| [getQueryDisplayText(query)](#getquerydisplaytext-method) | | Convert a query to a simple text string |
|
||||
| [getQueryHints(query, results, rest)](#getqueryhints-method) | | Get hints for query improvements |
|
||||
| [getTagKeys(options)](#gettagkeys-method) | | Get tag keys for adhoc filters |
|
||||
| [getTagValues(options)](#gettagvalues-method) | | Get tag values for adhoc filters |
|
||||
| [getVersion(optionalOptions)](#getversion-method) | | |
|
||||
| [importQueries(queries, originMeta)](#importqueries-method) | | Imports queries from a different datasource |
|
||||
| [interpolateVariablesInQueries(queries, scopedVars)](#interpolatevariablesinqueries-method) | | |
|
||||
| [metricFindQuery(query, options)](#metricfindquery-method) | | Variable query action. |
|
||||
| [modifyQuery(query, action)](#modifyquery-method) | | Used in explore |
|
||||
| [query(request)](#query-method) | | Query for data, and optionally stream results |
|
||||
| [showContextToggle(row)](#showcontexttoggle-method) | | |
|
||||
| [targetContainsTemplate(query)](#targetcontainstemplate-method) | | Used by alerting to check if query contains template variables |
|
||||
| [testDatasource()](#testdatasource-method) | | Test & verify datasource settings & connection details |
|
||||
|
||||
### constructor(instanceSettings)
|
||||
|
||||
Constructs a new instance of the `DataSourceApi` class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
constructor(instanceSettings: DataSourceInstanceSettings<TOptions>);
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| instanceSettings | <code>DataSourceInstanceSettings<TOptions></code> | |
|
||||
|
||||
### components property
|
||||
|
||||
Set after constructor call, as the data source instance is the most common thing to pass around we attach the components to this instance for easy access
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
components?: DataSourcePluginComponents<DataSourceApi<TQuery, TOptions>, TQuery, TOptions>;
|
||||
```
|
||||
|
||||
### getLogRowContext property
|
||||
|
||||
Retrieve context for a given log row
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
getLogRowContext?: <TContextQueryOptions extends {}>(row: LogRowModel, options?: TContextQueryOptions) => Promise<DataQueryResponse>;
|
||||
```
|
||||
|
||||
### id property
|
||||
|
||||
Set in constructor
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
readonly id: number;
|
||||
```
|
||||
|
||||
### init property
|
||||
|
||||
Initializes a datasource after instantiation
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
init?: () => void;
|
||||
```
|
||||
|
||||
### interval property
|
||||
|
||||
min interval range
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
interval?: string;
|
||||
```
|
||||
|
||||
### languageProvider property
|
||||
|
||||
Used in explore
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
languageProvider?: any;
|
||||
```
|
||||
|
||||
### meta property
|
||||
|
||||
static information about the datasource
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
meta: DataSourcePluginMeta;
|
||||
```
|
||||
|
||||
### name property
|
||||
|
||||
Set in constructor
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
readonly name: string;
|
||||
```
|
||||
|
||||
### annotationQuery method
|
||||
|
||||
Can be optionally implemented to allow datasource to be a source of annotations for dashboard. To be visible in the annotation editor `annotations` capability also needs to be enabled in plugin.json.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
annotationQuery?(options: AnnotationQueryRequest<TQuery>): Promise<AnnotationEvent[]>;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| options | <code>AnnotationQueryRequest<TQuery></code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`Promise<AnnotationEvent[]>`
|
||||
|
||||
### getHighlighterExpression method
|
||||
|
||||
Used in explore
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
getHighlighterExpression?(query: TQuery): string[];
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| query | <code>TQuery</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`string[]`
|
||||
|
||||
### getQueryDisplayText method
|
||||
|
||||
Convert a query to a simple text string
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
getQueryDisplayText?(query: TQuery): string;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| query | <code>TQuery</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`string`
|
||||
|
||||
### getQueryHints method
|
||||
|
||||
Get hints for query improvements
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
getQueryHints?(query: TQuery, results: any[], ...rest: any): QueryHint[];
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| query | <code>TQuery</code> | |
|
||||
| results | <code>any[]</code> | |
|
||||
| rest | <code>any</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`QueryHint[]`
|
||||
|
||||
### getTagKeys method
|
||||
|
||||
Get tag keys for adhoc filters
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
getTagKeys?(options?: any): Promise<MetricFindValue[]>;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| options | <code>any</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`Promise<MetricFindValue[]>`
|
||||
|
||||
### getTagValues method
|
||||
|
||||
Get tag values for adhoc filters
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
getTagValues?(options: any): Promise<MetricFindValue[]>;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| options | <code>any</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`Promise<MetricFindValue[]>`
|
||||
|
||||
### getVersion method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
getVersion?(optionalOptions?: any): Promise<string>;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| optionalOptions | <code>any</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`Promise<string>`
|
||||
|
||||
### importQueries method
|
||||
|
||||
Imports queries from a different datasource
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
importQueries?(queries: TQuery[], originMeta: PluginMeta): Promise<TQuery[]>;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| queries | <code>TQuery[]</code> | |
|
||||
| originMeta | <code>PluginMeta</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`Promise<TQuery[]>`
|
||||
|
||||
### interpolateVariablesInQueries method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
interpolateVariablesInQueries?(queries: TQuery[], scopedVars: ScopedVars | {}): TQuery[];
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| queries | <code>TQuery[]</code> | |
|
||||
| scopedVars | <code>ScopedVars | {}</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`TQuery[]`
|
||||
|
||||
### metricFindQuery method
|
||||
|
||||
Variable query action.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
metricFindQuery?(query: any, options?: any): Promise<MetricFindValue[]>;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| query | <code>any</code> | |
|
||||
| options | <code>any</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`Promise<MetricFindValue[]>`
|
||||
|
||||
### modifyQuery method
|
||||
|
||||
Used in explore
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
modifyQuery?(query: TQuery, action: QueryFixAction): TQuery;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| query | <code>TQuery</code> | |
|
||||
| action | <code>QueryFixAction</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`TQuery`
|
||||
|
||||
### query method
|
||||
|
||||
Query for data, and optionally stream results
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
abstract query(request: DataQueryRequest<TQuery>): Promise<DataQueryResponse> | Observable<DataQueryResponse>;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| request | <code>DataQueryRequest<TQuery></code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`Promise<DataQueryResponse> | Observable<DataQueryResponse>`
|
||||
|
||||
### showContextToggle method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
showContextToggle?(row?: LogRowModel): boolean;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| row | <code>LogRowModel</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`boolean`
|
||||
|
||||
### targetContainsTemplate method
|
||||
|
||||
Used by alerting to check if query contains template variables
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
targetContainsTemplate?(query: TQuery): boolean;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| query | <code>TQuery</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`boolean`
|
||||
|
||||
### testDatasource method
|
||||
|
||||
Test & verify datasource settings & connection details
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
abstract testDatasource(): Promise<any>;
|
||||
```
|
||||
<b>Returns:</b>
|
||||
|
||||
`Promise<any>`
|
||||
|
@ -1,45 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourceConstructor"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourceConstructor interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataSourceConstructor<DSType extends DataSourceApi<TQuery, TOptions>, TQuery extends DataQuery = DataQuery, TOptions extends DataSourceJsonData = DataSourceJsonData>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourceConstructor } from '@grafana/data';
|
||||
```
|
||||
<b>Methods</b>
|
||||
|
||||
| Method | Description |
|
||||
| --- | --- |
|
||||
| [new(instanceSettings, args)](#new-instancesettingsargs) | |
|
||||
|
||||
### new(instanceSettings, args)
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
new (instanceSettings: DataSourceInstanceSettings<TOptions>, ...args: any[]): DSType;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| instanceSettings | <code>DataSourceInstanceSettings<TOptions></code> | |
|
||||
| args | <code>any[]</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`DSType`
|
||||
|
@ -1,137 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourceInstanceSettings"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourceInstanceSettings interface
|
||||
|
||||
Frontend settings model that is passed to Datasource constructor. This differs a bit from the model above as this data model is available to every user who has access to a data source (Viewers+). This is loaded in bootData (on page load), or from: /api/frontend/settings
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataSourceInstanceSettings<T extends DataSourceJsonData = DataSourceJsonData>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourceInstanceSettings } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [basicAuth](#basicauth-property) | <code>string</code> | This is the full Authorization header if basic auth is enabled. Only available here when access is Browser (direct), when access is Server (proxy) The basic auth header, username & password is never exposed to browser/Frontend so this will be empty then. |
|
||||
| [database](#database-property) | <code>string</code> | |
|
||||
| [id](#id-property) | <code>number</code> | |
|
||||
| [jsonData](#jsondata-property) | <code>T</code> | |
|
||||
| [meta](#meta-property) | <code>DataSourcePluginMeta</code> | |
|
||||
| [name](#name-property) | <code>string</code> | |
|
||||
| [password](#password-property) | <code>string</code> | |
|
||||
| [type](#type-property) | <code>string</code> | |
|
||||
| [uid](#uid-property) | <code>string</code> | |
|
||||
| [url](#url-property) | <code>string</code> | |
|
||||
| [username](#username-property) | <code>string</code> | |
|
||||
| [withCredentials](#withcredentials-property) | <code>boolean</code> | |
|
||||
|
||||
### basicAuth property
|
||||
|
||||
This is the full Authorization header if basic auth is enabled. Only available here when access is Browser (direct), when access is Server (proxy) The basic auth header, username & password is never exposed to browser/Frontend so this will be empty then.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
basicAuth?: string;
|
||||
```
|
||||
|
||||
### database property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
database?: string;
|
||||
```
|
||||
|
||||
### id property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
id: number;
|
||||
```
|
||||
|
||||
### jsonData property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
jsonData: T;
|
||||
```
|
||||
|
||||
### meta property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
meta: DataSourcePluginMeta;
|
||||
```
|
||||
|
||||
### name property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
name: string;
|
||||
```
|
||||
|
||||
### password property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
password?: string;
|
||||
```
|
||||
|
||||
### type property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
type: string;
|
||||
```
|
||||
|
||||
### uid property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
uid: string;
|
||||
```
|
||||
|
||||
### url property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
url?: string;
|
||||
```
|
||||
|
||||
### username property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
username?: string;
|
||||
```
|
||||
|
||||
### withCredentials property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
withCredentials?: boolean;
|
||||
```
|
@ -1,43 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourceJsonData"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourceJsonData interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataSourceJsonData
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourceJsonData } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [authType](#authtype-property) | <code>string</code> | |
|
||||
| [defaultRegion](#defaultregion-property) | <code>string</code> | |
|
||||
|
||||
### authType property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
authType?: string;
|
||||
```
|
||||
|
||||
### defaultRegion property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
defaultRegion?: string;
|
||||
```
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourceOptionsType"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourceOptionsType type
|
||||
|
||||
### DataSourceOptionsType type
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare type DataSourceOptionsType<DSType extends DataSourceApi<any, any>> = DSType extends DataSourceApi<infer _TQuery, infer TOptions> ? TOptions : never;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourceOptionsType } from '@grafana/data';
|
||||
```
|
@ -1,286 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourcePlugin"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourcePlugin class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare class DataSourcePlugin<DSType extends DataSourceApi<TQuery, TOptions>, TQuery extends DataQuery = DataSourceQueryType<DSType>, TOptions extends DataSourceJsonData = DataSourceOptionsType<DSType>, TSecureOptions = {}> extends GrafanaPlugin<DataSourcePluginMeta<TOptions>>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourcePlugin } from '@grafana/data';
|
||||
```
|
||||
<b>Constructors</b>
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [constructor(DataSourceClass)](#constructor-datasourceclass) | | Constructs a new instance of the <code>DataSourcePlugin</code> class |
|
||||
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| [components](#components-property) | | <code>DataSourcePluginComponents<DSType, TQuery, TOptions, TSecureOptions></code> | |
|
||||
| [DataSourceClass](#datasourceclass-property) | | <code>DataSourceConstructor<DSType, TQuery, TOptions></code> | |
|
||||
|
||||
<b>Methods</b>
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --- | --- | --- |
|
||||
| [setAnnotationQueryCtrl(AnnotationsQueryCtrl)](#setannotationqueryctrl-method) | | |
|
||||
| [setComponentsFromLegacyExports(pluginExports)](#setcomponentsfromlegacyexports-method) | | |
|
||||
| [setConfigCtrl(ConfigCtrl)](#setconfigctrl-method) | | |
|
||||
| [setConfigEditor(editor)](#setconfigeditor-method) | | |
|
||||
| [setExploreLogsQueryField(ExploreQueryField)](#setexplorelogsqueryfield-method) | | |
|
||||
| [setExploreMetricsQueryField(ExploreQueryField)](#setexploremetricsqueryfield-method) | | |
|
||||
| [setExploreQueryField(ExploreQueryField)](#setexplorequeryfield-method) | | |
|
||||
| [setExploreStartPage(ExploreStartPage)](#setexplorestartpage-method) | | |
|
||||
| [setMetadataInspector(MetadataInspector)](#setmetadatainspector-method) | | |
|
||||
| [setQueryCtrl(QueryCtrl)](#setqueryctrl-method) | | |
|
||||
| [setQueryEditor(QueryEditor)](#setqueryeditor-method) | | |
|
||||
| [setVariableQueryEditor(VariableQueryEditor)](#setvariablequeryeditor-method) | | |
|
||||
|
||||
### constructor(DataSourceClass)
|
||||
|
||||
Constructs a new instance of the `DataSourcePlugin` class
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
constructor(DataSourceClass: DataSourceConstructor<DSType, TQuery, TOptions>);
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| DataSourceClass | <code>DataSourceConstructor<DSType, TQuery, TOptions></code> | |
|
||||
|
||||
### components property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
components: DataSourcePluginComponents<DSType, TQuery, TOptions, TSecureOptions>;
|
||||
```
|
||||
|
||||
### DataSourceClass property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
DataSourceClass: DataSourceConstructor<DSType, TQuery, TOptions>;
|
||||
```
|
||||
|
||||
### setAnnotationQueryCtrl method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setAnnotationQueryCtrl(AnnotationsQueryCtrl: any): this;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| AnnotationsQueryCtrl | <code>any</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`this`
|
||||
|
||||
### setComponentsFromLegacyExports method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setComponentsFromLegacyExports(pluginExports: any): void;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| pluginExports | <code>any</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`void`
|
||||
|
||||
### setConfigCtrl method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setConfigCtrl(ConfigCtrl: any): this;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| ConfigCtrl | <code>any</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`this`
|
||||
|
||||
### setConfigEditor method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setConfigEditor(editor: ComponentType<DataSourcePluginOptionsEditorProps<TOptions, TSecureOptions>>): this;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| editor | <code>ComponentType<DataSourcePluginOptionsEditorProps<TOptions, TSecureOptions>></code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`this`
|
||||
|
||||
### setExploreLogsQueryField method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setExploreLogsQueryField(ExploreQueryField: ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>>): this;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| ExploreQueryField | <code>ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>></code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`this`
|
||||
|
||||
### setExploreMetricsQueryField method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setExploreMetricsQueryField(ExploreQueryField: ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>>): this;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| ExploreQueryField | <code>ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>></code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`this`
|
||||
|
||||
### setExploreQueryField method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setExploreQueryField(ExploreQueryField: ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>>): this;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| ExploreQueryField | <code>ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>></code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`this`
|
||||
|
||||
### setExploreStartPage method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setExploreStartPage(ExploreStartPage: ComponentType<ExploreStartPageProps>): this;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| ExploreStartPage | <code>ComponentType<ExploreStartPageProps></code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`this`
|
||||
|
||||
### setMetadataInspector method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setMetadataInspector(MetadataInspector: ComponentType<MetadataInspectorProps<DSType, TQuery, TOptions>>): this;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| MetadataInspector | <code>ComponentType<MetadataInspectorProps<DSType, TQuery, TOptions>></code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`this`
|
||||
|
||||
### setQueryCtrl method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setQueryCtrl(QueryCtrl: any): this;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| QueryCtrl | <code>any</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`this`
|
||||
|
||||
### setQueryEditor method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setQueryEditor(QueryEditor: ComponentType<QueryEditorProps<DSType, TQuery, TOptions>>): this;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| QueryEditor | <code>ComponentType<QueryEditorProps<DSType, TQuery, TOptions>></code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`this`
|
||||
|
||||
### setVariableQueryEditor method
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
setVariableQueryEditor(VariableQueryEditor: any): this;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| VariableQueryEditor | <code>any</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`this`
|
||||
|
@ -1,115 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourcePluginComponents"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourcePluginComponents interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataSourcePluginComponents<DSType extends DataSourceApi<TQuery, TOptions>, TQuery extends DataQuery = DataQuery, TOptions extends DataSourceJsonData = DataSourceJsonData, TSecureOptions = {}>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourcePluginComponents } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [AnnotationsQueryCtrl](#annotationsqueryctrl-property) | <code>any</code> | |
|
||||
| [ConfigEditor](#configeditor-property) | <code>ComponentType<DataSourcePluginOptionsEditorProps<TOptions, TSecureOptions>></code> | |
|
||||
| [ExploreLogsQueryField](#explorelogsqueryfield-property) | <code>ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>></code> | |
|
||||
| [ExploreMetricsQueryField](#exploremetricsqueryfield-property) | <code>ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>></code> | |
|
||||
| [ExploreQueryField](#explorequeryfield-property) | <code>ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>></code> | |
|
||||
| [ExploreStartPage](#explorestartpage-property) | <code>ComponentType<ExploreStartPageProps></code> | |
|
||||
| [MetadataInspector](#metadatainspector-property) | <code>ComponentType<MetadataInspectorProps<DSType, TQuery, TOptions>></code> | |
|
||||
| [QueryCtrl](#queryctrl-property) | <code>any</code> | |
|
||||
| [QueryEditor](#queryeditor-property) | <code>ComponentType<QueryEditorProps<DSType, TQuery, TOptions>></code> | |
|
||||
| [VariableQueryEditor](#variablequeryeditor-property) | <code>any</code> | |
|
||||
|
||||
### AnnotationsQueryCtrl property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
AnnotationsQueryCtrl?: any;
|
||||
```
|
||||
|
||||
### ConfigEditor property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
ConfigEditor?: ComponentType<DataSourcePluginOptionsEditorProps<TOptions, TSecureOptions>>;
|
||||
```
|
||||
|
||||
### ExploreLogsQueryField property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
ExploreLogsQueryField?: ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>>;
|
||||
```
|
||||
|
||||
### ExploreMetricsQueryField property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
ExploreMetricsQueryField?: ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>>;
|
||||
```
|
||||
|
||||
### ExploreQueryField property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
ExploreQueryField?: ComponentType<ExploreQueryFieldProps<DSType, TQuery, TOptions>>;
|
||||
```
|
||||
|
||||
### ExploreStartPage property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
ExploreStartPage?: ComponentType<ExploreStartPageProps>;
|
||||
```
|
||||
|
||||
### MetadataInspector property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
MetadataInspector?: ComponentType<MetadataInspectorProps<DSType, TQuery, TOptions>>;
|
||||
```
|
||||
|
||||
### QueryCtrl property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
QueryCtrl?: any;
|
||||
```
|
||||
|
||||
### QueryEditor property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
QueryEditor?: ComponentType<QueryEditorProps<DSType, TQuery, TOptions>>;
|
||||
```
|
||||
|
||||
### VariableQueryEditor property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
VariableQueryEditor?: any;
|
||||
```
|
@ -1,133 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourcePluginMeta"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourcePluginMeta interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataSourcePluginMeta<T extends KeyValue = {}> extends PluginMeta<T>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourcePluginMeta } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [alerting](#alerting-property) | <code>boolean</code> | |
|
||||
| [annotations](#annotations-property) | <code>boolean</code> | |
|
||||
| [builtIn](#builtin-property) | <code>boolean</code> | |
|
||||
| [category](#category-property) | <code>string</code> | |
|
||||
| [hasQueryHelp](#hasqueryhelp-property) | <code>boolean</code> | |
|
||||
| [logs](#logs-property) | <code>boolean</code> | |
|
||||
| [metrics](#metrics-property) | <code>boolean</code> | |
|
||||
| [mixed](#mixed-property) | <code>boolean</code> | |
|
||||
| [queryOptions](#queryoptions-property) | <code>PluginMetaQueryOptions</code> | |
|
||||
| [sort](#sort-property) | <code>number</code> | |
|
||||
| [streaming](#streaming-property) | <code>boolean</code> | |
|
||||
| [tracing](#tracing-property) | <code>boolean</code> | |
|
||||
|
||||
### alerting property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
alerting?: boolean;
|
||||
```
|
||||
|
||||
### annotations property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
annotations?: boolean;
|
||||
```
|
||||
|
||||
### builtIn property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
builtIn?: boolean;
|
||||
```
|
||||
|
||||
### category property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
category?: string;
|
||||
```
|
||||
|
||||
### hasQueryHelp property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
hasQueryHelp?: boolean;
|
||||
```
|
||||
|
||||
### logs property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
logs?: boolean;
|
||||
```
|
||||
|
||||
### metrics property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
metrics?: boolean;
|
||||
```
|
||||
|
||||
### mixed property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
mixed?: boolean;
|
||||
```
|
||||
|
||||
### queryOptions property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
queryOptions?: PluginMetaQueryOptions;
|
||||
```
|
||||
|
||||
### sort property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
sort?: number;
|
||||
```
|
||||
|
||||
### streaming property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
streaming?: boolean;
|
||||
```
|
||||
|
||||
### tracing property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
tracing?: boolean;
|
||||
```
|
@ -1,43 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourcePluginOptionsEditorProps"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourcePluginOptionsEditorProps interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataSourcePluginOptionsEditorProps<JSONData = DataSourceJsonData, SecureJSONData = {}>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourcePluginOptionsEditorProps } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [onOptionsChange](#onoptionschange-property) | <code>(options: DataSourceSettings<JSONData, SecureJSONData>) => void</code> | |
|
||||
| [options](#options-property) | <code>DataSourceSettings<JSONData, SecureJSONData></code> | |
|
||||
|
||||
### onOptionsChange property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
onOptionsChange: (options: DataSourceSettings<JSONData, SecureJSONData>) => void;
|
||||
```
|
||||
|
||||
### options property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
options: DataSourceSettings<JSONData, SecureJSONData>;
|
||||
```
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourceQueryType"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourceQueryType type
|
||||
|
||||
### DataSourceQueryType type
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare type DataSourceQueryType<DSType extends DataSourceApi<any, any>> = DSType extends DataSourceApi<infer TQuery, infer _TOptions> ? TQuery : never;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourceQueryType } from '@grafana/data';
|
||||
```
|
@ -1,61 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourceSelectItem"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourceSelectItem interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataSourceSelectItem
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourceSelectItem } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [meta](#meta-property) | <code>DataSourcePluginMeta</code> | |
|
||||
| [name](#name-property) | <code>string</code> | |
|
||||
| [sort](#sort-property) | <code>string</code> | |
|
||||
| [value](#value-property) | <code>string | null</code> | |
|
||||
|
||||
### meta property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
meta: DataSourcePluginMeta;
|
||||
```
|
||||
|
||||
### name property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
name: string;
|
||||
```
|
||||
|
||||
### sort property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
sort: string;
|
||||
```
|
||||
|
||||
### value property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
value: string | null;
|
||||
```
|
@ -1,207 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourceSettings"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourceSettings interface
|
||||
|
||||
Data Source instance edit model. This is returned from: /api/datasources
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataSourceSettings<T extends DataSourceJsonData = DataSourceJsonData, S = {}>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourceSettings } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [access](#access-property) | <code>string</code> | |
|
||||
| [basicAuth](#basicauth-property) | <code>boolean</code> | |
|
||||
| [basicAuthPassword](#basicauthpassword-property) | <code>string</code> | |
|
||||
| [basicAuthUser](#basicauthuser-property) | <code>string</code> | |
|
||||
| [database](#database-property) | <code>string</code> | |
|
||||
| [id](#id-property) | <code>number</code> | |
|
||||
| [isDefault](#isdefault-property) | <code>boolean</code> | |
|
||||
| [jsonData](#jsondata-property) | <code>T</code> | |
|
||||
| [name](#name-property) | <code>string</code> | |
|
||||
| [orgId](#orgid-property) | <code>number</code> | |
|
||||
| [password](#password-property) | <code>string</code> | |
|
||||
| [readOnly](#readonly-property) | <code>boolean</code> | |
|
||||
| [secureJsonData](#securejsondata-property) | <code>S</code> | |
|
||||
| [secureJsonFields](#securejsonfields-property) | <code>KeyValue<boolean></code> | |
|
||||
| [type](#type-property) | <code>string</code> | |
|
||||
| [typeLogoUrl](#typelogourl-property) | <code>string</code> | |
|
||||
| [url](#url-property) | <code>string</code> | |
|
||||
| [user](#user-property) | <code>string</code> | |
|
||||
| [version](#version-property) | <code>number</code> | |
|
||||
| [withCredentials](#withcredentials-property) | <code>boolean</code> | |
|
||||
|
||||
### access property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
access: string;
|
||||
```
|
||||
|
||||
### basicAuth property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
basicAuth: boolean;
|
||||
```
|
||||
|
||||
### basicAuthPassword property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
basicAuthPassword: string;
|
||||
```
|
||||
|
||||
### basicAuthUser property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
basicAuthUser: string;
|
||||
```
|
||||
|
||||
### database property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
database: string;
|
||||
```
|
||||
|
||||
### id property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
id: number;
|
||||
```
|
||||
|
||||
### isDefault property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
isDefault: boolean;
|
||||
```
|
||||
|
||||
### jsonData property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
jsonData: T;
|
||||
```
|
||||
|
||||
### name property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
name: string;
|
||||
```
|
||||
|
||||
### orgId property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
orgId: number;
|
||||
```
|
||||
|
||||
### password property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
password: string;
|
||||
```
|
||||
|
||||
### readOnly property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
readOnly: boolean;
|
||||
```
|
||||
|
||||
### secureJsonData property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
secureJsonData?: S;
|
||||
```
|
||||
|
||||
### secureJsonFields property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
secureJsonFields?: KeyValue<boolean>;
|
||||
```
|
||||
|
||||
### type property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
type: string;
|
||||
```
|
||||
|
||||
### typeLogoUrl property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
typeLogoUrl: string;
|
||||
```
|
||||
|
||||
### url property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
url: string;
|
||||
```
|
||||
|
||||
### user property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
user: string;
|
||||
```
|
||||
|
||||
### version property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
version?: number;
|
||||
```
|
||||
|
||||
### withCredentials property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
withCredentials: boolean;
|
||||
```
|
@ -1,31 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataSourceStatus"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataSourceStatus enum
|
||||
|
||||
### DataSourceStatus enum
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare enum DataSourceStatus
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataSourceStatus } from '@grafana/data';
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| Connected | <code>0</code> | |
|
||||
| Disconnected | <code>1</code> | |
|
||||
|
@ -1,25 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataTransformer"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataTransformer type
|
||||
|
||||
### DataTransformer type
|
||||
|
||||
Function that transform data frames (AKA transformer)
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare type DataTransformer = (data: DataFrame[]) => DataFrame[];
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataTransformer } from '@grafana/data';
|
||||
```
|
@ -1,47 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataTransformerConfig"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataTransformerConfig interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataTransformerConfig<TOptions = any>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataTransformerConfig } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [id](#id-property) | <code>string</code> | Unique identifier of transformer |
|
||||
| [options](#options-property) | <code>TOptions</code> | Options to be passed to the transformer |
|
||||
|
||||
### id property
|
||||
|
||||
Unique identifier of transformer
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
id: string;
|
||||
```
|
||||
|
||||
### options property
|
||||
|
||||
Options to be passed to the transformer
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
options: TOptions;
|
||||
```
|
@ -1,44 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataTransformerID"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataTransformerID enum
|
||||
|
||||
### DataTransformerID enum
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare enum DataTransformerID
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataTransformerID } from '@grafana/data';
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| append | <code>"append"</code> | |
|
||||
| calculateField | <code>"calculateField"</code> | |
|
||||
| ensureColumns | <code>"ensureColumns"</code> | |
|
||||
| filterByRefId | <code>"filterByRefId"</code> | |
|
||||
| filterFields | <code>"filterFields"</code> | |
|
||||
| filterFieldsByName | <code>"filterFieldsByName"</code> | |
|
||||
| filterFrames | <code>"filterFrames"</code> | |
|
||||
| labelsToFields | <code>"labelsToFields"</code> | |
|
||||
| merge | <code>"merge"</code> | |
|
||||
| noop | <code>"noop"</code> | |
|
||||
| order | <code>"order"</code> | |
|
||||
| organize | <code>"organize"</code> | |
|
||||
| reduce | <code>"reduce"</code> | |
|
||||
| rename | <code>"rename"</code> | |
|
||||
| seriesToColumns | <code>"seriesToColumns"</code> | |
|
||||
|
@ -1,36 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DataTransformerInfo"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DataTransformerInfo interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DataTransformerInfo<TOptions = any> extends RegistryItemWithOptions
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DataTransformerInfo } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [transformer](#transformer-property) | <code>(options: TOptions) => DataTransformer</code> | Function that configures transformation and returns a transformer |
|
||||
|
||||
### transformer property
|
||||
|
||||
Function that configures transformation and returns a transformer
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
transformer: (options: TOptions) => DataTransformer;
|
||||
```
|
@ -1,31 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "dateMath"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dateMath namespace
|
||||
|
||||
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
||||
>
|
||||
|
||||
### dateMath namespace
|
||||
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dateMath } from '@grafana/data';
|
||||
```
|
||||
|
||||
## Functions
|
||||
|
||||
| Function | Description |
|
||||
| --- | --- |
|
||||
| [isMathString(text)](./ismathstring/) | |
|
||||
| [isValid(text)](./isvalid/) | Checks if text is a valid date which in this context means that it is either a Moment instance or it can be parsed by parse function. See parse function to see what is considered acceptable. |
|
||||
| [parse(text, roundUp, timezone)](./parse/) | Parses different types input to a moment instance. There is a specific formatting language that can be used if text arg is string. See unit tests for examples. |
|
||||
| [parseDateMath(mathString, time, roundUp)](./parsedatemath/) | Parses math part of the time string and shifts supplied time according to that math. See unit tests for examples. |
|
||||
|
@ -1,34 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "isMathString"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dateMath.isMathString() function
|
||||
|
||||
### dateMath.isMathString() function
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare function isMathString(text: string | DateTime | Date): boolean;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dateMath } from '@grafana/data';
|
||||
const { isMathString } = dateMath;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| text | <code>string | DateTime | Date</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`boolean`
|
||||
|
@ -1,36 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "isValid"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dateMath.isValid() function
|
||||
|
||||
### dateMath.isValid() function
|
||||
|
||||
Checks if text is a valid date which in this context means that it is either a Moment instance or it can be parsed by parse function. See parse function to see what is considered acceptable.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare function isValid(text: string | DateTime): boolean;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dateMath } from '@grafana/data';
|
||||
const { isValid } = dateMath;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| text | <code>string | DateTime</code> | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`boolean`
|
||||
|
@ -1,38 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "parse"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dateMath.parse() function
|
||||
|
||||
### dateMath.parse() function
|
||||
|
||||
Parses different types input to a moment instance. There is a specific formatting language that can be used if text arg is string. See unit tests for examples.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare function parse(text?: string | DateTime | Date | null, roundUp?: boolean, timezone?: TimeZone): DateTime | undefined;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dateMath } from '@grafana/data';
|
||||
const { parse } = dateMath;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| text | <code>string | DateTime | Date | null</code> | |
|
||||
| roundUp | <code>boolean</code> | See parseDateMath function. |
|
||||
| timezone | <code>TimeZone</code> | Only string 'utc' is acceptable here, for anything else, local timezone is used. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`DateTime | undefined`
|
||||
|
@ -1,38 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "parseDateMath"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dateMath.parseDateMath() function
|
||||
|
||||
### dateMath.parseDateMath() function
|
||||
|
||||
Parses math part of the time string and shifts supplied time according to that math. See unit tests for examples.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare function parseDateMath(mathString: string, time: any, roundUp?: boolean): DateTime | undefined;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dateMath } from '@grafana/data';
|
||||
const { parseDateMath } = dateMath;
|
||||
```
|
||||
<b>Parameters</b>
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| mathString | <code>string</code> | |
|
||||
| time | <code>any</code> | |
|
||||
| roundUp | <code>boolean</code> | If true it will round the time to endOf time unit, otherwise to startOf time unit. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
`DateTime | undefined`
|
||||
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "dateTime"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dateTime variable
|
||||
|
||||
### dateTime variable
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
dateTime: (input?: string | number | DateTime | Date | (string | number)[] | undefined, formatInput?: FormatInput) => DateTime
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dateTime } from '@grafana/data';
|
||||
```
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "dateTimeAsMoment"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dateTimeAsMoment variable
|
||||
|
||||
### dateTimeAsMoment variable
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
dateTimeAsMoment: (input?: string | number | DateTime | Date | (string | number)[] | undefined) => moment.Moment
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dateTimeAsMoment } from '@grafana/data';
|
||||
```
|
@ -1,34 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DateTimeBuiltinFormat"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DateTimeBuiltinFormat interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DateTimeBuiltinFormat
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DateTimeBuiltinFormat } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [\_\_momentBuiltinFormatBrand](#__momentbuiltinformatbrand-property) | <code>any</code> | |
|
||||
|
||||
### \_\_momentBuiltinFormatBrand property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
__momentBuiltinFormatBrand: any;
|
||||
```
|
@ -1,70 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DateTimeDuration"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DateTimeDuration interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DateTimeDuration
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DateTimeDuration } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [asHours](#ashours-property) | <code>() => number</code> | |
|
||||
| [asSeconds](#asseconds-property) | <code>() => number</code> | |
|
||||
| [hours](#hours-property) | <code>() => number</code> | |
|
||||
| [minutes](#minutes-property) | <code>() => number</code> | |
|
||||
| [seconds](#seconds-property) | <code>() => number</code> | |
|
||||
|
||||
### asHours property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
asHours: () => number;
|
||||
```
|
||||
|
||||
### asSeconds property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
asSeconds: () => number;
|
||||
```
|
||||
|
||||
### hours property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
hours: () => number;
|
||||
```
|
||||
|
||||
### minutes property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
minutes: () => number;
|
||||
```
|
||||
|
||||
### seconds property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
seconds: () => number;
|
||||
```
|
@ -1,25 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "dateTimeFormat"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dateTimeFormat variable
|
||||
|
||||
### dateTimeFormat variable
|
||||
|
||||
Helper function to format date and time according to the specified options. If no options are supplied, then default values are used. For more details, see [DateTimeOptionsWithFormat](./data/datetimeoptionswithformat.md)<!-- -->.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
dateTimeFormat: DateTimeFormatter<DateTimeOptionsWithFormat>
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dateTimeFormat } from '@grafana/data';
|
||||
```
|
@ -1,25 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "dateTimeFormatISO"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dateTimeFormatISO variable
|
||||
|
||||
### dateTimeFormatISO variable
|
||||
|
||||
Helper function to format date and time according to the standard ISO format e.g. 2013-02-04T22:44:30.652Z. If no options are supplied, then default values are used. For more details, see [DateTimeOptionsWithFormat](./data/datetimeoptionswithformat.md)<!-- -->.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
dateTimeFormatISO: DateTimeFormatter
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dateTimeFormatISO } from '@grafana/data';
|
||||
```
|
@ -1,25 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "dateTimeFormatTimeAgo"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dateTimeFormatTimeAgo variable
|
||||
|
||||
### dateTimeFormatTimeAgo variable
|
||||
|
||||
Helper function to return elapsed time since passed date. The returned value will be formatted in a human readable format e.g. 4 years ago. If no options are supplied, then default values are used. For more details, see [DateTimeOptions](./data/datetimeoptions.md)<!-- -->.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
dateTimeFormatTimeAgo: DateTimeFormatter
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dateTimeFormatTimeAgo } from '@grafana/data';
|
||||
```
|
@ -1,25 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "dateTimeFormatWithAbbrevation"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dateTimeFormatWithAbbrevation variable
|
||||
|
||||
### dateTimeFormatWithAbbrevation variable
|
||||
|
||||
Helper function to format date and time according to the Grafana default formatting, but it also appends the time zone abbreviation at the end e.g. 2020-05-20 13:37:00 CET. If no options are supplied, then default values are used. For more details please see [DateTimeOptions](./data/datetimeoptions.md)<!-- -->.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
dateTimeFormatWithAbbrevation: DateTimeFormatter
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dateTimeFormatWithAbbrevation } from '@grafana/data';
|
||||
```
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "dateTimeForTimeZone"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## dateTimeForTimeZone variable
|
||||
|
||||
### dateTimeForTimeZone variable
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
dateTimeForTimeZone: (timezone?: string | undefined, input?: string | number | DateTime | Date | (string | number)[] | undefined, formatInput?: FormatInput) => DateTime
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { dateTimeForTimeZone } from '@grafana/data';
|
||||
```
|
@ -1,23 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DateTimeInput"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DateTimeInput type
|
||||
|
||||
### DateTimeInput type
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export declare type DateTimeInput = Date | string | number | Array<string | number> | DateTime;
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DateTimeInput } from '@grafana/data';
|
||||
```
|
@ -1,34 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DateTimeLocale"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DateTimeLocale interface
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DateTimeLocale
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DateTimeLocale } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [firstDayOfWeek](#firstdayofweek-property) | <code>() => number</code> | |
|
||||
|
||||
### firstDayOfWeek property
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
firstDayOfWeek: () => number;
|
||||
```
|
@ -1,38 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DateTimeOptions"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DateTimeOptions interface
|
||||
|
||||
The type describing date and time options. Used for all the helper functions available to parse or format date and time values.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DateTimeOptions
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DateTimeOptions } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [timeZone](#timezone-property) | <code>TimeZone</code> | Specify this if you want to override the timeZone used when parsing or formatting a date and time value. If no timeZone is set, the default timeZone for the current user is used. |
|
||||
|
||||
### timeZone property
|
||||
|
||||
Specify this if you want to override the timeZone used when parsing or formatting a date and time value. If no timeZone is set, the default timeZone for the current user is used.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
timeZone?: TimeZone;
|
||||
```
|
@ -1,40 +0,0 @@
|
||||
+++
|
||||
# -----------------------------------------------------------------------
|
||||
# Do not edit this file. It is automatically generated by API Documenter.
|
||||
# -----------------------------------------------------------------------
|
||||
title = "DateTimeOptionsWhenParsing"
|
||||
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
||||
type = "docs"
|
||||
+++
|
||||
|
||||
## DateTimeOptionsWhenParsing interface
|
||||
|
||||
The type that describes options that can be passed when parsing a date and time value.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
export interface DateTimeOptionsWhenParsing extends DateTimeOptions
|
||||
```
|
||||
<b>Import</b>
|
||||
|
||||
```typescript
|
||||
import { DateTimeOptionsWhenParsing } from '@grafana/data';
|
||||
```
|
||||
<b>Properties</b>
|
||||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [roundUp](#roundup-property) | <code>boolean</code> | If the input is a Grafana quick date, e.g. now-6h, then you can specify this to control whether the last part of the date and time value is included or excluded.<!-- -->Example: now-6h and the current time is 12:20:00 if roundUp is set to true the returned DateTime value will be 06:00:00. |
|
||||
|
||||
### roundUp property
|
||||
|
||||
If the input is a Grafana quick date, e.g. now-6h, then you can specify this to control whether the last part of the date and time value is included or excluded.
|
||||
|
||||
Example: now-6h and the current time is 12:20:00 if roundUp is set to true the returned DateTime value will be 06:00:00.
|
||||
|
||||
<b>Signature</b>
|
||||
|
||||
```typescript
|
||||
roundUp?: boolean;
|
||||
```
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user