get_capacity_manager_metric_dimensions
¶
get_capacity_manager_metric_dimensions(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
42909 42910 42911 42912 42913 42914 42915 42916 42917 42918 42919 42920 42921 42922 42923 42924 42925 42926 42927 42928 42929 42930 42931 42932 42933 42934 42935 42936 42937 42938 42939 42940 42941 42942 42943 42944 42945 42946 42947 42948 42949 42950 42951 42952 42953 42954 42955 42956 42957 42958 42959 42960 42961 42962 42963 42964 42965 42966 42967 42968 42969 42970 42971 42972 42973 42974 42975 42976 42977 42978 42979 42980 42981 42982 42983 42984 42985 | |