52f41d8750
* Move current alert HTTP APIs to legacy folder (#93943) * Move current HTTP APIs to legacy folder * Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH * Fix failing tests and extra files * Create new rule HTTP APIs (#93980) * Move current HTTP APIs to legacy folder * Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH * Fix failing tests and extra files * Move current alert HTTP APIs to legacy folder (#93943) * Move current HTTP APIs to legacy folder * Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH * Fix failing tests and extra files * Add necessary files * Create rule route * Get rule API * Update rule API * Delete rule route * Aggregate rules API * Disable rule API * Enable rule API * Find rules API * Fix Update API * Get rule alert summary API * Get rule state API * Health API * Rule types API * Mute all API * Mute alert API * Unmute all API * Unmute alert route * Update API key API * corrected tpye by making it much more complicated * removed unneeded cocde * Fixes * Add back health route * mutedInstanceIds -> mutedAlertIds * lastRun -> last_run * alert_type_state -> rule_type_state & alert_instances -> alerts Co-authored-by: Gidi Meir Morris <github@gidi.io> * Create docs for new rule HTTP APIs, deprecate old docs (#94745) * Create docs for new APIs, deprecate old docs * Remove connector_type_id * Update docs * Add link to legacy APIs from rules API docs * Remove connector_type_id references * [DOCS] Add legacy APIs to index.asciidoc * Fix camel case Co-authored-by: lcawl <lcawley@elastic.co> * Make alerting tests use new rules APIs (#95159) * Make API integration tests use new HTTP APIs * Fix end to end tests * Fix test failures * Fix more test failures * Rename some files * Add tests for legacy APIs (#95333) * Initial commit (#95457) * Move some new alerting APIs to /internal (#95461) * Initial commit * Update README.md * Use internal API * Merge deprecated warning w/ alternative solution * Update API docs Co-authored-by: Gidi Meir Morris <github@gidi.io> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: lcawl <lcawley@elastic.co> # Conflicts: # api_docs/core.json
256 lines
No EOL
7.4 KiB
JSON
256 lines
No EOL
7.4 KiB
JSON
{
|
|
"id": "infra",
|
|
"client": {
|
|
"classes": [],
|
|
"functions": [
|
|
{
|
|
"id": "def-public.LazyLogStreamWrapper",
|
|
"type": "Function",
|
|
"children": [
|
|
{
|
|
"type": "CompoundType",
|
|
"label": "props",
|
|
"isRequired": true,
|
|
"signature": [
|
|
"React.PropsWithChildren<",
|
|
{
|
|
"pluginId": "infra",
|
|
"scope": "public",
|
|
"docId": "kibInfraPluginApi",
|
|
"section": "def-public.LogStreamProps",
|
|
"text": "LogStreamProps"
|
|
},
|
|
">"
|
|
],
|
|
"description": [],
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/public/components/log_stream/lazy_log_stream_wrapper.tsx",
|
|
"lineNumber": 13
|
|
}
|
|
}
|
|
],
|
|
"signature": [
|
|
"(props: React.PropsWithChildren<",
|
|
"LogStreamProps",
|
|
">) => JSX.Element"
|
|
],
|
|
"description": [],
|
|
"label": "LazyLogStreamWrapper",
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/public/components/log_stream/lazy_log_stream_wrapper.tsx",
|
|
"lineNumber": 13
|
|
},
|
|
"tags": [],
|
|
"returnComment": [],
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"interfaces": [],
|
|
"enums": [
|
|
{
|
|
"id": "def-public.InfraFormatterType",
|
|
"type": "Enum",
|
|
"label": "InfraFormatterType",
|
|
"tags": [],
|
|
"description": [],
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/public/lib/lib.ts",
|
|
"lineNumber": 147
|
|
},
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"misc": [
|
|
{
|
|
"id": "def-public.InfraAppId",
|
|
"type": "Type",
|
|
"label": "InfraAppId",
|
|
"tags": [],
|
|
"description": [],
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/public/index.ts",
|
|
"lineNumber": 29
|
|
},
|
|
"signature": [
|
|
"\"metrics\" | \"logs\""
|
|
],
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"objects": [
|
|
{
|
|
"id": "def-public.FORMATTERS",
|
|
"type": "Object",
|
|
"tags": [],
|
|
"children": [
|
|
{
|
|
"tags": [],
|
|
"id": "def-public.FORMATTERS.number",
|
|
"type": "Function",
|
|
"label": "number",
|
|
"description": [],
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/common/formatters/index.ts",
|
|
"lineNumber": 16
|
|
},
|
|
"signature": [
|
|
"(val: number) => string"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-public.FORMATTERS.abbreviatedNumber",
|
|
"type": "Function",
|
|
"label": "abbreviatedNumber",
|
|
"description": [
|
|
"// Because the implimentation for formatting large numbers is the same as formatting\n// bytes we are re-using the same code, we just format the number using the abbreviated number format."
|
|
],
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/common/formatters/index.ts",
|
|
"lineNumber": 19
|
|
},
|
|
"signature": [
|
|
"(bytes: number) => string"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-public.FORMATTERS.bytes",
|
|
"type": "Function",
|
|
"label": "bytes",
|
|
"description": [
|
|
"// bytes in bytes formatted string out"
|
|
],
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/common/formatters/index.ts",
|
|
"lineNumber": 21
|
|
},
|
|
"signature": [
|
|
"(bytes: number) => string"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-public.FORMATTERS.bits",
|
|
"type": "Function",
|
|
"label": "bits",
|
|
"description": [
|
|
"// bytes in bits formatted string out"
|
|
],
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/common/formatters/index.ts",
|
|
"lineNumber": 23
|
|
},
|
|
"signature": [
|
|
"(bytes: number) => string"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-public.FORMATTERS.percent",
|
|
"type": "Function",
|
|
"label": "percent",
|
|
"description": [],
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/common/formatters/index.ts",
|
|
"lineNumber": 24
|
|
},
|
|
"signature": [
|
|
"(val: number) => string"
|
|
]
|
|
},
|
|
{
|
|
"tags": [],
|
|
"id": "def-public.FORMATTERS.highPercision",
|
|
"type": "Function",
|
|
"label": "highPercision",
|
|
"description": [],
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/common/formatters/index.ts",
|
|
"lineNumber": 25
|
|
},
|
|
"signature": [
|
|
"(val: number) => string"
|
|
]
|
|
}
|
|
],
|
|
"description": [],
|
|
"label": "FORMATTERS",
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/common/formatters/index.ts",
|
|
"lineNumber": 15
|
|
},
|
|
"initialIsOpen": false
|
|
}
|
|
]
|
|
},
|
|
"server": {
|
|
"classes": [],
|
|
"functions": [],
|
|
"interfaces": [],
|
|
"enums": [],
|
|
"misc": [
|
|
{
|
|
"id": "def-server.InfraConfig",
|
|
"type": "Type",
|
|
"label": "InfraConfig",
|
|
"tags": [],
|
|
"description": [],
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/server/plugin.ts",
|
|
"lineNumber": 65
|
|
},
|
|
"signature": [
|
|
"{ readonly sources?: Readonly<{ default?: Readonly<{ fields?: Readonly<{ host?: string | undefined; message?: string[] | undefined; timestamp?: string | undefined; tiebreaker?: string | undefined; container?: string | undefined; pod?: string | undefined; } & {}> | undefined; logAlias?: string | undefined; metricAlias?: string | undefined; } & {}> | undefined; } & {}> | undefined; readonly enabled: boolean; readonly query: Readonly<{} & { partitionSize: number; partitionFactor: number; }>; }"
|
|
],
|
|
"initialIsOpen": false
|
|
}
|
|
],
|
|
"objects": [],
|
|
"setup": {
|
|
"id": "def-server.InfraPluginSetup",
|
|
"type": "Interface",
|
|
"label": "InfraPluginSetup",
|
|
"description": [],
|
|
"tags": [],
|
|
"children": [
|
|
{
|
|
"tags": [],
|
|
"id": "def-server.InfraPluginSetup.defineInternalSourceConfiguration",
|
|
"type": "Function",
|
|
"label": "defineInternalSourceConfiguration",
|
|
"description": [],
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/server/plugin.ts",
|
|
"lineNumber": 76
|
|
},
|
|
"signature": [
|
|
"(sourceId: string, sourceProperties: ",
|
|
{
|
|
"pluginId": "infra",
|
|
"scope": "common",
|
|
"docId": "kibInfraPluginApi",
|
|
"section": "def-common.InfraStaticSourceConfiguration",
|
|
"text": "InfraStaticSourceConfiguration"
|
|
},
|
|
") => void"
|
|
]
|
|
}
|
|
],
|
|
"source": {
|
|
"path": "x-pack/plugins/infra/server/plugin.ts",
|
|
"lineNumber": 75
|
|
},
|
|
"lifecycle": "setup",
|
|
"initialIsOpen": true
|
|
}
|
|
},
|
|
"common": {
|
|
"classes": [],
|
|
"functions": [],
|
|
"interfaces": [],
|
|
"enums": [],
|
|
"misc": [],
|
|
"objects": []
|
|
}
|
|
} |