Module Values.CostAndUsageQuerySource

Defines the parameters for retrieving Amazon Web Services cost and usage data. Includes specifications for metrics, time periods, granularity, grouping dimensions, and filtering conditions.

Sourcetype nonrec t = {
  1. metrics : MetricNames.t;
    (*

    The specific cost and usage metrics to retrieve. Valid values for CostAndUsageQuery metrics are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

    *)
  2. timeRange : DateTimeRange.t;
    (*

    The time period for which to retrieve data. Can be specified as absolute dates or relative time periods.

    *)
  3. granularity : Granularity.t;
    (*

    The granularity of the retrieved data: HOURLY, DAILY, or MONTHLY.

    *)
  4. groupBy : GroupDefinitions.t option;
    (*

    Specifies how to group the retrieved data, such as by SERVICE, ACCOUNT, or TAG.

    *)
  5. filter : Expression.t option;
    (*

    The filter expression to be applied to the cost and usage data.

    *)
}
Sourceval context_ : string
Sourceval make : ?groupBy:??? -> ?filter:??? -> metrics:MetricNames.t -> timeRange:DateTimeRange.t -> granularity:Granularity.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * Awso.Botodata.value) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t