mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
664 lines
No EOL
21 KiB
JSON
664 lines
No EOL
21 KiB
JSON
{
|
|
"id": "expressionMetric",
|
|
"client": {
|
|
"classes": [],
|
|
"functions": [
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-public.getMetricRenderer",
|
|
"type": "Function",
|
|
"tags": [],
|
|
"label": "getMetricRenderer",
|
|
"description": [],
|
|
"signature": [
|
|
"(theme$?: ",
|
|
"Observable",
|
|
"<",
|
|
{
|
|
"pluginId": "@kbn/core-theme-browser",
|
|
"scope": "common",
|
|
"docId": "kibKbnCoreThemeBrowserPluginApi",
|
|
"section": "def-common.CoreTheme",
|
|
"text": "CoreTheme"
|
|
},
|
|
">) => () => ",
|
|
{
|
|
"pluginId": "expressions",
|
|
"scope": "common",
|
|
"docId": "kibExpressionsPluginApi",
|
|
"section": "def-common.ExpressionRenderDefinition",
|
|
"text": "ExpressionRenderDefinition"
|
|
},
|
|
"<",
|
|
{
|
|
"pluginId": "expressionMetric",
|
|
"scope": "common",
|
|
"docId": "kibExpressionMetricPluginApi",
|
|
"section": "def-common.MetricRendererConfig",
|
|
"text": "MetricRendererConfig"
|
|
},
|
|
">"
|
|
],
|
|
"path": "src/plugins/expression_metric/public/expression_renderers/metric_renderer.tsx",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"children": [
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-public.getMetricRenderer.$1",
|
|
"type": "Object",
|
|
"tags": [],
|
|
"label": "theme$",
|
|
"description": [],
|
|
"signature": [
|
|
"Observable",
|
|
"<",
|
|
{
|
|
"pluginId": "@kbn/core-theme-browser",
|
|
"scope": "common",
|
|
"docId": "kibKbnCoreThemeBrowserPluginApi",
|
|
"section": "def-common.CoreTheme",
|
|
"text": "CoreTheme"
|
|
},
|
|
">"
|
|
],
|
|
"path": "src/plugins/expression_metric/public/expression_renderers/metric_renderer.tsx",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"isRequired": true
|
|
}
|
|
],
|
|
"returnComment": [],
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-public.metricRendererFactory",
|
|
"type": "Function",
|
|
"tags": [],
|
|
"label": "metricRendererFactory",
|
|
"description": [],
|
|
"signature": [
|
|
"(core: ",
|
|
{
|
|
"pluginId": "@kbn/core-lifecycle-browser",
|
|
"scope": "common",
|
|
"docId": "kibKbnCoreLifecycleBrowserPluginApi",
|
|
"section": "def-common.CoreSetup",
|
|
"text": "CoreSetup"
|
|
},
|
|
"<object, unknown>) => () => ",
|
|
{
|
|
"pluginId": "expressions",
|
|
"scope": "common",
|
|
"docId": "kibExpressionsPluginApi",
|
|
"section": "def-common.ExpressionRenderDefinition",
|
|
"text": "ExpressionRenderDefinition"
|
|
},
|
|
"<",
|
|
{
|
|
"pluginId": "expressionMetric",
|
|
"scope": "common",
|
|
"docId": "kibExpressionMetricPluginApi",
|
|
"section": "def-common.MetricRendererConfig",
|
|
"text": "MetricRendererConfig"
|
|
},
|
|
">"
|
|
],
|
|
"path": "src/plugins/expression_metric/public/expression_renderers/metric_renderer.tsx",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"children": [
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-public.metricRendererFactory.$1",
|
|
"type": "Object",
|
|
"tags": [],
|
|
"label": "core",
|
|
"description": [],
|
|
"signature": [
|
|
{
|
|
"pluginId": "@kbn/core-lifecycle-browser",
|
|
"scope": "common",
|
|
"docId": "kibKbnCoreLifecycleBrowserPluginApi",
|
|
"section": "def-common.CoreSetup",
|
|
"text": "CoreSetup"
|
|
},
|
|
"<object, unknown>"
|
|
],
|
|
"path": "src/plugins/expression_metric/public/expression_renderers/metric_renderer.tsx",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"isRequired": true
|
|
}
|
|
],
|
|
"returnComment": [],
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"interfaces": [],
|
|
"enums": [],
|
|
"misc": [],
|
|
"objects": [],
|
|
"start": {
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-public.ExpressionMetricPluginStart",
|
|
"type": "Type",
|
|
"tags": [],
|
|
"label": "ExpressionMetricPluginStart",
|
|
"description": [],
|
|
"signature": [
|
|
"void"
|
|
],
|
|
"path": "src/plugins/expression_metric/public/plugin.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"lifecycle": "start",
|
|
"initialIsOpen": true
|
|
}
|
|
},
|
|
"server": {
|
|
"classes": [],
|
|
"functions": [],
|
|
"interfaces": [],
|
|
"enums": [],
|
|
"misc": [],
|
|
"objects": [],
|
|
"start": {
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-server.ExpressionMetricPluginStart",
|
|
"type": "Type",
|
|
"tags": [],
|
|
"label": "ExpressionMetricPluginStart",
|
|
"description": [],
|
|
"signature": [
|
|
"void"
|
|
],
|
|
"path": "src/plugins/expression_metric/server/plugin.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"lifecycle": "start",
|
|
"initialIsOpen": true
|
|
}
|
|
},
|
|
"common": {
|
|
"classes": [],
|
|
"functions": [
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.metricFunction",
|
|
"type": "Function",
|
|
"tags": [],
|
|
"label": "metricFunction",
|
|
"description": [],
|
|
"signature": [
|
|
"() => { name: \"metric\"; aliases: never[]; type: \"render\"; inputTypes: (\"number\" | \"null\" | \"string\")[]; help: any; args: { label: { types: \"string\"[]; aliases: string[]; help: any; default: string; }; labelFont: { types: \"style\"[]; help: any; default: string; }; metricFont: { types: \"style\"[]; help: any; default: string; }; metricFormat: { types: \"string\"[]; aliases: string[]; help: any; }; }; fn: (input: ",
|
|
{
|
|
"pluginId": "expressionMetric",
|
|
"scope": "common",
|
|
"docId": "kibExpressionMetricPluginApi",
|
|
"section": "def-common.Input",
|
|
"text": "Input"
|
|
},
|
|
", { label, labelFont, metricFont, metricFormat }: ",
|
|
{
|
|
"pluginId": "expressionMetric",
|
|
"scope": "common",
|
|
"docId": "kibExpressionMetricPluginApi",
|
|
"section": "def-common.Arguments",
|
|
"text": "Arguments"
|
|
},
|
|
") => { type: \"render\"; as: string; value: { metric: string | number; label: string; labelFont: ",
|
|
{
|
|
"pluginId": "expressions",
|
|
"scope": "common",
|
|
"docId": "kibExpressionsPluginApi",
|
|
"section": "def-common.ExpressionTypeStyle",
|
|
"text": "ExpressionTypeStyle"
|
|
},
|
|
"; metricFont: ",
|
|
{
|
|
"pluginId": "expressions",
|
|
"scope": "common",
|
|
"docId": "kibExpressionsPluginApi",
|
|
"section": "def-common.ExpressionTypeStyle",
|
|
"text": "ExpressionTypeStyle"
|
|
},
|
|
"; metricFormat: string; }; }; }"
|
|
],
|
|
"path": "src/plugins/expression_metric/common/expression_functions/metric_function.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"children": [],
|
|
"returnComment": [],
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"interfaces": [
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.Arguments",
|
|
"type": "Interface",
|
|
"tags": [],
|
|
"label": "Arguments",
|
|
"description": [],
|
|
"path": "src/plugins/expression_metric/common/types/expression_functions.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"children": [
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.Arguments.label",
|
|
"type": "string",
|
|
"tags": [],
|
|
"label": "label",
|
|
"description": [],
|
|
"path": "src/plugins/expression_metric/common/types/expression_functions.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.Arguments.metricFont",
|
|
"type": "Object",
|
|
"tags": [],
|
|
"label": "metricFont",
|
|
"description": [],
|
|
"signature": [
|
|
{
|
|
"pluginId": "expressions",
|
|
"scope": "common",
|
|
"docId": "kibExpressionsPluginApi",
|
|
"section": "def-common.ExpressionTypeStyle",
|
|
"text": "ExpressionTypeStyle"
|
|
}
|
|
],
|
|
"path": "src/plugins/expression_metric/common/types/expression_functions.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.Arguments.metricFormat",
|
|
"type": "string",
|
|
"tags": [],
|
|
"label": "metricFormat",
|
|
"description": [],
|
|
"path": "src/plugins/expression_metric/common/types/expression_functions.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.Arguments.labelFont",
|
|
"type": "Object",
|
|
"tags": [],
|
|
"label": "labelFont",
|
|
"description": [],
|
|
"signature": [
|
|
{
|
|
"pluginId": "expressions",
|
|
"scope": "common",
|
|
"docId": "kibExpressionsPluginApi",
|
|
"section": "def-common.ExpressionTypeStyle",
|
|
"text": "ExpressionTypeStyle"
|
|
}
|
|
],
|
|
"path": "src/plugins/expression_metric/common/types/expression_functions.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false
|
|
}
|
|
],
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.MetricRendererConfig",
|
|
"type": "Interface",
|
|
"tags": [],
|
|
"label": "MetricRendererConfig",
|
|
"description": [],
|
|
"path": "src/plugins/expression_metric/common/types/expression_renderers.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"children": [
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.MetricRendererConfig.label",
|
|
"type": "string",
|
|
"tags": [],
|
|
"label": "label",
|
|
"description": [
|
|
"The text to display under the metric"
|
|
],
|
|
"path": "src/plugins/expression_metric/common/types/expression_renderers.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.MetricRendererConfig.labelFont",
|
|
"type": "Object",
|
|
"tags": [],
|
|
"label": "labelFont",
|
|
"description": [
|
|
"Font settings for the label"
|
|
],
|
|
"signature": [
|
|
{
|
|
"pluginId": "expressions",
|
|
"scope": "common",
|
|
"docId": "kibExpressionsPluginApi",
|
|
"section": "def-common.ExpressionTypeStyle",
|
|
"text": "ExpressionTypeStyle"
|
|
}
|
|
],
|
|
"path": "src/plugins/expression_metric/common/types/expression_renderers.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.MetricRendererConfig.metric",
|
|
"type": "CompoundType",
|
|
"tags": [],
|
|
"label": "metric",
|
|
"description": [
|
|
"Value of the metric to display"
|
|
],
|
|
"signature": [
|
|
"string | number | null"
|
|
],
|
|
"path": "src/plugins/expression_metric/common/types/expression_renderers.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.MetricRendererConfig.metricFont",
|
|
"type": "Object",
|
|
"tags": [],
|
|
"label": "metricFont",
|
|
"description": [
|
|
"Font settings for the metric"
|
|
],
|
|
"signature": [
|
|
{
|
|
"pluginId": "expressions",
|
|
"scope": "common",
|
|
"docId": "kibExpressionsPluginApi",
|
|
"section": "def-common.ExpressionTypeStyle",
|
|
"text": "ExpressionTypeStyle"
|
|
}
|
|
],
|
|
"path": "src/plugins/expression_metric/common/types/expression_renderers.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.MetricRendererConfig.metricFormat",
|
|
"type": "string",
|
|
"tags": [],
|
|
"label": "metricFormat",
|
|
"description": [
|
|
"NumeralJS format string"
|
|
],
|
|
"path": "src/plugins/expression_metric/common/types/expression_renderers.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false
|
|
}
|
|
],
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.NodeDimensions",
|
|
"type": "Interface",
|
|
"tags": [],
|
|
"label": "NodeDimensions",
|
|
"description": [],
|
|
"path": "src/plugins/expression_metric/common/types/expression_renderers.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"children": [
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.NodeDimensions.width",
|
|
"type": "number",
|
|
"tags": [],
|
|
"label": "width",
|
|
"description": [],
|
|
"path": "src/plugins/expression_metric/common/types/expression_renderers.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.NodeDimensions.height",
|
|
"type": "number",
|
|
"tags": [],
|
|
"label": "height",
|
|
"description": [],
|
|
"path": "src/plugins/expression_metric/common/types/expression_renderers.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false
|
|
}
|
|
],
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"enums": [],
|
|
"misc": [
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.CSS",
|
|
"type": "string",
|
|
"tags": [],
|
|
"label": "CSS",
|
|
"description": [],
|
|
"signature": [
|
|
"\"CSS\""
|
|
],
|
|
"path": "src/plugins/expression_metric/common/constants.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.ExpressionMetricFunction",
|
|
"type": "Type",
|
|
"tags": [],
|
|
"label": "ExpressionMetricFunction",
|
|
"description": [],
|
|
"signature": [
|
|
"() => ",
|
|
{
|
|
"pluginId": "expressions",
|
|
"scope": "common",
|
|
"docId": "kibExpressionsPluginApi",
|
|
"section": "def-common.ExpressionFunctionDefinition",
|
|
"text": "ExpressionFunctionDefinition"
|
|
},
|
|
"<\"metric\", ",
|
|
{
|
|
"pluginId": "expressionMetric",
|
|
"scope": "common",
|
|
"docId": "kibExpressionMetricPluginApi",
|
|
"section": "def-common.Input",
|
|
"text": "Input"
|
|
},
|
|
", ",
|
|
{
|
|
"pluginId": "expressionMetric",
|
|
"scope": "common",
|
|
"docId": "kibExpressionMetricPluginApi",
|
|
"section": "def-common.Arguments",
|
|
"text": "Arguments"
|
|
},
|
|
", ",
|
|
{
|
|
"pluginId": "expressions",
|
|
"scope": "common",
|
|
"docId": "kibExpressionsPluginApi",
|
|
"section": "def-common.ExpressionValueRender",
|
|
"text": "ExpressionValueRender"
|
|
},
|
|
"<",
|
|
{
|
|
"pluginId": "expressionMetric",
|
|
"scope": "common",
|
|
"docId": "kibExpressionMetricPluginApi",
|
|
"section": "def-common.Arguments",
|
|
"text": "Arguments"
|
|
},
|
|
">, ",
|
|
{
|
|
"pluginId": "expressions",
|
|
"scope": "common",
|
|
"docId": "kibExpressionsPluginApi",
|
|
"section": "def-common.ExecutionContext",
|
|
"text": "ExecutionContext"
|
|
},
|
|
"<",
|
|
{
|
|
"pluginId": "inspector",
|
|
"scope": "common",
|
|
"docId": "kibInspectorPluginApi",
|
|
"section": "def-common.Adapters",
|
|
"text": "Adapters"
|
|
},
|
|
", ",
|
|
{
|
|
"pluginId": "@kbn/utility-types",
|
|
"scope": "server",
|
|
"docId": "kibKbnUtilityTypesPluginApi",
|
|
"section": "def-server.SerializableRecord",
|
|
"text": "SerializableRecord"
|
|
},
|
|
">>"
|
|
],
|
|
"path": "src/plugins/expression_metric/common/types/expression_functions.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"returnComment": [],
|
|
"children": [],
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.FONT_FAMILY",
|
|
"type": "string",
|
|
"tags": [],
|
|
"label": "FONT_FAMILY",
|
|
"description": [],
|
|
"signature": [
|
|
"\"`font-family`\""
|
|
],
|
|
"path": "src/plugins/expression_metric/common/constants.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.FONT_WEIGHT",
|
|
"type": "string",
|
|
"tags": [],
|
|
"label": "FONT_WEIGHT",
|
|
"description": [],
|
|
"signature": [
|
|
"\"`font-weight`\""
|
|
],
|
|
"path": "src/plugins/expression_metric/common/constants.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.functions",
|
|
"type": "Array",
|
|
"tags": [],
|
|
"label": "functions",
|
|
"description": [],
|
|
"signature": [
|
|
{
|
|
"pluginId": "expressionMetric",
|
|
"scope": "common",
|
|
"docId": "kibExpressionMetricPluginApi",
|
|
"section": "def-common.ExpressionMetricFunction",
|
|
"text": "ExpressionMetricFunction"
|
|
},
|
|
"[]"
|
|
],
|
|
"path": "src/plugins/expression_metric/common/expression_functions/index.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.Input",
|
|
"type": "Type",
|
|
"tags": [],
|
|
"label": "Input",
|
|
"description": [],
|
|
"signature": [
|
|
"string | number | null"
|
|
],
|
|
"path": "src/plugins/expression_metric/common/types/expression_functions.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.NUMERALJS",
|
|
"type": "string",
|
|
"tags": [],
|
|
"label": "NUMERALJS",
|
|
"description": [],
|
|
"signature": [
|
|
"\"Numeral pattern\""
|
|
],
|
|
"path": "src/plugins/expression_metric/common/constants.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.PLUGIN_ID",
|
|
"type": "string",
|
|
"tags": [],
|
|
"label": "PLUGIN_ID",
|
|
"description": [],
|
|
"signature": [
|
|
"\"expressionMetric\""
|
|
],
|
|
"path": "src/plugins/expression_metric/common/constants.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"initialIsOpen": false
|
|
},
|
|
{
|
|
"parentPluginId": "expressionMetric",
|
|
"id": "def-common.PLUGIN_NAME",
|
|
"type": "string",
|
|
"tags": [],
|
|
"label": "PLUGIN_NAME",
|
|
"description": [],
|
|
"signature": [
|
|
"\"expressionMetric\""
|
|
],
|
|
"path": "src/plugins/expression_metric/common/constants.ts",
|
|
"deprecated": false,
|
|
"trackAdoption": false,
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"objects": []
|
|
}
|
|
} |