@@ -73,14 +73,16 @@ const jsonContentHeaders = {
7373}
7474
7575/**
76- * Cockpit API.
76+ * Cockpit API documentation .
7777 *
78- * This API allows to manage Cockpits. Cockpit API.
78+ * Cockpit's API allows you to monitor your applications and their
79+ * infrastructure. Cockpit's API allows you to activate your Cockpit on your
80+ * Projects. Scaleway's Cockpit stores metrics and logs and provides a dedicated
81+ * Grafana for dashboarding to visualize them.
7982 */
8083export class API extends ParentAPI {
8184 /**
82- * Activate a cockpit. Activate a cockpit associated with the given project
83- * ID.
85+ * Activate a Cockpit. Activate the Cockpit of the specified Project ID.
8486 *
8587 * @param request - The request {@link ActivateCockpitRequest}
8688 * @returns A Promise of Cockpit
@@ -99,7 +101,7 @@ export class API extends ParentAPI {
99101 )
100102
101103 /**
102- * Get cockpit. Get the cockpit associated with the given project ID.
104+ * Get a Cockpit. Retrieve the Cockpit of the specified Project ID.
103105 *
104106 * @param request - The request {@link GetCockpitRequest}
105107 * @returns A Promise of Cockpit
@@ -138,7 +140,8 @@ export class API extends ParentAPI {
138140 )
139141
140142 /**
141- * Get cockpit metrics. Get the cockpit metrics with the given project ID.
143+ * Get Cockpit metrics. Get metrics from your Cockpit with the specified
144+ * Project ID.
142145 *
143146 * @param request - The request {@link GetCockpitMetricsRequest}
144147 * @returns A Promise of CockpitMetrics
@@ -162,8 +165,7 @@ export class API extends ParentAPI {
162165 )
163166
164167 /**
165- * Deactivate a cockpit. Deactivate a cockpit associated with the given
166- * project ID.
168+ * Deactivate a Cockpit. Deactivate the Cockpit of the specified Project ID.
167169 *
168170 * @param request - The request {@link DeactivateCockpitRequest}
169171 * @returns A Promise of Cockpit
@@ -182,8 +184,8 @@ export class API extends ParentAPI {
182184 )
183185
184186 /**
185- * Reset Grafana. Reset the Grafana of your cockpit associated with the given
186- * project ID.
187+ * Reset a Grafana. Reset your Cockpit's Grafana associated with the specified
188+ * Project ID.
187189 *
188190 * @param request - The request {@link ResetCockpitGrafanaRequest}
189191 * @returns A Promise of Cockpit
@@ -202,7 +204,7 @@ export class API extends ParentAPI {
202204 )
203205
204206 /**
205- * Create a token. Create a token associated with the given project ID.
207+ * Create a token. Create a token associated with the specified Project ID.
206208 *
207209 * @param request - The request {@link CreateTokenRequest}
208210 * @returns A Promise of Token
@@ -242,7 +244,7 @@ export class API extends ParentAPI {
242244 )
243245
244246 /**
245- * List tokens. List tokens associated with the given project ID.
247+ * List tokens. Get a list of tokens associated with the specified Project ID.
246248 *
247249 * @param request - The request {@link ListTokensRequest}
248250 * @returns A Promise of ListTokensResponse
@@ -251,7 +253,7 @@ export class API extends ParentAPI {
251253 enrichForPagination ( 'tokens' , this . pageOfListTokens , request )
252254
253255 /**
254- * Get token. Get the token associated with the given ID.
256+ * Get a token. Retrieve the token associated with the specified token ID.
255257 *
256258 * @param request - The request {@link GetTokenRequest}
257259 * @returns A Promise of Token
@@ -269,7 +271,7 @@ export class API extends ParentAPI {
269271 )
270272
271273 /**
272- * Delete token. Delete the token associated with the given ID.
274+ * Delete a token. Delete the token associated with the specified token ID.
273275 *
274276 * @param request - The request {@link DeleteTokenRequest}
275277 */
@@ -283,7 +285,7 @@ export class API extends ParentAPI {
283285 } )
284286
285287 /**
286- * Create an alert contact point. Create an alert contact point for the
288+ * Create a contact point. Create a contact point to receive alerts for the
287289 * default receiver.
288290 *
289291 * @param request - The request {@link CreateContactPointRequest}
@@ -325,8 +327,8 @@ export class API extends ParentAPI {
325327 )
326328
327329 /**
328- * List alert contact points. List alert contact points associated with the
329- * given cockpit ID.
330+ * List contact points. Get a list of contact points for the Cockpit
331+ * associated with the specified Project ID.
330332 *
331333 * @param request - The request {@link ListContactPointsRequest}
332334 * @returns A Promise of ListContactPointsResponse
@@ -335,8 +337,8 @@ export class API extends ParentAPI {
335337 enrichForPagination ( 'contactPoints' , this . pageOfListContactPoints , request )
336338
337339 /**
338- * Delete an alert contact point. Delete an alert contact point for the
339- * default receiver.
340+ * Delete an alert contact point. Delete a contact point for the default
341+ * receiver.
340342 *
341343 * @param request - The request {@link DeleteContactPointRequest}
342344 */
@@ -351,7 +353,8 @@ export class API extends ParentAPI {
351353 } )
352354
353355 /**
354- * Enable managed alerts.
356+ * Enable managed alerts. Enable the sending of managed alerts for the
357+ * specified Project's Cockpit.
355358 *
356359 * @param request - The request {@link EnableManagedAlertsRequest}
357360 */
@@ -366,7 +369,8 @@ export class API extends ParentAPI {
366369 } )
367370
368371 /**
369- * Disable managed alerts.
372+ * Disable managed alerts. Disable the sending of managed alerts for the
373+ * specified Project's Cockpit.
370374 *
371375 * @param request - The request {@link DisableManagedAlertsRequest}
372376 */
@@ -383,7 +387,8 @@ export class API extends ParentAPI {
383387 } )
384388
385389 /**
386- * Trigger a test alert. Trigger a test alert to all receivers.
390+ * Trigger a test alert. Trigger a test alert to all of the Cockpit's
391+ * receivers.
387392 *
388393 * @param request - The request {@link TriggerTestAlertRequest}
389394 */
@@ -398,7 +403,9 @@ export class API extends ParentAPI {
398403 } )
399404
400405 /**
401- * Create a grafana user. Create a grafana user for your grafana instance.
406+ * Create a Grafana user. Create a Grafana user for your Cockpit's Grafana
407+ * instance. Make sure you save the automatically-generated password and the
408+ * Grafana user ID.
402409 *
403410 * @param request - The request {@link CreateGrafanaUserRequest}
404411 * @returns A Promise of GrafanaUser
@@ -440,8 +447,8 @@ export class API extends ParentAPI {
440447 )
441448
442449 /**
443- * List grafana users. List grafana users who are able to connect to your
444- * grafana instance.
450+ * List Grafana users. Get a list of Grafana users who are able to connect to
451+ * the Cockpit's Grafana instance.
445452 *
446453 * @param request - The request {@link ListGrafanaUsersRequest}
447454 * @returns A Promise of ListGrafanaUsersResponse
@@ -450,7 +457,8 @@ export class API extends ParentAPI {
450457 enrichForPagination ( 'grafanaUsers' , this . pageOfListGrafanaUsers , request )
451458
452459 /**
453- * Delete a grafana user. Delete a grafana user from your grafana instance.
460+ * Delete a Grafana user. Delete a Grafana user from a Grafana instance,
461+ * specified by the Cockpit's Project ID and the Grafana user ID.
454462 *
455463 * @param request - The request {@link DeleteGrafanaUserRequest}
456464 */
@@ -468,8 +476,8 @@ export class API extends ParentAPI {
468476 } )
469477
470478 /**
471- * Reset Grafana user password. Reset the Grafana user password from your
472- * grafana instance .
479+ * Reset a Grafana user's password. Reset a Grafana user's password specified
480+ * by the Cockpit's Project ID and the Grafana user ID .
473481 *
474482 * @param request - The request {@link ResetGrafanaUserPasswordRequest}
475483 * @returns A Promise of GrafanaUser
@@ -510,7 +518,7 @@ export class API extends ParentAPI {
510518 )
511519
512520 /**
513- * List plans. List all pricing plans.
521+ * List pricing plans. Get a list of all pricing plans available .
514522 *
515523 * @param request - The request {@link ListPlansRequest}
516524 * @returns A Promise of ListPlansResponse
@@ -519,7 +527,9 @@ export class API extends ParentAPI {
519527 enrichForPagination ( 'plans' , this . pageOfListPlans , request )
520528
521529 /**
522- * Select pricing plan. Select the wanted pricing plan.
530+ * Select pricing plan. Select your chosen pricing plan for your Cockpit,
531+ * specifying the Cockpit's Project ID and the pricing plan's ID in the
532+ * request.
523533 *
524534 * @param request - The request {@link SelectPlanRequest}
525535 * @returns A Promise of SelectPlanResponse
0 commit comments