list_metrics
¶
list_metrics(
*,
config_overrides: Optional[resiliencehubClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
fields: Optional[FieldList] = None,
data_source: Optional[String255] = None,
conditions: Optional[ConditionList] = None,
sorts: Optional[SortList] = None,
) -> ListMetricsResponse
Lists the metrics that can be exported.
Parameters:
-
next_token(Optional[NextToken], default:None) –Null, or the token from a previous call to get the next set of results.
-
max_results(Optional[MaxResults], default:None) –Maximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved. -
fields(Optional[FieldList], default:None) –Indicates the list of fields in the data source.
-
data_source(Optional[String255], default:None) –Indicates the data source of the metrics.
-
conditions(Optional[ConditionList], default:None) –Indicates the list of all the conditions that were applied on the metrics.
-
sorts(Optional[SortList], default:None) –(Optional) Indicates the order in which you want to sort the fields in the metrics. By default, the fields are sorted in the ascending order.
Raises:
-
AccessDeniedException–You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions.
-
InternalServerException–This exception occurs when there is an internal failure in the Resilience Hub service.
-
ThrottlingException–This exception occurs when you have exceeded the limit on the number of requests per second.
-
ValidationException–This exception occurs when a request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_resiliencehub/_services/resiliencehub.py
3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 | |