Module Values.GetUsageStatisticsRequestSource

Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector ID. For newly enabled detectors or data sources, the cost returned will include only the usage so far under 30 days. This may differ from the cost metrics in the console, which project usage over 30 days to provide a monthly cost estimate. For more information, see Understanding How Usage Costs are Calculated.

Sourcetype nonrec t = {
  1. detectorId : DetectorId.t;
    (*

    The ID of the detector that specifies the GuardDuty service whose usage statistics you want to retrieve. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

    *)
  2. usageStatisticType : UsageStatisticType.t;
    (*

    The type of usage statistics to retrieve.

    *)
  3. usageCriteria : UsageCriteria.t;
    (*

    Represents the criteria used for querying usage.

    *)
  4. unit : String_.t option;
    (*

    The currency unit you would like to view your usage statistics in. Current valid values are USD.

    *)
  5. maxResults : MaxResults.t option;
    (*

    The maximum number of results to return in the response.

    *)
  6. nextToken : String_.t option;
    (*

    A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

    *)
}
Sourceval context_ : string
Sourceval make : ?unit:??? -> ?maxResults:??? -> ?nextToken:??? -> detectorId:DetectorId.t -> usageStatisticType:UsageStatisticType.t -> usageCriteria:UsageCriteria.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of MaxResults.t | `String of DetectorId.t | `Structure of (string * [> `List of [> `Enum of string | `String of AccountId.t ] list ]) list ]) 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