Skip to content

Commit

Permalink
chore: allow setting shard-group durations for buckets API (influxdat…
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar committed Mar 15, 2021
1 parent a338071 commit a9f3ce0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ from {{packageName}}.configuration import Configuration
{{/model}}{{/models}}
from influxdb_client.client.authorizations_api import AuthorizationsApi
from influxdb_client.client.bucket_api import BucketsApi
from influxdb_client.client.delete_api import DeleteApi
from influxdb_client.client.labels_api import LabelsApi
from influxdb_client.client.organizations_api import OrganizationsApi
from influxdb_client.client.query_api import QueryApi
Expand Down
16 changes: 12 additions & 4 deletions swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6825,9 +6825,13 @@ components:
- expire
everySeconds:
type: integer
description: Duration in seconds for how long data will be kept in the database.
description: Duration in seconds for how long data will be kept in the database. 0 means infinite.
example: 86400
minimum: 1
minimum: 0
shardGroupDurationSeconds:
type: integer
format: int64
description: Shard duration measured in seconds.
required: [type, everySeconds]
required: [name, retentionRules]
Bucket:
Expand Down Expand Up @@ -6900,9 +6904,13 @@ components:
- expire
everySeconds:
type: integer
description: Duration in seconds for how long data will be kept in the database.
description: Duration in seconds for how long data will be kept in the database. 0 means infinite.
example: 86400
minimum: 1
minimum: 0
shardGroupDurationSeconds:
type: integer
format: int64
description: Shard duration measured in seconds.
required: [type, everySeconds]
labels:
$ref: "#/components/schemas/Labels"
Expand Down

0 comments on commit a9f3ce0

Please sign in to comment.