Module Values.GetResourceMetricsResponseSource

Retrieve Performance Insights metrics for a set of data sources over a time period. You can provide specific dimension groups and dimensions, and provide filtering criteria for each group. You must specify an aggregate function for each metric. Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.

Sourcetype nonrec t = {
  1. alignedStartTime : ISOTimestamp.t option;
    (*

    The start time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime.

    *)
  2. alignedEndTime : ISOTimestamp.t option;
    (*

    The end time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the user-specified Endtime.

    *)
  3. identifier : String_.t option;
    (*

    An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the console, the identifier is shown as ResourceID. When you call DescribeDBInstances, the identifier is returned as DbiResourceId.

    *)
  4. metricList : MetricKeyDataPointsList.t option;
    (*

    An array of metric results, where each array element contains all of the data points for a particular dimension.

    *)
  5. nextToken : NextToken.t option;
    (*

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

    *)
}
Sourcetype nonrec error = [
  1. | `InternalServiceError of InternalServiceError.t
  2. | `InvalidArgumentException of InvalidArgumentException.t
  3. | `NotAuthorizedException of NotAuthorizedException.t
  4. | `Unknown_operation_error of string * string option
]
Sourceval make : ?alignedStartTime:??? -> ?alignedEndTime:??? -> ?identifier:??? -> ?metricList:??? -> ?nextToken:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InternalServiceError of InternalServiceError.t | `InvalidArgumentException of InvalidArgumentException.t | `NotAuthorizedException of NotAuthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InternalServiceError of InternalServiceError.t | `InvalidArgumentException of InvalidArgumentException.t | `NotAuthorizedException of NotAuthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `Double of Double.t | `Timestamp of ISOTimestamp.t ]) list ] list | `Structure of (string * [> `Map of ([> `String of RequestString.t ] * [> `String of RequestString.t ]) list | `String of String_.t ]) list ]) list ] list | `String of String_.t | `Timestamp of ISOTimestamp.t ]) 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