Skip to content

Commit

Permalink
Merge pull request #12 from liara-cloud/object-storage-new-route
Browse files Browse the repository at this point in the history
chore: add new route
  • Loading branch information
jarqvi authored Oct 25, 2023
2 parents cef6058 + 9e2fe5f commit c825134
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions spec/object-storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,62 @@ paths:
500:
description: server does not response
content: {}
'/api/v1/buckets/{bucket}/metrics/{stat}':
get:
tags:
- Metrics
summary: get statistic
operationId: getMetrics
parameters:
- name: bucket
in: path
required: true
schema:
type: string
- name: stat
in: path
required: true
schema:
type: string
responses:
200:
description: successful operation
content:
application/json:
schema:
type: object
properties:
status:
type: string
data:
type: object
properties:
bucket:
type: string
metrics:
type: object
properties:
stat:
type: array
items:
oneOf:
- type: number
- type: string
400:
description: Bad Request
content: {}
401:
description: Missing authentication
content: {}
404:
description: Not Found
content: {}
409:
description: Conflict
content: {}
500:
description: server does not response
content: {}
components:
schemas:
Stat:
Expand Down

0 comments on commit c825134

Please sign in to comment.