-
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.
feat(slo): delete slo instances (#165270)
- Loading branch information
Showing
11 changed files
with
506 additions
and
6 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
26 changes: 26 additions & 0 deletions
26
...ugins/observability/docs/openapi/slo/components/schemas/delete_slo_instances_request.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,26 @@ | ||
title: Delete SLO instances request | ||
description: > | ||
The delete SLO instances request takes a list of SLO id and instance id, then delete the rollup and summary data. | ||
This API can be used to remove the staled data of an instance SLO that no longer get updated. | ||
type: object | ||
required: | ||
- list | ||
properties: | ||
list: | ||
description: An array of slo id and instance id | ||
type: array | ||
items: | ||
type: object | ||
required: | ||
- sloId | ||
- instanceId | ||
properties: | ||
sloId: | ||
description: The SLO unique identifier | ||
type: string | ||
example: 8853df00-ae2e-11ed-90af-09bb6422b258 | ||
instanceId: | ||
description: The SLO instance identifier | ||
type: string | ||
example: 8853df00-ae2e-11ed-90af-09bb6422b258 | ||
|
4 changes: 2 additions & 2 deletions
4
...plugins/observability/docs/openapi/slo/components/schemas/historical_summary_request.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
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
40 changes: 40 additions & 0 deletions
40
.../plugins/observability/docs/openapi/slo/paths/s@{spaceid}@api@slos@_delete_instances.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,40 @@ | ||
post: | ||
summary: Batch delete rollup and summary data for the matching list of sloId and instanceId | ||
operationId: deleteSloInstancesOp | ||
description: > | ||
You must have `all` privileges for the **SLOs** feature in the | ||
**Observability** section of the Kibana feature privileges. | ||
tags: | ||
- slo | ||
parameters: | ||
- $ref: ../components/headers/kbn_xsrf.yaml | ||
- $ref: ../components/parameters/space_id.yaml | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../components/schemas/delete_slo_instances_request.yaml' | ||
responses: | ||
'204': | ||
description: Successful request | ||
'400': | ||
description: Bad request | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../components/schemas/400_response.yaml' | ||
'401': | ||
description: Unauthorized response | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../components/schemas/401_response.yaml' | ||
'403': | ||
description: Unauthorized response | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../components/schemas/403_response.yaml' | ||
servers: | ||
- url: https://localhost:5601 |
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.