-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
697 additions
and
599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
x-pack/plugins/security_solution/common/api/entity_analytics/entity_store/status.gen.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
/* | ||
* NOTICE: Do not edit this file manually. | ||
* This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. | ||
* | ||
* info: | ||
* title: Enable Entity Store | ||
* version: 2023-10-31 | ||
*/ | ||
|
||
import { z } from '@kbn/zod'; | ||
import { BooleanFromString } from '@kbn/zod-helpers'; | ||
|
||
import { StoreStatus, EngineDescriptor, EngineComponentStatus } from './common.gen'; | ||
|
||
export type GetEntityStoreStatusRequestQuery = z.infer<typeof GetEntityStoreStatusRequestQuery>; | ||
export const GetEntityStoreStatusRequestQuery = z.object({ | ||
/** | ||
* If true returns a detailed status of the engine including all it's components | ||
*/ | ||
withComponents: BooleanFromString.optional(), | ||
}); | ||
export type GetEntityStoreStatusRequestQueryInput = z.input< | ||
typeof GetEntityStoreStatusRequestQuery | ||
>; | ||
|
||
export type GetEntityStoreStatusResponse = z.infer<typeof GetEntityStoreStatusResponse>; | ||
export const GetEntityStoreStatusResponse = z.object({ | ||
status: StoreStatus, | ||
engines: z.array( | ||
EngineDescriptor.merge( | ||
z.object({ | ||
components: z.array(EngineComponentStatus).optional(), | ||
}) | ||
) | ||
), | ||
}); |
44 changes: 44 additions & 0 deletions
44
x-pack/plugins/security_solution/common/api/entity_analytics/entity_store/status.schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
openapi: 3.0.0 | ||
|
||
info: | ||
title: Enable Entity Store | ||
version: '2023-10-31' | ||
paths: | ||
/api/entity_store/status: | ||
get: | ||
x-labels: [ess, serverless] | ||
x-codegen-enabled: true | ||
operationId: GetEntityStoreStatus | ||
summary: Get the status of the Entity Store | ||
|
||
parameters: | ||
- name: withComponents | ||
in: query | ||
schema: | ||
type: boolean | ||
description: If true returns a detailed status of the engine including all it's components | ||
|
||
responses: | ||
'200': | ||
description: Successful response | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
required: | ||
- status | ||
- engines | ||
properties: | ||
status: | ||
$ref: './common.schema.yaml#/components/schemas/StoreStatus' | ||
engines: | ||
type: array | ||
items: | ||
allOf: | ||
- $ref: './common.schema.yaml#/components/schemas/EngineDescriptor' | ||
- type: object | ||
properties: | ||
components: | ||
type: array | ||
items: | ||
$ref: './common.schema.yaml#/components/schemas/EngineComponentStatus' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.