Module Values_0.UpdateCustomMetricResponseSource

Updates a Device Defender detect custom metric. Requires permission to access the UpdateCustomMetric action.

Sourcetype nonrec t = {
  1. metricName : MetricName.t option;
    (*

    The name of the custom metric.

    *)
  2. metricArn : CustomMetricArn.t option;
    (*

    The Amazon Resource Number (ARN) of the custom metric.

    *)
  3. metricType : CustomMetricType.t option;
    (*

    The type of the custom metric. The type number only takes a single metric value as an input, but while submitting the metrics value in the DeviceMetrics report, it must be passed as an array with a single value.

    *)
  4. displayName : CustomMetricDisplayName.t option;
    (*

    A friendly name in the console for the custom metric

    *)
  5. creationDate : Timestamp.t option;
    (*

    The creation date of the custom metric in milliseconds since epoch.

    *)
  6. lastModifiedDate : Timestamp.t option;
    (*

    The time the custom metric was last modified in milliseconds since epoch.

    *)
}
Sourcetype nonrec error = [
  1. | `InternalFailureException of InternalFailureException.t
  2. | `InvalidRequestException of InvalidRequestException.t
  3. | `ResourceNotFoundException of ResourceNotFoundException.t
  4. | `ThrottlingException of ThrottlingException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?metricName:??? -> ?metricArn:??? -> ?metricType:??? -> ?displayName:??? -> ?creationDate:??? -> ?lastModifiedDate:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InternalFailureException of InternalFailureException.t | `InvalidRequestException of InvalidRequestException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InternalFailureException of InternalFailureException.t | `InvalidRequestException of InvalidRequestException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of MetricName.t | `Timestamp of Timestamp.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