get_capacity_manager_metric_dimensions
async
¶
get_capacity_manager_metric_dimensions(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
group_by: Optional[GroupBySet] = None,
filter_by: Optional[CapacityManagerConditionSet] = None,
start_time: Optional[MillisecondDateTime] = None,
end_time: Optional[MillisecondDateTime] = None,
metric_names: Optional[MetricSet] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
dry_run: Optional[Boolean] = None,
) -> GetCapacityManagerMetricDimensionsResult
Retrieves the available dimension values for capacity metrics within a specified time range. This is useful for discovering what accounts, regions, instance families, and other dimensions have data available for filtering and grouping.
Parameters:
-
group_by(Optional[GroupBySet], default:None) –The dimensions to group by when retrieving available dimension values. This determines which dimension combinations are returned. Required parameter.
-
filter_by(Optional[CapacityManagerConditionSet], default:None) –Conditions to filter which dimension values are returned. Each filter specifies a dimension, comparison operator, and values to match against.
-
start_time(Optional[MillisecondDateTime], default:None) –The start time for the dimension query, in ISO 8601 format. Only dimensions with data in this time range will be returned.
-
end_time(Optional[MillisecondDateTime], default:None) –The end time for the dimension query, in ISO 8601 format. Only dimensions with data in this time range will be returned.
-
metric_names(Optional[MetricSet], default:None) –The metric names to use as an additional filter when retrieving dimensions. Only dimensions that have data for these metrics will be returned. Required parameter with maximum size of 1 for v1.
-
max_results(Optional[MaxResults], default:None) –The maximum number of dimension combinations to return. Valid range is 1 to 1000. Use with NextToken for pagination.
-
next_token(Optional[NextToken], default:None) –The token for the next page of results. Use this value in a subsequent call to retrieve additional dimension values.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
43501 43502 43503 43504 43505 43506 43507 43508 43509 43510 43511 43512 43513 43514 43515 43516 43517 43518 43519 43520 43521 43522 43523 43524 43525 43526 43527 43528 43529 43530 43531 43532 43533 43534 43535 43536 43537 43538 43539 43540 43541 43542 43543 43544 43545 43546 43547 43548 43549 43550 43551 43552 43553 43554 43555 43556 43557 43558 43559 43560 43561 43562 43563 43564 43565 43566 43567 43568 43569 43570 43571 43572 43573 43574 43575 43576 43577 43578 | |