Module Values.UsageSource

Represents the usage data of a usage plan.

Sourcetype nonrec t = {
  1. usagePlanId : String_.t option;
    (*

    The plan Id associated with this usage data.

    *)
  2. startDate : String_.t option;
    (*

    The starting date of the usage data.

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

    The ending date of the usage data.

    *)
  4. position : String_.t option;
  5. items : MapOfKeyUsages.t option;
    (*

    The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} stands for an API key value and the daily log entry is of the format [used quota, remaining quota].

    *)
}
Sourcetype nonrec error = [
  1. | `BadRequestException of BadRequestException.t
  2. | `NotFoundException of NotFoundException.t
  3. | `TooManyRequestsException of TooManyRequestsException.t
  4. | `UnauthorizedException of UnauthorizedException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?usagePlanId:??? -> ?startDate:??? -> ?endDate:??? -> ?position:??? -> ?items:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `BadRequestException of BadRequestException.t | `NotFoundException of NotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `UnauthorizedException of UnauthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `BadRequestException of BadRequestException.t | `NotFoundException of NotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `UnauthorizedException of UnauthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Map of ([> `String of String_.t ] * [> `List of [> `List of [> `Long of Long.t ] list ] list ]) list | `String of String_.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