@@ -77,8 +77,8 @@ class CockpitV1Beta1API(API):
7777 """
7878 Cockpit API.
7979
80- This API allows to manage Cockpits.
8180 Cockpit API.
81+ 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.
8282 """
8383
8484 async def activate_cockpit (
@@ -87,9 +87,9 @@ async def activate_cockpit(
8787 project_id : Optional [str ] = None ,
8888 ) -> Cockpit :
8989 """
90- Activate a cockpit .
91- Activate a cockpit associated with the given project ID.
92- :param project_id:
90+ Activate a Cockpit .
91+ Activate the Cockpit of the specified Project ID.
92+ :param project_id: ID of the Project the Cockpit belongs to.
9393 :return: :class:`Cockpit <Cockpit>`
9494
9595 Usage:
@@ -118,9 +118,9 @@ async def get_cockpit(
118118 project_id : Optional [str ] = None ,
119119 ) -> Cockpit :
120120 """
121- Get cockpit .
122- Get the cockpit associated with the given project ID.
123- :param project_id:
121+ Get a Cockpit .
122+ Retrieve the Cockpit of the specified Project ID.
123+ :param project_id: ID of the Project the Cockpit belongs to.
124124 :return: :class:`Cockpit <Cockpit>`
125125
126126 Usage:
@@ -148,7 +148,7 @@ async def wait_for_cockpit(
148148 ) -> Cockpit :
149149 """
150150 Waits for :class:`Cockpit <Cockpit>` to be in a final state.
151- :param project_id:
151+ :param project_id: ID of the Project the Cockpit belongs to.
152152 :param options: The options for the waiter
153153 :return: :class:`Cockpit <Cockpit>`
154154
@@ -181,14 +181,12 @@ async def get_cockpit_metrics(
181181 metric_name : Optional [str ] = None ,
182182 ) -> CockpitMetrics :
183183 """
184- Get cockpit metrics.
185- Get the cockpit metrics with the given project ID.
186- :param project_id: Project ID.
187- :param start_date: Start date.
188- Start date, if omited, query will be instant query and End Date will be used as query time.
189- :param end_date: End date.
190- End date, if omited set to now.
191- :param metric_name: Metric name.
184+ Get Cockpit metrics.
185+ Get metrics from your Cockpit with the specified Project ID.
186+ :param project_id: ID of the Project the Cockpit belongs to.
187+ :param start_date: Desired time range's start date for the metrics.
188+ :param end_date: Desired time range's end date for the metrics.
189+ :param metric_name: Name of the metric requested.
192190 :return: :class:`CockpitMetrics <CockpitMetrics>`
193191
194192 Usage:
@@ -217,9 +215,9 @@ async def deactivate_cockpit(
217215 project_id : Optional [str ] = None ,
218216 ) -> Cockpit :
219217 """
220- Deactivate a cockpit .
221- Deactivate a cockpit associated with the given project ID.
222- :param project_id:
218+ Deactivate a Cockpit .
219+ Deactivate the Cockpit of the specified Project ID.
220+ :param project_id: ID of the Project the Cockpit belongs to.
223221 :return: :class:`Cockpit <Cockpit>`
224222
225223 Usage:
@@ -248,9 +246,9 @@ async def reset_cockpit_grafana(
248246 project_id : Optional [str ] = None ,
249247 ) -> Cockpit :
250248 """
251- Reset Grafana.
252- Reset the Grafana of your cockpit associated with the given project ID.
253- :param project_id:
249+ Reset a Grafana.
250+ Reset your Cockpit's Grafana associated with the specified Project ID.
251+ :param project_id: ID of the Project the Cockpit belongs to.
254252 :return: :class:`Cockpit <Cockpit>`
255253
256254 Usage:
@@ -282,10 +280,10 @@ async def create_token(
282280 ) -> Token :
283281 """
284282 Create a token.
285- Create a token associated with the given project ID.
286- :param project_id:
287- :param name:
288- :param scopes:
283+ Create a token associated with the specified Project ID.
284+ :param project_id: ID of the Project.
285+ :param name: Name of the token.
286+ :param scopes: Token's permissions.
289287 :return: :class:`Token <Token>`
290288
291289 Usage:
@@ -320,11 +318,11 @@ async def list_tokens(
320318 ) -> ListTokensResponse :
321319 """
322320 List tokens.
323- List tokens associated with the given project ID.
324- :param page:
325- :param page_size:
321+ Get a list of tokens associated with the specified Project ID.
322+ :param page: Page number.
323+ :param page_size: Page size.
326324 :param order_by:
327- :param project_id:
325+ :param project_id: ID of the Project.
328326 :return: :class:`ListTokensResponse <ListTokensResponse>`
329327
330328 Usage:
@@ -357,11 +355,11 @@ async def list_tokens_all(
357355 ) -> List [Token ]:
358356 """
359357 List tokens.
360- List tokens associated with the given project ID.
361- :param page:
362- :param page_size:
358+ Get a list of tokens associated with the specified Project ID.
359+ :param page: Page number.
360+ :param page_size: Page size.
363361 :param order_by:
364- :param project_id:
362+ :param project_id: ID of the Project.
365363 :return: :class:`List[ListTokensResponse] <List[ListTokensResponse]>`
366364
367365 Usage:
@@ -388,9 +386,9 @@ async def get_token(
388386 token_id : str ,
389387 ) -> Token :
390388 """
391- Get token.
392- Get the token associated with the given ID.
393- :param token_id:
389+ Get a token.
390+ Retrieve the token associated with the specified token ID.
391+ :param token_id: ID of the token.
394392 :return: :class:`Token <Token>`
395393
396394 Usage:
@@ -415,9 +413,9 @@ async def delete_token(
415413 token_id : str ,
416414 ) -> Optional [None ]:
417415 """
418- Delete token.
419- Delete the token associated with the given ID.
420- :param token_id:
416+ Delete a token.
417+ Delete the token associated with the specified token ID.
418+ :param token_id: ID of the token.
421419
422420 Usage:
423421 ::
@@ -442,9 +440,9 @@ async def create_contact_point(
442440 contact_point : Optional [ContactPoint ] = None ,
443441 ) -> ContactPoint :
444442 """
445- Create an alert contact point.
446- Create an alert contact point for the default receiver.
447- :param project_id: Project ID .
443+ Create a contact point.
444+ Create a contact point to receive alerts for the default receiver.
445+ :param project_id: ID of the Project in which to create the contact point .
448446 :param contact_point: Contact point to create.
449447 :return: :class:`ContactPoint <ContactPoint>`
450448
@@ -477,11 +475,11 @@ async def list_contact_points(
477475 project_id : Optional [str ] = None ,
478476 ) -> ListContactPointsResponse :
479477 """
480- List alert contact points.
481- List alert contact points associated with the given cockpit ID.
478+ List contact points.
479+ Get a list of contact points for the Cockpit associated with the specified Project ID.
482480 :param page: Page number.
483481 :param page_size: Page size.
484- :param project_id: Project ID .
482+ :param project_id: ID of the Project from which to list the contact points .
485483 :return: :class:`ListContactPointsResponse <ListContactPointsResponse>`
486484
487485 Usage:
@@ -511,11 +509,11 @@ async def list_contact_points_all(
511509 project_id : Optional [str ] = None ,
512510 ) -> List [ContactPoint ]:
513511 """
514- List alert contact points.
515- List alert contact points associated with the given cockpit ID.
512+ List contact points.
513+ Get a list of contact points for the Cockpit associated with the specified Project ID.
516514 :param page: Page number.
517515 :param page_size: Page size.
518- :param project_id: Project ID .
516+ :param project_id: ID of the Project from which to list the contact points .
519517 :return: :class:`List[ListContactPointsResponse] <List[ListContactPointsResponse]>`
520518
521519 Usage:
@@ -543,8 +541,8 @@ async def delete_contact_point(
543541 ) -> Optional [None ]:
544542 """
545543 Delete an alert contact point.
546- Delete an alert contact point for the default receiver.
547- :param project_id:
544+ Delete a contact point for the default receiver.
545+ :param project_id: ID of the Project.
548546 :param contact_point: Contact point to delete.
549547
550548 Usage:
@@ -575,7 +573,8 @@ async def enable_managed_alerts(
575573 ) -> Optional [None ]:
576574 """
577575 Enable managed alerts.
578- :param project_id:
576+ Enable the sending of managed alerts for the specified Project's Cockpit.
577+ :param project_id: ID of the Project.
579578
580579 Usage:
581580 ::
@@ -604,7 +603,8 @@ async def disable_managed_alerts(
604603 ) -> Optional [None ]:
605604 """
606605 Disable managed alerts.
607- :param project_id:
606+ Disable the sending of managed alerts for the specified Project's Cockpit.
607+ :param project_id: ID of the Project.
608608
609609 Usage:
610610 ::
@@ -633,7 +633,7 @@ async def trigger_test_alert(
633633 ) -> Optional [None ]:
634634 """
635635 Trigger a test alert.
636- Trigger a test alert to all receivers.
636+ Trigger a test alert to all of the Cockpit's receivers.
637637 :param project_id:
638638
639639 Usage:
@@ -664,11 +664,11 @@ async def create_grafana_user(
664664 project_id : Optional [str ] = None ,
665665 ) -> GrafanaUser :
666666 """
667- Create a grafana user.
668- Create a grafana user for your grafana instance.
669- :param project_id:
670- :param login:
671- :param role:
667+ Create a Grafana user.
668+ Create a Grafana user for your Cockpit's Grafana instance. Make sure you save the automatically-generated password and the Grafana user ID .
669+ :param project_id: ID of the Project.
670+ :param login: Username of the Grafana user.
671+ :param role: Role assigned to the Grafana user.
672672 :return: :class:`GrafanaUser <GrafanaUser>`
673673
674674 Usage:
@@ -705,12 +705,12 @@ async def list_grafana_users(
705705 project_id : Optional [str ] = None ,
706706 ) -> ListGrafanaUsersResponse :
707707 """
708- List grafana users.
709- List grafana users who are able to connect to your grafana instance.
710- :param page:
711- :param page_size:
708+ List Grafana users.
709+ Get a list of Grafana users who are able to connect to the Cockpit's Grafana instance.
710+ :param page: Page number.
711+ :param page_size: Page size.
712712 :param order_by:
713- :param project_id:
713+ :param project_id: ID of the Project.
714714 :return: :class:`ListGrafanaUsersResponse <ListGrafanaUsersResponse>`
715715
716716 Usage:
@@ -742,12 +742,12 @@ async def list_grafana_users_all(
742742 project_id : Optional [str ] = None ,
743743 ) -> List [GrafanaUser ]:
744744 """
745- List grafana users.
746- List grafana users who are able to connect to your grafana instance.
747- :param page:
748- :param page_size:
745+ List Grafana users.
746+ Get a list of Grafana users who are able to connect to the Cockpit's Grafana instance.
747+ :param page: Page number.
748+ :param page_size: Page size.
749749 :param order_by:
750- :param project_id:
750+ :param project_id: ID of the Project.
751751 :return: :class:`List[ListGrafanaUsersResponse] <List[ListGrafanaUsersResponse]>`
752752
753753 Usage:
@@ -775,10 +775,10 @@ async def delete_grafana_user(
775775 project_id : Optional [str ] = None ,
776776 ) -> Optional [None ]:
777777 """
778- Delete a grafana user.
779- Delete a grafana user from your grafana instance.
780- :param grafana_user_id:
781- :param project_id:
778+ Delete a Grafana user.
779+ Delete a Grafana user from a Grafana instance, specified by the Cockpit's Project ID and the Grafana user ID .
780+ :param grafana_user_id: ID of the Grafana user.
781+ :param project_id: ID of the Project.
782782
783783 Usage:
784784 ::
@@ -810,10 +810,10 @@ async def reset_grafana_user_password(
810810 project_id : Optional [str ] = None ,
811811 ) -> GrafanaUser :
812812 """
813- Reset Grafana user password.
814- Reset the Grafana user password from your grafana instance .
815- :param grafana_user_id:
816- :param project_id:
813+ Reset a Grafana user's password.
814+ Reset a Grafana user's password specified by the Cockpit's Project ID and the Grafana user ID .
815+ :param grafana_user_id: ID of the Grafana user.
816+ :param project_id: ID of the Project.
817817 :return: :class:`GrafanaUser <GrafanaUser>`
818818
819819 Usage:
@@ -847,10 +847,10 @@ async def list_plans(
847847 order_by : ListPlansRequestOrderBy = ListPlansRequestOrderBy .NAME_ASC ,
848848 ) -> ListPlansResponse :
849849 """
850- List plans.
851- List all pricing plans.
852- :param page:
853- :param page_size:
850+ List pricing plans.
851+ Get a list of all pricing plans available .
852+ :param page: Page number.
853+ :param page_size: Page size.
854854 :param order_by:
855855 :return: :class:`ListPlansResponse <ListPlansResponse>`
856856
@@ -881,10 +881,10 @@ async def list_plans_all(
881881 order_by : Optional [ListPlansRequestOrderBy ] = None ,
882882 ) -> List [Plan ]:
883883 """
884- List plans.
885- List all pricing plans.
886- :param page:
887- :param page_size:
884+ List pricing plans.
885+ Get a list of all pricing plans available .
886+ :param page: Page number.
887+ :param page_size: Page size.
888888 :param order_by:
889889 :return: :class:`List[ListPlansResponse] <List[ListPlansResponse]>`
890890
@@ -913,9 +913,9 @@ async def select_plan(
913913 ) -> SelectPlanResponse :
914914 """
915915 Select pricing plan.
916- Select the wanted pricing plan.
917- :param project_id:
918- :param plan_id:
916+ Select your chosen pricing plan for your Cockpit, specifying the Cockpit's Project ID and the pricing plan's ID in the request .
917+ :param project_id: ID of the Project.
918+ :param plan_id: ID of the pricing plan.
919919 :return: :class:`SelectPlanResponse <SelectPlanResponse>`
920920
921921 Usage:
0 commit comments