Skip to content

Commit 50c3de5

Browse files
committed
chore: auto update client api apecloud/apecloud@1edcf1a
1 parent ddc20b5 commit 50c3de5

File tree

11 files changed

+233
-1108
lines changed

11 files changed

+233
-1108
lines changed

.generator/schemas/adminapi.yaml

Lines changed: 67 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16317,12 +16317,20 @@ paths:
1631716317
type: array
1631816318
items:
1631916319
type: string
16320-
- name: range
16320+
- name: startTime
1632116321
in: query
16322-
description: Time range to calculate SLA, unit is day, available values are "30", "90", "365".
16322+
description: SLA calculation start time Unix timestamp, unit is second.
16323+
required: true
16324+
schema:
16325+
type: integer
16326+
format: int64
16327+
- name: endTime
16328+
in: query
16329+
description: SLA calculation end time Unix timestamp, unit is second.
1632316330
required: true
1632416331
schema:
1632516332
type: integer
16333+
format: int64
1632616334
- name: clusterNamePrefix
1632716335
in: query
1632816336
description: Filter clusters by name prefix (fuzzy search).
@@ -16347,7 +16355,7 @@ paths:
1634716355
minimum: 1
1634816356
- name: orderBy
1634916357
in: query
16350-
description: Order by field, available values are "clusterName", "sla", "engine".
16358+
description: Order by field, available values are "clusterName", "engine".
1635116359
required: false
1635216360
schema:
1635316361
type: string
@@ -16358,9 +16366,64 @@ paths:
1635816366
schema:
1635916367
type: boolean
1636016368
default: false
16369+
responses:
16370+
'200':
16371+
description: SLA calculated successfully
16372+
content:
16373+
application/json:
16374+
schema:
16375+
$ref: '#/components/schemas/ClustersSLA'
16376+
'400':
16377+
$ref: '#/components/responses/400'
16378+
'401':
16379+
$ref: '#/components/responses/401'
16380+
'403':
16381+
$ref: '#/components/responses/403'
16382+
'404':
16383+
$ref: '#/components/responses/404'
16384+
'500':
16385+
$ref: '#/components/responses/500'
16386+
/admin/v1/sla/rank:
16387+
get:
16388+
summary: List SLA rank for a environment
16389+
description: List SLA rank for a environment
16390+
operationId: ListSLARank
16391+
tags:
16392+
- SLA
16393+
parameters:
16394+
- name: environmentName
16395+
in: query
16396+
description: name of the environment
16397+
required: false
16398+
schema:
16399+
type: array
16400+
items:
16401+
type: string
16402+
- name: engine
16403+
in: query
16404+
description: database engine type
16405+
required: false
16406+
schema:
16407+
type: array
16408+
items:
16409+
type: string
16410+
- name: orgName
16411+
in: query
16412+
description: name of the organization
16413+
required: false
16414+
schema:
16415+
type: array
16416+
items:
16417+
type: string
16418+
- name: range
16419+
in: query
16420+
description: Time range to calculate SLA, unit is day, available values are "30", "90", "365".
16421+
required: true
16422+
schema:
16423+
type: integer
1636116424
- name: limit
1636216425
in: query
16363-
description: Limit the number of clusters to return.
16426+
description: Number of items per page.
1636416427
required: false
1636516428
schema:
1636616429
type: integer

.generator/schemas/openapi.yaml

Lines changed: 0 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -13051,68 +13051,6 @@ paths:
1305113051
$ref: '#/components/responses/404'
1305213052
tags:
1305313053
- billing
13054-
/api/v1/organizations/{orgName}/sla:
13055-
get:
13056-
summary: Calculate SLA for a organization
13057-
description: Calculate SLA for a organization
13058-
operationId: CalculateSLAInOrg
13059-
tags:
13060-
- SLA
13061-
parameters:
13062-
- name: orgName
13063-
in: path
13064-
description: name of the organization
13065-
required: true
13066-
schema:
13067-
type: string
13068-
- name: environmentName
13069-
in: query
13070-
description: name of the environment
13071-
required: false
13072-
schema:
13073-
type: array
13074-
items:
13075-
type: string
13076-
- name: clusterID
13077-
in: query
13078-
description: id of the cluster
13079-
required: false
13080-
schema:
13081-
type: array
13082-
items:
13083-
type: string
13084-
- name: engine
13085-
in: query
13086-
description: database engine type
13087-
required: false
13088-
schema:
13089-
type: array
13090-
items:
13091-
type: string
13092-
- name: startTime
13093-
in: query
13094-
description: UTC timestamp of the start time to calculate SLA, unit is second
13095-
required: false
13096-
schema:
13097-
type: integer
13098-
format: int64
13099-
responses:
13100-
'200':
13101-
description: SLA calculated successfully
13102-
content:
13103-
application/json:
13104-
schema:
13105-
$ref: '#/components/schemas/SLAList'
13106-
'400':
13107-
$ref: '#/components/responses/400'
13108-
'401':
13109-
$ref: '#/components/responses/401'
13110-
'403':
13111-
$ref: '#/components/responses/403'
13112-
'404':
13113-
$ref: '#/components/responses/404'
13114-
'500':
13115-
$ref: '#/components/responses/500'
1311613054
/api/v1/inspectionScripts:
1311713055
get:
1311813056
tags:
@@ -24603,78 +24541,6 @@ components:
2460324541
type: array
2460424542
required:
2460524543
- items
24606-
OutageRecord:
24607-
type: object
24608-
description: Records the outage events of a cluster for SLA calculation. It is designed to ensure that for any given cluster, there can be at most one active outage record at any time.
24609-
required:
24610-
- clusterID
24611-
properties:
24612-
id:
24613-
type: string
24614-
description: The unique identifier for the outage record.
24615-
clusterID:
24616-
type: string
24617-
description: The id of cluster.
24618-
outageStartTime:
24619-
type: integer
24620-
format: int64
24621-
description: The Unix timestamp (in seconds) when the outage began (UTC).
24622-
outageEndTime:
24623-
type: integer
24624-
format: int64
24625-
nullable: true
24626-
description: The Unix timestamp (in seconds) when the outage was resolved (UTC). A null value indicates that the outage is still ongoing.
24627-
lastFailureReason:
24628-
type: string
24629-
nullable: true
24630-
description: The error message from the last failed probe.
24631-
failureCount:
24632-
type: integer
24633-
format: int32
24634-
nullable: true
24635-
description: The number of consecutive failures in this outage event.
24636-
default: 1
24637-
createdAt:
24638-
type: string
24639-
format: date-time
24640-
description: The timestamp when the record was created.
24641-
readOnly: true
24642-
updatedAt:
24643-
type: string
24644-
format: date-time
24645-
description: The timestamp when the record was last updated.
24646-
readOnly: true
24647-
OutageRecordList:
24648-
type: array
24649-
description: A list of outage records.
24650-
items:
24651-
$ref: '#/components/schemas/OutageRecord'
24652-
SLA:
24653-
type: object
24654-
description: The SLA (Service Level Agreement) for a cluster.
24655-
properties:
24656-
cluster:
24657-
type: object
24658-
$ref: '#/components/schemas/clusterListItem'
24659-
detail:
24660-
type: object
24661-
$ref: '#/components/schemas/OutageRecordList'
24662-
sla:
24663-
type: number
24664-
description: The SLA value for the cluster.
24665-
totalDuration:
24666-
type: integer
24667-
format: int64
24668-
description: The total duration of the outage records.
24669-
totalDowntime:
24670-
type: integer
24671-
format: int64
24672-
description: The total downtime duration of the outage records.
24673-
SLAList:
24674-
type: array
24675-
description: A list of SLA records.
24676-
items:
24677-
$ref: '#/components/schemas/SLA'
2467824544
inspectionScriptCategory:
2467924545
type: string
2468024546
description: Specifies the category of the inspection script.

apecloud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit cbba4d2b5d1433445fc2ca69d1315018dc01f865
1+
Subproject commit 1edcf1a543ad30f1e7672eb353cebd1188322e2d

0 commit comments

Comments
 (0)