Values_5.GetCapacityManagerMetricDataRequestSourceRetrieves capacity usage metrics for your EC2 resources. Returns time-series data for metrics like unused capacity, utilization rates, and costs across On-Demand, Spot, and Capacity Reservations. Data can be grouped and filtered by various dimensions such as region, account, and instance family.
type nonrec t = {metricNames : Values_3.MetricSet.t;The names of the metrics to retrieve. Maximum of 10 metrics per request.
*)startTime : Values_0.MillisecondDateTime.t;The start time for the metric data query, in ISO 8601 format. The time range (end time - start time) must be a multiple of the specified period.
*)endTime : Values_0.MillisecondDateTime.t;The end time for the metric data query, in ISO 8601 format. If the end time is beyond the latest ingested data, it will be automatically adjusted to the latest available data point.
*)period : Values_3.Period.t;The granularity, in seconds, of the returned data points.
*)groupBy : Values_3.GroupBySet.t option;The dimensions by which to group the metric data. This determines how the data is aggregated and returned.
*)filterBy : Values_3.CapacityManagerConditionSet.t option;Conditions to filter the metric data. Each filter specifies a dimension, comparison operator ('equals', 'in'), and values to match against.
*)maxResults : Values_3.MaxResults.t option;The maximum number of data points to return. Valid range is 1 to 100,000. Use with NextToken for pagination of large result sets.
*)nextToken : Values_3.NextToken.t option;The token for the next page of results. Use this value in a subsequent call to retrieve additional data points.
*)dryRun : Values_0.Boolean.t option;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 is UnauthorizedOperation.
*)}val make :
?groupBy:??? ->
?filterBy:??? ->
?maxResults:??? ->
?nextToken:??? ->
?dryRun:??? ->
metricNames:Values_3.MetricSet.t ->
startTime:Values_0.MillisecondDateTime.t ->
endTime:Values_0.MillisecondDateTime.t ->
period:Values_3.Period.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Boolean of Values_0.Boolean.t
| `Integer of Values_3.Period.t
| `List of
[> `Enum of string
| `Structure of
(string
* [> `Structure of
(string
* [> `Enum of string
| `List of [> `String of string ] list ])
list ])
list ]
list
| `String of Values_3.NextToken.t
| `Timestamp of Values_0.MillisecondDateTime.t ])
list ]