Skip to content

Commit 969935e

Browse files
docs(cockpit): rework wording (#1975)
Co-authored-by: Mia-Cross <[email protected]>
1 parent dc916e7 commit 969935e

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

api/cockpit/v1beta1/cockpit_sdk.go

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ type TriggerTestAlertRequest struct {
928928
ProjectID string `json:"project_id"`
929929
}
930930

931-
// Cockpit's API allows you to activate your Cockpit on your Projects. Scaleway's Cockpit stores metrics and logs and provides a dedicated Grafana for dashboarding to visualize them.
931+
// The Cockpit API allows you to activate your Cockpit to store metrics and logs. It also provides you with a dedicated Grafana for dashboarding to visualize your metrics and logs.
932932
type API struct {
933933
client *scw.Client
934934
}
@@ -940,7 +940,7 @@ func NewAPI(client *scw.Client) *API {
940940
}
941941
}
942942

943-
// ActivateCockpit: Activate the Cockpit of the specified Project ID.
943+
// ActivateCockpit: Activate the Cockpit of a given Project specified by the Project ID.
944944
func (s *API) ActivateCockpit(req *ActivateCockpitRequest, opts ...scw.RequestOption) (*Cockpit, error) {
945945
var err error
946946

@@ -968,7 +968,7 @@ func (s *API) ActivateCockpit(req *ActivateCockpitRequest, opts ...scw.RequestOp
968968
return &resp, nil
969969
}
970970

971-
// GetCockpit: Retrieve the Cockpit of the specified Project ID.
971+
// GetCockpit: Retrieve the Cockpit of a given Project specified by the Project ID.
972972
func (s *API) GetCockpit(req *GetCockpitRequest, opts ...scw.RequestOption) (*Cockpit, error) {
973973
var err error
974974

@@ -995,7 +995,7 @@ func (s *API) GetCockpit(req *GetCockpitRequest, opts ...scw.RequestOption) (*Co
995995
return &resp, nil
996996
}
997997

998-
// GetCockpitMetrics: Get metrics from your Cockpit with the specified Project ID.
998+
// GetCockpitMetrics: Retrieve metrics from your Cockpit specified by the ID of the Project the Cockpit belongs to.
999999
func (s *API) GetCockpitMetrics(req *GetCockpitMetricsRequest, opts ...scw.RequestOption) (*CockpitMetrics, error) {
10001000
var err error
10011001

@@ -1025,7 +1025,7 @@ func (s *API) GetCockpitMetrics(req *GetCockpitMetricsRequest, opts ...scw.Reque
10251025
return &resp, nil
10261026
}
10271027

1028-
// DeactivateCockpit: Deactivate the Cockpit of the specified Project ID.
1028+
// DeactivateCockpit: Deactivate the Cockpit of a given Project specified by the Project ID.
10291029
func (s *API) DeactivateCockpit(req *DeactivateCockpitRequest, opts ...scw.RequestOption) (*Cockpit, error) {
10301030
var err error
10311031

@@ -1053,7 +1053,7 @@ func (s *API) DeactivateCockpit(req *DeactivateCockpitRequest, opts ...scw.Reque
10531053
return &resp, nil
10541054
}
10551055

1056-
// CreateDatasource: Create a datasource for the specified Project ID and the given type.
1056+
// CreateDatasource: Create a data source for a given Project specified by the Project ID and the data source type.
10571057
func (s *API) CreateDatasource(req *CreateDatasourceRequest, opts ...scw.RequestOption) (*Datasource, error) {
10581058
var err error
10591059

@@ -1081,7 +1081,7 @@ func (s *API) CreateDatasource(req *CreateDatasourceRequest, opts ...scw.Request
10811081
return &resp, nil
10821082
}
10831083

1084-
// DeleteDatasource: Delete the datasource associated with the specified datasource ID.
1084+
// DeleteDatasource: Delete a given data source specified by the data source ID.
10851085
func (s *API) DeleteDatasource(req *DeleteDatasourceRequest, opts ...scw.RequestOption) error {
10861086
var err error
10871087

@@ -1101,7 +1101,7 @@ func (s *API) DeleteDatasource(req *DeleteDatasourceRequest, opts ...scw.Request
11011101
return nil
11021102
}
11031103

1104-
// ListDatasources: Get a list of datasources for the specified Project ID.
1104+
// ListDatasources: Get a list of data sources for the specified Project ID.
11051105
func (s *API) ListDatasources(req *ListDatasourcesRequest, opts ...scw.RequestOption) (*ListDatasourcesResponse, error) {
11061106
var err error
11071107

@@ -1138,7 +1138,7 @@ func (s *API) ListDatasources(req *ListDatasourcesRequest, opts ...scw.RequestOp
11381138
return &resp, nil
11391139
}
11401140

1141-
// CreateToken: Create a token associated with the specified Project ID.
1141+
// CreateToken: Create a token in a given Project specified by the Project ID.
11421142
func (s *API) CreateToken(req *CreateTokenRequest, opts ...scw.RequestOption) (*Token, error) {
11431143
var err error
11441144

@@ -1170,7 +1170,7 @@ func (s *API) CreateToken(req *CreateTokenRequest, opts ...scw.RequestOption) (*
11701170
return &resp, nil
11711171
}
11721172

1173-
// ListTokens: Get a list of tokens associated with the specified Project ID.
1173+
// ListTokens: Get a list of tokens in a given Project specified by the Project ID.
11741174
func (s *API) ListTokens(req *ListTokensRequest, opts ...scw.RequestOption) (*ListTokensResponse, error) {
11751175
var err error
11761176

@@ -1205,7 +1205,7 @@ func (s *API) ListTokens(req *ListTokensRequest, opts ...scw.RequestOption) (*Li
12051205
return &resp, nil
12061206
}
12071207

1208-
// GetToken: Retrieve the token associated with the specified token ID.
1208+
// GetToken: Retrieve a given token specified by the token ID.
12091209
func (s *API) GetToken(req *GetTokenRequest, opts ...scw.RequestOption) (*Token, error) {
12101210
var err error
12111211

@@ -1227,7 +1227,7 @@ func (s *API) GetToken(req *GetTokenRequest, opts ...scw.RequestOption) (*Token,
12271227
return &resp, nil
12281228
}
12291229

1230-
// DeleteToken: Delete the token associated with the specified token ID.
1230+
// DeleteToken: Delete a given token specified by the token ID.
12311231
func (s *API) DeleteToken(req *DeleteTokenRequest, opts ...scw.RequestOption) error {
12321232
var err error
12331233

@@ -1247,7 +1247,7 @@ func (s *API) DeleteToken(req *DeleteTokenRequest, opts ...scw.RequestOption) er
12471247
return nil
12481248
}
12491249

1250-
// CreateContactPoint: Create a contact point to receive alerts for the default receiver.
1250+
// CreateContactPoint: Create a contact point associated with the default receiver, to receive alerts.
12511251
func (s *API) CreateContactPoint(req *CreateContactPointRequest, opts ...scw.RequestOption) (*ContactPoint, error) {
12521252
var err error
12531253

@@ -1275,7 +1275,7 @@ func (s *API) CreateContactPoint(req *CreateContactPointRequest, opts ...scw.Req
12751275
return &resp, nil
12761276
}
12771277

1278-
// ListContactPoints: Get a list of contact points for the Cockpit associated with the specified Project ID.
1278+
// ListContactPoints: Get a list of contact points created for a given Cockpit, specified by the ID of the Project the Cockpit belongs to.
12791279
func (s *API) ListContactPoints(req *ListContactPointsRequest, opts ...scw.RequestOption) (*ListContactPointsResponse, error) {
12801280
var err error
12811281

@@ -1309,7 +1309,7 @@ func (s *API) ListContactPoints(req *ListContactPointsRequest, opts ...scw.Reque
13091309
return &resp, nil
13101310
}
13111311

1312-
// DeleteContactPoint: Delete a contact point for the default receiver.
1312+
// DeleteContactPoint: Delete a contact point associated with the default receiver.
13131313
func (s *API) DeleteContactPoint(req *DeleteContactPointRequest, opts ...scw.RequestOption) error {
13141314
var err error
13151315

@@ -1335,7 +1335,7 @@ func (s *API) DeleteContactPoint(req *DeleteContactPointRequest, opts ...scw.Req
13351335
return nil
13361336
}
13371337

1338-
// EnableManagedAlerts: Enable the sending of managed alerts for the specified Project's Cockpit.
1338+
// EnableManagedAlerts: Enable the sending of managed alerts for a given Cockpit, specified by the ID of the Project the Cockpit belongs to.
13391339
func (s *API) EnableManagedAlerts(req *EnableManagedAlertsRequest, opts ...scw.RequestOption) error {
13401340
var err error
13411341

@@ -1361,7 +1361,7 @@ func (s *API) EnableManagedAlerts(req *EnableManagedAlertsRequest, opts ...scw.R
13611361
return nil
13621362
}
13631363

1364-
// DisableManagedAlerts: Disable the sending of managed alerts for the specified Project's Cockpit.
1364+
// DisableManagedAlerts: Disable the sending of managed alerts for a given Cockpit, specified by the ID of the Project the Cockpit belongs to.
13651365
func (s *API) DisableManagedAlerts(req *DisableManagedAlertsRequest, opts ...scw.RequestOption) error {
13661366
var err error
13671367

@@ -1387,7 +1387,7 @@ func (s *API) DisableManagedAlerts(req *DisableManagedAlertsRequest, opts ...scw
13871387
return nil
13881388
}
13891389

1390-
// TriggerTestAlert: Trigger a test alert to all of the Cockpit's receivers.
1390+
// TriggerTestAlert: Send a test alert to make sure your contact points get notified when an actual alert is triggered.
13911391
func (s *API) TriggerTestAlert(req *TriggerTestAlertRequest, opts ...scw.RequestOption) error {
13921392
var err error
13931393

@@ -1413,7 +1413,7 @@ func (s *API) TriggerTestAlert(req *TriggerTestAlertRequest, opts ...scw.Request
14131413
return nil
14141414
}
14151415

1416-
// CreateGrafanaUser: Create a Grafana user for your Cockpit's Grafana instance. Make sure you save the automatically-generated password and the Grafana user ID.
1416+
// CreateGrafanaUser: Create a Grafana user for your Cockpit's Grafana. Make sure you save the automatically-generated password and the Grafana user ID.
14171417
func (s *API) CreateGrafanaUser(req *CreateGrafanaUserRequest, opts ...scw.RequestOption) (*GrafanaUser, error) {
14181418
var err error
14191419

@@ -1441,7 +1441,7 @@ func (s *API) CreateGrafanaUser(req *CreateGrafanaUserRequest, opts ...scw.Reque
14411441
return &resp, nil
14421442
}
14431443

1444-
// ListGrafanaUsers: Get a list of Grafana users who are able to connect to the Cockpit's Grafana instance.
1444+
// ListGrafanaUsers: Get a list of all Grafana users created in your Cockpit's Grafana.
14451445
func (s *API) ListGrafanaUsers(req *ListGrafanaUsersRequest, opts ...scw.RequestOption) (*ListGrafanaUsersResponse, error) {
14461446
var err error
14471447

@@ -1476,7 +1476,7 @@ func (s *API) ListGrafanaUsers(req *ListGrafanaUsersRequest, opts ...scw.Request
14761476
return &resp, nil
14771477
}
14781478

1479-
// DeleteGrafanaUser: Delete a Grafana user from a Grafana instance, specified by the Cockpit's Project ID and the Grafana user ID.
1479+
// DeleteGrafanaUser: Delete a Grafana user from your Cockpit's Grafana, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
14801480
func (s *API) DeleteGrafanaUser(req *DeleteGrafanaUserRequest, opts ...scw.RequestOption) error {
14811481
var err error
14821482

@@ -1506,7 +1506,7 @@ func (s *API) DeleteGrafanaUser(req *DeleteGrafanaUserRequest, opts ...scw.Reque
15061506
return nil
15071507
}
15081508

1509-
// ResetGrafanaUserPassword: Reset a Grafana user's password specified by the Cockpit's Project ID and the Grafana user ID.
1509+
// ResetGrafanaUserPassword: Reset the password of a Grafana user, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
15101510
func (s *API) ResetGrafanaUserPassword(req *ResetGrafanaUserPasswordRequest, opts ...scw.RequestOption) (*GrafanaUser, error) {
15111511
var err error
15121512

0 commit comments

Comments
 (0)