Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Disable managed alerts.

USAGE:
scw cockpit alert disable [arg=value ...]

ARGS:
[project-id] Project ID to use. If none is passed the default project ID will be used

FLAGS:
-h, --help help for disable

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Enable managed alerts.

USAGE:
scw cockpit alert enable [arg=value ...]

ARGS:
[project-id] Project ID to use. If none is passed the default project ID will be used

FLAGS:
-h, --help help for enable

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
18 changes: 18 additions & 0 deletions cmd/scw/testdata/test-all-usage-cockpit-alert-test-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Trigger a test alert to all receivers.

USAGE:
scw cockpit alert test [arg=value ...]

ARGS:
[project-id] Project ID to use. If none is passed the default project ID will be used

FLAGS:
-h, --help help for test

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
22 changes: 22 additions & 0 deletions cmd/scw/testdata/test-all-usage-cockpit-alert-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Managed alerts management commands.

USAGE:
scw cockpit alert <command>

AVAILABLE COMMANDS:
disable Disable managed alerts
enable Enable managed alerts
test Trigger a test alert

FLAGS:
-h, --help help for alert

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use

Use "scw cockpit alert [command] --help" for more information about a command.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Create an alert contact point for the default receiver.

USAGE:
scw cockpit contact create [arg=value ...]

ARGS:
[project-id] Project ID to use. If none is passed the default project ID will be used
[contact-point.email.to]

FLAGS:
-h, --help help for create

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Delete an alert contact point for the default receiver.

USAGE:
scw cockpit contact delete [arg=value ...]

ARGS:
[project-id] Project ID to use. If none is passed the default project ID will be used
[contact-point.email.to]

FLAGS:
-h, --help help for delete

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
List alert contact points associated with the given cockpit ID.

USAGE:
scw cockpit contact list [arg=value ...]

ARGS:
[project-id] Project ID to use. If none is passed the default project ID will be used

FLAGS:
-h, --help help for list

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
22 changes: 22 additions & 0 deletions cmd/scw/testdata/test-all-usage-cockpit-contact-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Contacts management commands.

USAGE:
scw cockpit contact <command>

AVAILABLE COMMANDS:
create Create an alert contact point
delete Delete an alert contact point
list List alert contact points

FLAGS:
-h, --help help for contact

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use

Use "scw cockpit contact [command] --help" for more information about a command.
2 changes: 2 additions & 0 deletions cmd/scw/testdata/test-all-usage-cockpit-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ USAGE:
scw cockpit <command>

AVAILABLE COMMANDS:
alert Managed alerts management commands
cockpit Cockpit management commands
contact Contacts management commands
grafana-user Grafana user management commands
token Token management commands

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
List information about your backend servers, including their state and the result of their last health check.

USAGE:
scw lb backend list-statistics <lb-id ...> [arg=value ...]

ARGS:
lb-id Load Balancer ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2 | all)

FLAGS:
-h, --help help for list-statistics

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
1 change: 1 addition & 0 deletions cmd/scw/testdata/test-all-usage-lb-backend-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ AVAILABLE COMMANDS:
delete Delete a backend of a given Load Balancer
get Get a backend of a given Load Balancer
list List the backends of a given Load Balancer
list-statistics List backend server statistics
remove-servers Remove a set of servers for a given backend
set-servers Define all backend servers for a given backend
update Update a backend of a given Load Balancer
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Create a new subscriber, either with an email configuration or a webhook configuration, for a specified Scaleway Project.

USAGE:
scw lb subscriber create [arg=value ...]

ARGS:
name Subscriber name
email-config.email Email address to send alerts to
webhook-config.uri URI to receive POST requests
[project-id] Project ID to use. If none is passed the default project ID will be used
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)

FLAGS:
-h, --help help for create

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Delete an existing subscriber, specified by its subscriber ID. Deleting a subscriber is permanent, and cannot be undone.

USAGE:
scw lb subscriber delete <subscriber-id ...> [arg=value ...]

ARGS:
subscriber-id Subscriber ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)

FLAGS:
-h, --help help for delete

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
19 changes: 19 additions & 0 deletions cmd/scw/testdata/test-all-usage-lb-subscriber-get-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Retrieve information about an existing subscriber, specified by its subscriber ID. Its full details, including name and email/webhook configuration, are returned in the response object.

USAGE:
scw lb subscriber get <subscriber-id ...> [arg=value ...]

ARGS:
subscriber-id Subscriber ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)

FLAGS:
-h, --help help for get

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
22 changes: 22 additions & 0 deletions cmd/scw/testdata/test-all-usage-lb-subscriber-list-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
List all subscribers to Load Balancer alerts. By default, returns all subscribers to Load Balancer alerts for the Organization associated with the authentication token used for the request.

USAGE:
scw lb subscriber list [arg=value ...]

ARGS:
[order-by] Sort order of subscribers in the response (created_at_asc | created_at_desc | name_asc | name_desc)
name Subscriber name to search for
[project-id] Filter subscribers by Project ID
[organization-id] Filter subscribers by Organization ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2 | all)

FLAGS:
-h, --help help for list

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Subscribe an existing subscriber to alerts for a given Load Balancer.

USAGE:
scw lb subscriber subscribe [arg=value ...]

ARGS:
lb-id Load Balancer ID
subscriber-id Subscriber ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)

FLAGS:
-h, --help help for subscribe

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Unsubscribe a subscriber from alerts for a given Load Balancer. The subscriber is not deleted, and can be resubscribed in the future if necessary.

USAGE:
scw lb subscriber unsubscribe [arg=value ...]

ARGS:
lb-id Load Balancer ID
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)

FLAGS:
-h, --help help for unsubscribe

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Update the parameters of a given subscriber (e.g. name, webhook configuration, email configuration), specified by its subscriber ID.

USAGE:
scw lb subscriber update <subscriber-id ...> [arg=value ...]

ARGS:
subscriber-id Subscriber ID
name Subscriber name
email-config.email Email address to send alerts to
webhook-config.uri URI to receive POST requests
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | pl-waw-1 | pl-waw-2)

FLAGS:
-h, --help help for update

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
26 changes: 26 additions & 0 deletions cmd/scw/testdata/test-all-usage-lb-subscriber-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Subscriber management commands.

USAGE:
scw lb subscriber <command>

AVAILABLE COMMANDS:
create Create a subscriber
delete Delete a subscriber
get Get a subscriber
list List all subscribers
subscribe Subscribe a subscriber to alerts for a given Load Balancer
unsubscribe Unsubscribe a subscriber from alerts for a given Load Balancer
update Update a subscriber

FLAGS:
-h, --help help for subscriber

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use

Use "scw lb subscriber [command] --help" for more information about a command.
1 change: 1 addition & 0 deletions cmd/scw/testdata/test-all-usage-lb-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ AVAILABLE COMMANDS:
lb-types Load balancer types management commands
private-network Private networks management commands
route Route rules management commands
subscriber Subscriber management commands

FLAGS:
-h, --help help for lb
Expand Down
Loading