Module Values_1.CreateCustomMetricRequestSource

Use this API to define a Custom Metric published by your devices to Device Defender. Requires permission to access the CreateCustomMetric action.

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

    The name of the custom metric. This will be used in the metric report submitted from the device/thing. The name can't begin with aws:. You can't change the name after you define it.

    *)
  2. displayName : Values_0.CustomMetricDisplayName.t option;
    (*

    The friendly name in the console for the custom metric. This name doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. You can update the friendly name after you define it.

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

    The type of the custom metric. The type number only takes a single metric value as an input, but when you submit the metrics value in the DeviceMetrics report, you must pass it as an array with a single value.

    *)
  4. tags : Values_0.TagList.t option;
    (*

    Metadata that can be used to manage the custom metric.

    *)
  5. clientRequestToken : Values_0.ClientRequestToken.t;
    (*

    Each custom metric must have a unique client request token. If you try to create a new custom metric that already exists with a different token, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.

    *)
}
Sourceval context_ : string
Sourceval make : ?displayName:??? -> ?tags:??? -> metricName:Values_0.MetricName.t -> metricType:Values_0.CustomMetricType.t -> clientRequestToken:Values_0.ClientRequestToken.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of string ]) list ] list | `String of Values_0.MetricName.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