Skip to content

Commit ad2691e

Browse files
authored
docs(cockpit): rework wording (#419)
1 parent d5f37d9 commit ad2691e

File tree

2 files changed

+52
-52
lines changed
  • scaleway-async/scaleway_async/cockpit/v1beta1
  • scaleway/scaleway/cockpit/v1beta1

2 files changed

+52
-52
lines changed

scaleway-async/scaleway_async/cockpit/v1beta1/api.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class CockpitV1Beta1API(API):
8787
"""
8888
Cockpit API.
8989
90-
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.
90+
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.
9191
Cockpit API.
9292
"""
9393

@@ -97,7 +97,7 @@ async def activate_cockpit(
9797
project_id: Optional[str] = None,
9898
) -> Cockpit:
9999
"""
100-
Activate the Cockpit of the specified Project ID.
100+
Activate the Cockpit of a given Project specified by the Project ID.
101101
:param project_id: ID of the Project the Cockpit belongs to.
102102
:return: :class:`Cockpit <Cockpit>`
103103
@@ -127,7 +127,7 @@ async def get_cockpit(
127127
project_id: Optional[str] = None,
128128
) -> Cockpit:
129129
"""
130-
Retrieve the Cockpit of the specified Project ID.
130+
Retrieve the Cockpit of a given Project specified by the Project ID.
131131
:param project_id: ID of the Project the Cockpit belongs to.
132132
:return: :class:`Cockpit <Cockpit>`
133133
@@ -189,7 +189,7 @@ async def get_cockpit_metrics(
189189
metric_name: Optional[str] = None,
190190
) -> CockpitMetrics:
191191
"""
192-
Get metrics from your Cockpit with the specified Project ID.
192+
Retrieve metrics from your Cockpit specified by the ID of the Project the Cockpit belongs to.
193193
:param project_id: ID of the Project the Cockpit belongs to.
194194
:param start_date: Desired time range's start date for the metrics.
195195
:param end_date: Desired time range's end date for the metrics.
@@ -222,7 +222,7 @@ async def deactivate_cockpit(
222222
project_id: Optional[str] = None,
223223
) -> Cockpit:
224224
"""
225-
Deactivate the Cockpit of the specified Project ID.
225+
Deactivate the Cockpit of a given Project specified by the Project ID.
226226
:param project_id: ID of the Project the Cockpit belongs to.
227227
:return: :class:`Cockpit <Cockpit>`
228228
@@ -255,7 +255,7 @@ async def create_datasource(
255255
project_id: Optional[str] = None,
256256
) -> Datasource:
257257
"""
258-
Create a datasource for the specified Project ID and the given type.
258+
Create a data source for a given Project specified by the Project ID and the data source type.
259259
:param project_id: ID of the Project the Cockpit belongs to.
260260
:param name: Data source name.
261261
:param type_: Data source type.
@@ -295,7 +295,7 @@ async def delete_datasource(
295295
datasource_id: str,
296296
) -> Optional[None]:
297297
"""
298-
Delete the datasource associated with the specified datasource ID.
298+
Delete a given data source specified by the data source ID.
299299
:param datasource_id: ID of the data source.
300300
301301
Usage:
@@ -325,7 +325,7 @@ async def list_datasources(
325325
is_managed_by_scaleway: Optional[bool] = None,
326326
) -> ListDatasourcesResponse:
327327
"""
328-
Get a list of datasources for the specified Project ID.
328+
Get a list of data sources for the specified Project ID.
329329
:param page: Page number.
330330
:param page_size: Page size.
331331
:param order_by: How the response is ordered.
@@ -367,7 +367,7 @@ async def list_datasources_all(
367367
is_managed_by_scaleway: Optional[bool] = None,
368368
) -> List[Datasource]:
369369
"""
370-
Get a list of datasources for the specified Project ID.
370+
Get a list of data sources for the specified Project ID.
371371
:param page: Page number.
372372
:param page_size: Page size.
373373
:param order_by: How the response is ordered.
@@ -404,7 +404,7 @@ async def create_token(
404404
scopes: Optional[TokenScopes] = None,
405405
) -> Token:
406406
"""
407-
Create a token associated with the specified Project ID.
407+
Create a token in a given Project specified by the Project ID.
408408
:param project_id: ID of the Project.
409409
:param name: Name of the token.
410410
:param scopes: Token's permissions.
@@ -441,7 +441,7 @@ async def list_tokens(
441441
project_id: Optional[str] = None,
442442
) -> ListTokensResponse:
443443
"""
444-
Get a list of tokens associated with the specified Project ID.
444+
Get a list of tokens in a given Project specified by the Project ID.
445445
:param page: Page number.
446446
:param page_size: Page size.
447447
:param order_by: How the response is ordered.
@@ -477,7 +477,7 @@ async def list_tokens_all(
477477
project_id: Optional[str] = None,
478478
) -> List[Token]:
479479
"""
480-
Get a list of tokens associated with the specified Project ID.
480+
Get a list of tokens in a given Project specified by the Project ID.
481481
:param page: Page number.
482482
:param page_size: Page size.
483483
:param order_by: How the response is ordered.
@@ -508,7 +508,7 @@ async def get_token(
508508
token_id: str,
509509
) -> Token:
510510
"""
511-
Retrieve the token associated with the specified token ID.
511+
Retrieve a given token specified by the token ID.
512512
:param token_id: ID of the token.
513513
:return: :class:`Token <Token>`
514514
@@ -534,7 +534,7 @@ async def delete_token(
534534
token_id: str,
535535
) -> Optional[None]:
536536
"""
537-
Delete the token associated with the specified token ID.
537+
Delete a given token specified by the token ID.
538538
:param token_id: ID of the token.
539539
540540
Usage:
@@ -560,7 +560,7 @@ async def create_contact_point(
560560
contact_point: Optional[ContactPoint] = None,
561561
) -> ContactPoint:
562562
"""
563-
Create a contact point to receive alerts for the default receiver.
563+
Create a contact point associated with the default receiver, to receive alerts.
564564
:param project_id: ID of the Project in which to create the contact point.
565565
:param contact_point: Contact point to create.
566566
:return: :class:`ContactPoint <ContactPoint>`
@@ -594,7 +594,7 @@ async def list_contact_points(
594594
project_id: Optional[str] = None,
595595
) -> ListContactPointsResponse:
596596
"""
597-
Get a list of contact points for the Cockpit associated with the specified Project ID.
597+
Get a list of contact points created for a given Cockpit, specified by the ID of the Project the Cockpit belongs to.
598598
:param page: Page number.
599599
:param page_size: Page size.
600600
:param project_id: ID of the Project from which to list the contact points.
@@ -627,7 +627,7 @@ async def list_contact_points_all(
627627
project_id: Optional[str] = None,
628628
) -> List[ContactPoint]:
629629
"""
630-
Get a list of contact points for the Cockpit associated with the specified Project ID.
630+
Get a list of contact points created for a given Cockpit, specified by the ID of the Project the Cockpit belongs to.
631631
:param page: Page number.
632632
:param page_size: Page size.
633633
:param project_id: ID of the Project from which to list the contact points.
@@ -657,7 +657,7 @@ async def delete_contact_point(
657657
contact_point: Optional[ContactPoint] = None,
658658
) -> Optional[None]:
659659
"""
660-
Delete a contact point for the default receiver.
660+
Delete a contact point associated with the default receiver.
661661
:param project_id: ID of the Project.
662662
:param contact_point: Contact point to delete.
663663
@@ -688,7 +688,7 @@ async def enable_managed_alerts(
688688
project_id: Optional[str] = None,
689689
) -> Optional[None]:
690690
"""
691-
Enable the sending of managed alerts for the specified Project's Cockpit.
691+
Enable the sending of managed alerts for a given Cockpit, specified by the ID of the Project the Cockpit belongs to.
692692
:param project_id: ID of the Project.
693693
694694
Usage:
@@ -717,7 +717,7 @@ async def disable_managed_alerts(
717717
project_id: Optional[str] = None,
718718
) -> Optional[None]:
719719
"""
720-
Disable the sending of managed alerts for the specified Project's Cockpit.
720+
Disable the sending of managed alerts for a given Cockpit, specified by the ID of the Project the Cockpit belongs to.
721721
:param project_id: ID of the Project.
722722
723723
Usage:
@@ -746,7 +746,7 @@ async def trigger_test_alert(
746746
project_id: Optional[str] = None,
747747
) -> Optional[None]:
748748
"""
749-
Trigger a test alert to all of the Cockpit's receivers.
749+
Send a test alert to make sure your contact points get notified when an actual alert is triggered.
750750
:param project_id:
751751
752752
Usage:
@@ -777,7 +777,7 @@ async def create_grafana_user(
777777
project_id: Optional[str] = None,
778778
) -> GrafanaUser:
779779
"""
780-
Create a Grafana user for your Cockpit's Grafana instance. Make sure you save the automatically-generated password and the Grafana user ID.
780+
Create a Grafana user for your Cockpit's Grafana. Make sure you save the automatically-generated password and the Grafana user ID.
781781
:param project_id: ID of the Project.
782782
:param login: Username of the Grafana user.
783783
:param role: Role assigned to the Grafana user.
@@ -817,7 +817,7 @@ async def list_grafana_users(
817817
project_id: Optional[str] = None,
818818
) -> ListGrafanaUsersResponse:
819819
"""
820-
Get a list of Grafana users who are able to connect to the Cockpit's Grafana instance.
820+
Get a list of all Grafana users created in your Cockpit's Grafana.
821821
:param page: Page number.
822822
:param page_size: Page size.
823823
:param order_by:
@@ -853,7 +853,7 @@ async def list_grafana_users_all(
853853
project_id: Optional[str] = None,
854854
) -> List[GrafanaUser]:
855855
"""
856-
Get a list of Grafana users who are able to connect to the Cockpit's Grafana instance.
856+
Get a list of all Grafana users created in your Cockpit's Grafana.
857857
:param page: Page number.
858858
:param page_size: Page size.
859859
:param order_by:
@@ -885,7 +885,7 @@ async def delete_grafana_user(
885885
project_id: Optional[str] = None,
886886
) -> Optional[None]:
887887
"""
888-
Delete a Grafana user from a Grafana instance, specified by the Cockpit's Project ID and the Grafana user ID.
888+
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.
889889
:param grafana_user_id: ID of the Grafana user.
890890
:param project_id: ID of the Project.
891891
@@ -919,7 +919,7 @@ async def reset_grafana_user_password(
919919
project_id: Optional[str] = None,
920920
) -> GrafanaUser:
921921
"""
922-
Reset a Grafana user's password specified by the Cockpit's Project ID and the Grafana user ID.
922+
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.
923923
:param grafana_user_id: ID of the Grafana user.
924924
:param project_id: ID of the Project.
925925
:return: :class:`GrafanaUser <GrafanaUser>`

0 commit comments

Comments
 (0)