Skip to content

Commit 090bcfb

Browse files
authored
Merge branch 'scaleway:master' into master
2 parents 99c159c + 075707f commit 090bcfb

12 files changed

+35
-47
lines changed

cmd/scw/testdata/test-all-usage-cockpit-data-source-create-usage.golden

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
You must specify the data source type upon creation. Available data source types include:
4-
- metrics
5-
- logs
6-
- traces
3+
You must specify the data source name and type (metrics, logs, traces) upon creation.
74
The name of the data source will then be used as reference to name the associated Grafana data source.
85

96
USAGE:
@@ -13,7 +10,7 @@ ARGS:
1310
[project-id] Project ID to use. If none is passed the default project ID will be used
1411
[name] Data source name
1512
[type] Data source type (unknown_type | metrics | logs | traces)
16-
[retention-days] BETA - Duration for which the data will be retained in the data source
13+
[retention-days] Duration for which the data will be retained in the data source
1714
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1815

1916
FLAGS:

cmd/scw/testdata/test-all-usage-cockpit-data-source-delete-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Delete a given data source, specified by the data source ID. Note that deleting a data source is irreversible, and cannot be undone.
3+
Delete a given data source. Note that this action will permanently delete this data source and any data associated with it.
44

55
USAGE:
66
scw cockpit data-source delete [arg=value ...]

cmd/scw/testdata/test-all-usage-cockpit-data-source-list-usage.golden

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
33
Retrieve the list of data sources available in the specified region. By default, the data sources returned in the list are ordered by creation date, in ascending order.
4-
You can list data sources by Project, type and origin.
54

65
USAGE:
76
scw cockpit data-source list [arg=value ...]
87

98
ARGS:
109
[order-by] Sort order for data sources in the response (created_at_asc | created_at_desc | name_asc | name_desc | type_asc | type_desc)
1110
[project-id] Project ID to use. If none is passed the default project ID will be used
12-
[origin] Origin to filter for, only data sources with matching origin will be returned (unknown_origin | scaleway | external | custom)
13-
[types.{index}] Types to filter for, only data sources with matching types will be returned (unknown_type | metrics | logs | traces)
11+
[origin] Origin to filter for, only data sources with matching origin will be returned. If omitted, all types will be returned (unknown_origin | scaleway | external | custom)
12+
[types.{index}] Types to filter for (metrics, logs, traces), only data sources with matching types will be returned. If omitted, all types will be returned (unknown_type | metrics | logs | traces)
1413
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all)
1514

1615
FLAGS:

cmd/scw/testdata/test-all-usage-cockpit-data-source-update-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Update a given data source name, specified by the data source ID.
3+
Update a given data source attributes (name and/or retention_days).
44

55
USAGE:
66
scw cockpit data-source update [arg=value ...]
77

88
ARGS:
99
data-source-id ID of the data source to update
1010
[name] Updated name of the data source
11-
[retention-days] BETA - Duration for which the data will be retained in the data source
11+
[retention-days] Duration for which the data will be retained in the data source
1212
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1313

1414
FLAGS:

cmd/scw/testdata/test-all-usage-cockpit-usage-overview-get-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Retrieve the data source usage overview per type for the specified Project.
3+
Retrieve the volume of data ingested for each of your data sources in the specified project and region.
44

55
USAGE:
66
scw cockpit usage-overview get [arg=value ...]

cmd/scw/testdata/test-all-usage-rdb-backup-create-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ USAGE:
66
scw rdb backup create [arg=value ...]
77

88
ARGS:
9-
[instance-id] UUID of the Database Instance
10-
[database-name] Name of the database you want to back up
9+
instance-id UUID of the Database Instance
10+
database-name Name of the database you want to back up
1111
[name=<generated>] Name of the backup
1212
[expires-at] Expiration date (must follow the ISO 8601 format)
1313
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

docs/commands/cockpit.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,7 @@ Datasource management commands.
188188

189189
### Create a data source
190190

191-
You must specify the data source type upon creation. Available data source types include:
192-
- metrics
193-
- logs
194-
- traces
191+
You must specify the data source name and type (metrics, logs, traces) upon creation.
195192
The name of the data source will then be used as reference to name the associated Grafana data source.
196193

197194
**Usage:**
@@ -208,14 +205,14 @@ scw cockpit data-source create [arg=value ...]
208205
| project-id | | Project ID to use. If none is passed the default project ID will be used |
209206
| name | | Data source name |
210207
| type | One of: `unknown_type`, `metrics`, `logs`, `traces` | Data source type |
211-
| retention-days | | BETA - Duration for which the data will be retained in the data source |
208+
| retention-days | | Duration for which the data will be retained in the data source |
212209
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
213210

214211

215212

216213
### Delete a data source
217214

218-
Delete a given data source, specified by the data source ID. Note that deleting a data source is irreversible, and cannot be undone.
215+
Delete a given data source. Note that this action will permanently delete this data source and any data associated with it.
219216

220217
**Usage:**
221218

@@ -256,7 +253,6 @@ scw cockpit data-source get [arg=value ...]
256253
### List data sources
257254

258255
Retrieve the list of data sources available in the specified region. By default, the data sources returned in the list are ordered by creation date, in ascending order.
259-
You can list data sources by Project, type and origin.
260256

261257
**Usage:**
262258

@@ -271,15 +267,15 @@ scw cockpit data-source list [arg=value ...]
271267
|------|---|-------------|
272268
| order-by | One of: `created_at_asc`, `created_at_desc`, `name_asc`, `name_desc`, `type_asc`, `type_desc` | Sort order for data sources in the response |
273269
| project-id | | Project ID to use. If none is passed the default project ID will be used |
274-
| origin | One of: `unknown_origin`, `scaleway`, `external`, `custom` | Origin to filter for, only data sources with matching origin will be returned |
275-
| types.{index} | One of: `unknown_type`, `metrics`, `logs`, `traces` | Types to filter for, only data sources with matching types will be returned |
270+
| origin | One of: `unknown_origin`, `scaleway`, `external`, `custom` | Origin to filter for, only data sources with matching origin will be returned. If omitted, all types will be returned |
271+
| types.{index} | One of: `unknown_type`, `metrics`, `logs`, `traces` | Types to filter for (metrics, logs, traces), only data sources with matching types will be returned. If omitted, all types will be returned |
276272
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config |
277273

278274

279275

280276
### Update a data source
281277

282-
Update a given data source name, specified by the data source ID.
278+
Update a given data source attributes (name and/or retention_days).
283279

284280
**Usage:**
285281

@@ -294,7 +290,7 @@ scw cockpit data-source update [arg=value ...]
294290
|------|---|-------------|
295291
| data-source-id | Required | ID of the data source to update |
296292
| name | | Updated name of the data source |
297-
| retention-days | | BETA - Duration for which the data will be retained in the data source |
293+
| retention-days | | Duration for which the data will be retained in the data source |
298294
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
299295

300296

@@ -710,7 +706,7 @@ Usage overview management commands.
710706

711707
### Get data source usage overview
712708

713-
Retrieve the data source usage overview per type for the specified Project.
709+
Retrieve the volume of data ingested for each of your data sources in the specified project and region.
714710

715711
**Usage:**
716712

docs/commands/rdb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ scw rdb backup create [arg=value ...]
215215

216216
| Name | | Description |
217217
|------|---|-------------|
218-
| instance-id | | UUID of the Database Instance |
219-
| database-name | | Name of the database you want to back up |
218+
| instance-id | Required | UUID of the Database Instance |
219+
| database-name | Required | Name of the database you want to back up |
220220
| name | Default: `<generated>` | Name of the backup |
221221
| expires-at | | Expiration date (must follow the ISO 8601 format) |
222222
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/mattn/go-isatty v0.0.20
2424
github.com/moby/buildkit v0.13.2
2525
github.com/opencontainers/go-digest v1.0.0
26-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250612160241-cb8e35ad61c5
26+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250616150134-9c1bc4cca50a
2727
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2828
github.com/spf13/cobra v1.9.1
2929
github.com/spf13/pflag v1.0.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
466466
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
467467
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
468468
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
469-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250612160241-cb8e35ad61c5 h1:c13eCwQV4J6zi5v43Xd2c2xwbkfUU8t1zxstAt6picQ=
470-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250612160241-cb8e35ad61c5/go.mod h1:zFWiHphneiey3s8HOtAEnGrRlWivNaxW5T6d5Xfco7g=
469+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250616150134-9c1bc4cca50a h1:p6Zw2NuBsVe9jMhTFtvzDBJYsupKmtV86wEqf5oDevo=
470+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250616150134-9c1bc4cca50a/go.mod h1:zFWiHphneiey3s8HOtAEnGrRlWivNaxW5T6d5Xfco7g=
471471
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
472472
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
473473
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

0 commit comments

Comments
 (0)