@@ -87,13 +87,13 @@ const jsonContentHeaders = {
8787/**
8888 * Cockpit API.
8989 *
90- * Cockpit's API allows you to activate your Cockpit on your Projects.
91- * Scaleway's Cockpit stores metrics and logs and provides a dedicated Grafana
92- * for dashboarding to visualize them .
90+ * The Cockpit API allows you to activate your Cockpit to store metrics and
91+ * logs. It also provides you with a dedicated Grafana for dashboarding to
92+ * visualize your metrics and logs .
9393 */
9494export class API extends ParentAPI {
9595 /**
96- * Activate the Cockpit of the specified Project ID.
96+ * Activate the Cockpit of a given Project specified by the Project ID.
9797 *
9898 * @param request - The request {@link ActivateCockpitRequest}
9999 * @returns A Promise of Cockpit
@@ -112,7 +112,7 @@ export class API extends ParentAPI {
112112 )
113113
114114 /**
115- * Retrieve the Cockpit of the specified Project ID.
115+ * Retrieve the Cockpit of a given Project specified by the Project ID.
116116 *
117117 * @param request - The request {@link GetCockpitRequest}
118118 * @returns A Promise of Cockpit
@@ -151,7 +151,8 @@ export class API extends ParentAPI {
151151 )
152152
153153 /**
154- * Get metrics from your Cockpit with the specified Project ID.
154+ * Retrieve metrics from your Cockpit specified by the ID of the Project the
155+ * Cockpit belongs to.
155156 *
156157 * @param request - The request {@link GetCockpitMetricsRequest}
157158 * @returns A Promise of CockpitMetrics
@@ -175,7 +176,7 @@ export class API extends ParentAPI {
175176 )
176177
177178 /**
178- * Deactivate the Cockpit of the specified Project ID.
179+ * Deactivate the Cockpit of a given Project specified by the Project ID.
179180 *
180181 * @param request - The request {@link DeactivateCockpitRequest}
181182 * @returns A Promise of Cockpit
@@ -194,7 +195,8 @@ export class API extends ParentAPI {
194195 )
195196
196197 /**
197- * Create a datasource for the specified Project ID and the given type.
198+ * Create a data source for a given Project specified by the Project ID and
199+ * the data source type.
198200 *
199201 * @param request - The request {@link CreateDatasourceRequest}
200202 * @returns A Promise of Datasource
@@ -213,7 +215,7 @@ export class API extends ParentAPI {
213215 )
214216
215217 /**
216- * Delete the datasource associated with the specified datasource ID.
218+ * Delete a given data source specified by the data source ID.
217219 *
218220 * @param request - The request {@link DeleteDatasourceRequest}
219221 */
@@ -252,7 +254,7 @@ export class API extends ParentAPI {
252254 )
253255
254256 /**
255- * Get a list of datasources for the specified Project ID.
257+ * Get a list of data sources for the specified Project ID.
256258 *
257259 * @param request - The request {@link ListDatasourcesRequest}
258260 * @returns A Promise of ListDatasourcesResponse
@@ -261,7 +263,7 @@ export class API extends ParentAPI {
261263 enrichForPagination ( 'datasources' , this . pageOfListDatasources , request )
262264
263265 /**
264- * Create a token associated with the specified Project ID.
266+ * Create a token in a given Project specified by the Project ID.
265267 *
266268 * @param request - The request {@link CreateTokenRequest}
267269 * @returns A Promise of Token
@@ -301,7 +303,7 @@ export class API extends ParentAPI {
301303 )
302304
303305 /**
304- * Get a list of tokens associated with the specified Project ID.
306+ * Get a list of tokens in a given Project specified by the Project ID.
305307 *
306308 * @param request - The request {@link ListTokensRequest}
307309 * @returns A Promise of ListTokensResponse
@@ -310,7 +312,7 @@ export class API extends ParentAPI {
310312 enrichForPagination ( 'tokens' , this . pageOfListTokens , request )
311313
312314 /**
313- * Retrieve the token associated with the specified token ID.
315+ * Retrieve a given token specified by the token ID.
314316 *
315317 * @param request - The request {@link GetTokenRequest}
316318 * @returns A Promise of Token
@@ -328,7 +330,7 @@ export class API extends ParentAPI {
328330 )
329331
330332 /**
331- * Delete the token associated with the specified token ID.
333+ * Delete a given token specified by the token ID.
332334 *
333335 * @param request - The request {@link DeleteTokenRequest}
334336 */
@@ -342,7 +344,8 @@ export class API extends ParentAPI {
342344 } )
343345
344346 /**
345- * Create a contact point to receive alerts for the default receiver.
347+ * Create a contact point associated with the default receiver, to receive
348+ * alerts.
346349 *
347350 * @param request - The request {@link CreateContactPointRequest}
348351 * @returns A Promise of ContactPoint
@@ -383,8 +386,8 @@ export class API extends ParentAPI {
383386 )
384387
385388 /**
386- * Get a list of contact points for the Cockpit associated with the specified
387- * Project ID .
389+ * Get a list of contact points created for a given Cockpit, specified by the
390+ * ID of the Project the Cockpit belongs to .
388391 *
389392 * @param request - The request {@link ListContactPointsRequest}
390393 * @returns A Promise of ListContactPointsResponse
@@ -393,7 +396,7 @@ export class API extends ParentAPI {
393396 enrichForPagination ( 'contactPoints' , this . pageOfListContactPoints , request )
394397
395398 /**
396- * Delete a contact point for the default receiver.
399+ * Delete a contact point associated with the default receiver.
397400 *
398401 * @param request - The request {@link DeleteContactPointRequest}
399402 */
@@ -408,7 +411,8 @@ export class API extends ParentAPI {
408411 } )
409412
410413 /**
411- * Enable the sending of managed alerts for the specified Project's Cockpit.
414+ * Enable the sending of managed alerts for a given Cockpit, specified by the
415+ * ID of the Project the Cockpit belongs to.
412416 *
413417 * @param request - The request {@link EnableManagedAlertsRequest}
414418 */
@@ -423,7 +427,8 @@ export class API extends ParentAPI {
423427 } )
424428
425429 /**
426- * Disable the sending of managed alerts for the specified Project's Cockpit.
430+ * Disable the sending of managed alerts for a given Cockpit, specified by the
431+ * ID of the Project the Cockpit belongs to.
427432 *
428433 * @param request - The request {@link DisableManagedAlertsRequest}
429434 */
@@ -440,7 +445,8 @@ export class API extends ParentAPI {
440445 } )
441446
442447 /**
443- * Trigger a test alert to all of the Cockpit's receivers.
448+ * Send a test alert to make sure your contact points get notified when an
449+ * actual alert is triggered.
444450 *
445451 * @param request - The request {@link TriggerTestAlertRequest}
446452 */
@@ -455,8 +461,8 @@ export class API extends ParentAPI {
455461 } )
456462
457463 /**
458- * Create a Grafana user for your Cockpit's Grafana instance . Make sure you
459- * save the automatically-generated password and the Grafana user ID.
464+ * Create a Grafana user for your Cockpit's Grafana. Make sure you save the
465+ * automatically-generated password and the Grafana user ID.
460466 *
461467 * @param request - The request {@link CreateGrafanaUserRequest}
462468 * @returns A Promise of GrafanaUser
@@ -498,8 +504,7 @@ export class API extends ParentAPI {
498504 )
499505
500506 /**
501- * Get a list of Grafana users who are able to connect to the Cockpit's
502- * Grafana instance.
507+ * Get a list of all Grafana users created in your Cockpit's Grafana.
503508 *
504509 * @param request - The request {@link ListGrafanaUsersRequest}
505510 * @returns A Promise of ListGrafanaUsersResponse
@@ -508,8 +513,8 @@ export class API extends ParentAPI {
508513 enrichForPagination ( 'grafanaUsers' , this . pageOfListGrafanaUsers , request )
509514
510515 /**
511- * Delete a Grafana user from a Grafana instance , specified by the Cockpit's
512- * Project ID and the Grafana user ID .
516+ * Delete a Grafana user from your Cockpit's Grafana , specified by the ID of
517+ * the Project the Cockpit belongs to, and the ID of the Grafana user.
513518 *
514519 * @param request - The request {@link DeleteGrafanaUserRequest}
515520 */
@@ -527,8 +532,8 @@ export class API extends ParentAPI {
527532 } )
528533
529534 /**
530- * Reset a Grafana user's password specified by the Cockpit's Project ID and
531- * the Grafana user ID .
535+ * Reset the password of a Grafana user, specified by the ID of the Project
536+ * the Cockpit belongs to, and the ID of the Grafana user .
532537 *
533538 * @param request - The request {@link ResetGrafanaUserPasswordRequest}
534539 * @returns A Promise of GrafanaUser
0 commit comments