@@ -24,10 +24,10 @@ class MonitorGroup(Group):
2424
2525 def dashboards (self , * filters ):
2626 """
27- Returns a list of dashboards on your account.
27+ Returns a list of dashboards on your account.
2828
2929 .. note:: This endpoint is in beta. This will only function if base_url is set to `https://api.linode.com/v4beta`.
30-
30+
3131 API Documentation: https://techdocs.akamai.com/linode-api/reference/get-dashboards-all
3232
3333 :param filters: Any number of filters to apply to this query.
@@ -39,14 +39,12 @@ def dashboards(self, *filters):
3939 """
4040 return self .client ._get_and_filter (Dashboard , * filters )
4141
42-
43-
4442 def dashboards_by_service (self , service_type : str , * filters ):
4543 """
46- Returns a dashboards on your account based on the service passed.
44+ Returns a dashboards on your account based on the service passed.
4745
4846 .. note:: This endpoint is in beta. This will only function if base_url is set to `https://api.linode.com/v4beta`.
49-
47+
5048 API Documentation: https://techdocs.akamai.com/linode-api/reference/get-dashboards
5149
5250 :param filters: Any number of filters to apply to this query.
@@ -56,20 +54,19 @@ def dashboards_by_service(self, service_type: str, *filters):
5654 :returns: A Dashboards filtered by Service Type.
5755 :rtype: PaginatedList of the Dashboards
5856 """
59-
57+
6058 return self .client ._get_and_filter (
6159 DashboardByService ,
6260 * filters ,
6361 endpoint = f"/monitor/services/{ service_type } /dashboards" ,
6462 )
6563
66-
6764 def supported_services (self , * filters ):
6865 """
69- Returns a list of services supported by ACLP.
66+ Returns a list of services supported by ACLP.
7067
7168 .. note:: This endpoint is in beta. This will only function if base_url is set to `https://api.linode.com/v4beta`.
72-
69+
7370 API Documentation: https://techdocs.akamai.com/linode-api/reference/get-monitor-services
7471
7572 :param filters: Any number of filters to apply to this query.
@@ -82,54 +79,54 @@ def supported_services(self, *filters):
8279
8380 return self .client ._get_and_filter (MonitorServiceSupported , * filters )
8481
85- def details_by_service (self , service_type : str ,* filters ):
82+ def details_by_service (self , service_type : str , * filters ):
8683 """
87- Returns a details about a particular service.
84+ Returns a details about a particular service.
8885
8986 .. note:: This endpoint is in beta. This will only function if base_url is set to `https://api.linode.com/v4beta`.
90-
87+
9188 API Documentation: https://techdocs.akamai.com/linode-api/reference/get-monitor-services-for-service-type
9289
9390 :param filters: Any number of filters to apply to this query.
9491 See :doc:`Filtering Collections</linode_api4/objects/filtering>`
9592 for more details on filtering.
9693
9794 :returns: Details about a Supported Services
98- :rtype: PaginatedList of the Service
95+ :rtype: PaginatedList of the Service
9996 """
10097 return self .client ._get_and_filter (
10198 ServiceDetails ,
10299 * filters ,
103100 endpoint = f"/monitor/services/{ service_type } " ,
104101 )
105-
106- def metric_definitions (self , service_type : str ,* filters ):
102+
103+ def metric_definitions (self , service_type : str , * filters ):
107104 """
108- Returns metrics for a specific service type.
105+ Returns metrics for a specific service type.
109106
110107 .. note:: This endpoint is in beta. This will only function if base_url is set to `https://api.linode.com/v4beta`.
111-
108+
112109 API Documentation: https://techdocs.akamai.com/linode-api/reference/get-monitor-information
113110
114111 :param filters: Any number of filters to apply to this query.
115112 See :doc:`Filtering Collections</linode_api4/objects/filtering>`
116113 for more details on filtering.
117114
118115 :returns: Returns a List of metrics for a service
119- :rtype: PaginatedList of metrics
116+ :rtype: PaginatedList of metrics
120117 """
121118 return self .client ._get_and_filter (
122119 MetricDefinition ,
123120 * filters ,
124121 endpoint = f"/monitor/services/{ service_type } /metric-definitions" ,
125122 )
126-
123+
127124 def create_token (self , service_type : str , entity_ids : list , * filters ):
128125 """
129- Returns a JWE Token for a specific service type.
126+ Returns a JWE Token for a specific service type.
130127
131128 .. note:: This endpoint is in beta. This will only function if base_url is set to `https://api.linode.com/v4beta`.
132-
129+
133130 API Documentation: https://techdocs.akamai.com/linode-api/reference/post-get-token
134131 :param filters: Any number of filters to apply to this query.
135132 See :doc:`Filtering Collections</linode_api4/objects/filtering>`
@@ -141,20 +138,12 @@ def create_token(self, service_type: str, entity_ids: list, *filters):
141138
142139 params = {"entity_ids" : entity_ids }
143140
144- result = self .client .post (f"/monitor/services/{ service_type } /token" , data = params )
141+ result = self .client .post (
142+ f"/monitor/services/{ service_type } /token" , data = params
143+ )
145144
146145 if "token" not in result :
147146 raise UnexpectedResponseError (
148147 "Unexpected response when creating token!" , json = result
149148 )
150149 return CreateToken (self .client , result ["token" ], result )
151-
152-
153-
154-
155-
156-
157-
158-
159-
160-
0 commit comments