Skip to content

Commit ffd065b

Browse files
committed
1 parent d9c5f95 commit ffd065b

13 files changed

Lines changed: 295 additions & 1166 deletions

.generator/schemas/adminapi.yaml

Lines changed: 67 additions & 5 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
@@ -27395,7 +27458,6 @@ components:
2739527458
type: object
2739627459
required:
2739727460
- stepId
27398-
- inputs
2739927461
- stepName
2740027462
- methodName
2740127463
- status

.generator/schemas/openapi.yaml

Lines changed: 0 additions & 135 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:
@@ -20584,7 +20522,6 @@ components:
2058420522
type: object
2058520523
required:
2058620524
- stepId
20587-
- inputs
2058820525
- stepName
2058920526
- methodName
2059020527
- status
@@ -24595,78 +24532,6 @@ components:
2459524532
type: array
2459624533
required:
2459724534
- items
24598-
OutageRecord:
24599-
type: object
24600-
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.
24601-
required:
24602-
- clusterID
24603-
properties:
24604-
id:
24605-
type: string
24606-
description: The unique identifier for the outage record.
24607-
clusterID:
24608-
type: string
24609-
description: The id of cluster.
24610-
outageStartTime:
24611-
type: integer
24612-
format: int64
24613-
description: The Unix timestamp (in seconds) when the outage began (UTC).
24614-
outageEndTime:
24615-
type: integer
24616-
format: int64
24617-
nullable: true
24618-
description: The Unix timestamp (in seconds) when the outage was resolved (UTC). A null value indicates that the outage is still ongoing.
24619-
lastFailureReason:
24620-
type: string
24621-
nullable: true
24622-
description: The error message from the last failed probe.
24623-
failureCount:
24624-
type: integer
24625-
format: int32
24626-
nullable: true
24627-
description: The number of consecutive failures in this outage event.
24628-
default: 1
24629-
createdAt:
24630-
type: string
24631-
format: date-time
24632-
description: The timestamp when the record was created.
24633-
readOnly: true
24634-
updatedAt:
24635-
type: string
24636-
format: date-time
24637-
description: The timestamp when the record was last updated.
24638-
readOnly: true
24639-
OutageRecordList:
24640-
type: array
24641-
description: A list of outage records.
24642-
items:
24643-
$ref: '#/components/schemas/OutageRecord'
24644-
SLA:
24645-
type: object
24646-
description: The SLA (Service Level Agreement) for a cluster.
24647-
properties:
24648-
cluster:
24649-
type: object
24650-
$ref: '#/components/schemas/clusterListItem'
24651-
detail:
24652-
type: object
24653-
$ref: '#/components/schemas/OutageRecordList'
24654-
sla:
24655-
type: number
24656-
description: The SLA value for the cluster.
24657-
totalDuration:
24658-
type: integer
24659-
format: int64
24660-
description: The total duration of the outage records.
24661-
totalDowntime:
24662-
type: integer
24663-
format: int64
24664-
description: The total downtime duration of the outage records.
24665-
SLAList:
24666-
type: array
24667-
description: A list of SLA records.
24668-
items:
24669-
$ref: '#/components/schemas/SLA'
2467024535
inspectionScriptCategory:
2467124536
type: string
2467224537
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 2a46ef431b2c0418e0123bc5589c66ab2211d427
1+
Subproject commit 98993b64e55dc8d1b71f522643ab8a9c83d96619

0 commit comments

Comments
 (0)