Skip to content

Commit 0d910d7

Browse files
chore(serverless): deprecate /logs and /metrics endpoint (#3654)
Co-authored-by: Mia-Cross <[email protected]>
1 parent cdf717b commit 0d910d7

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

cmd/scw/testdata/test-all-usage-container-container-get-logs-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-
List the logs of the container with the specified ID.
3+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the logs of the container with the specified ID.
44

55
USAGE:
66
scw container container get-logs <container-id ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-container-container-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ AVAILABLE COMMANDS:
1010
delete Delete a container
1111
deploy Deploy a container
1212
get Get a container
13-
get-logs List your container logs
13+
get-logs Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your container logs
1414
list List all your containers
1515
update Update an existing container
1616

cmd/scw/testdata/test-all-usage-function-function-get-logs-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-
List the application logs of the function with the specified ID.
3+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the application logs of the function with the specified ID.
44

55
USAGE:
66
scw function function get-logs <function-id ...> [arg=value ...]

cmd/scw/testdata/test-all-usage-function-function-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ AVAILABLE COMMANDS:
1111
deploy Deploy a function
1212
get Get a function
1313
get-download-url Get a download URL of a function
14-
get-logs List application logs
14+
get-logs Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List application logs
1515
get-upload-url Get an upload URL of a function
1616
list List all your functions
1717
update Update an existing function

docs/commands/container.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Container as a Service API.
77
- [Delete a container](#delete-a-container)
88
- [Deploy a container](#deploy-a-container)
99
- [Get a container](#get-a-container)
10-
- [List your container logs](#list-your-container-logs)
10+
- [Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your container logs](#deprecated-(replaced-by-[cockpit](https:www.scaleway.comendevelopersapicockpit)).-list-your-container-logs)
1111
- [List all your containers](#list-all-your-containers)
1212
- [Update an existing container](#update-an-existing-container)
1313
- [Cron management commands](#cron-management-commands)
@@ -143,9 +143,9 @@ scw container container get <container-id ...> [arg=value ...]
143143

144144

145145

146-
### List your container logs
146+
### Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your container logs
147147

148-
List the logs of the container with the specified ID.
148+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the logs of the container with the specified ID.
149149

150150
**Usage:**
151151

docs/commands/function.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Function as a Service API.
2020
- [Deploy a function](#deploy-a-function)
2121
- [Get a function](#get-a-function)
2222
- [Get a download URL of a function](#get-a-download-url-of-a-function)
23-
- [List application logs](#list-application-logs)
23+
- [Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List application logs](#deprecated-(replaced-by-[cockpit](https:www.scaleway.comendevelopersapicockpit)).-list-application-logs)
2424
- [Get an upload URL of a function](#get-an-upload-url-of-a-function)
2525
- [List all your functions](#list-all-your-functions)
2626
- [Update an existing function](#update-an-existing-function)
@@ -388,9 +388,9 @@ scw function function get-download-url <function-id ...> [arg=value ...]
388388

389389

390390

391-
### List application logs
391+
### Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List application logs
392392

393-
List the application logs of the function with the specified ID.
393+
Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the application logs of the function with the specified ID.
394394

395395
**Usage:**
396396

internal/namespaces/container/v1beta1/container_cli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,12 +1017,12 @@ func containerCronDelete() *core.Command {
10171017

10181018
func containerContainerGetLogs() *core.Command {
10191019
return &core.Command{
1020-
Short: `List your container logs`,
1021-
Long: `List the logs of the container with the specified ID.`,
1020+
Short: `Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List your container logs`,
1021+
Long: `Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the logs of the container with the specified ID.`,
10221022
Namespace: "container",
10231023
Resource: "container",
10241024
Verb: "get-logs",
1025-
// Deprecated: false,
1025+
// Deprecated: true,
10261026
ArgsType: reflect.TypeOf(container.ListLogsRequest{}),
10271027
ArgSpecs: core.ArgSpecs{
10281028
{

internal/namespaces/function/v1beta1/function_cli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,12 +1115,12 @@ func functionCronDelete() *core.Command {
11151115

11161116
func functionFunctionGetLogs() *core.Command {
11171117
return &core.Command{
1118-
Short: `List application logs`,
1119-
Long: `List the application logs of the function with the specified ID.`,
1118+
Short: `Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List application logs`,
1119+
Long: `Deprecated (replaced by [Cockpit](https://www.scaleway.com/en/developers/api/cockpit/)). List the application logs of the function with the specified ID.`,
11201120
Namespace: "function",
11211121
Resource: "function",
11221122
Verb: "get-logs",
1123-
// Deprecated: false,
1123+
// Deprecated: true,
11241124
ArgsType: reflect.TypeOf(function.ListLogsRequest{}),
11251125
ArgSpecs: core.ArgSpecs{
11261126
{

0 commit comments

Comments
 (0)