| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT.DescribeCustomMetric
Description
Gets information about a Device Defender detect custom metric.
Requires permission to access the DescribeCustomMetric action.
Synopsis
- data DescribeCustomMetric = DescribeCustomMetric' {
- metricName :: Text
- newDescribeCustomMetric :: Text -> DescribeCustomMetric
- describeCustomMetric_metricName :: Lens' DescribeCustomMetric Text
- data DescribeCustomMetricResponse = DescribeCustomMetricResponse' {}
- newDescribeCustomMetricResponse :: Int -> DescribeCustomMetricResponse
- describeCustomMetricResponse_creationDate :: Lens' DescribeCustomMetricResponse (Maybe UTCTime)
- describeCustomMetricResponse_displayName :: Lens' DescribeCustomMetricResponse (Maybe Text)
- describeCustomMetricResponse_lastModifiedDate :: Lens' DescribeCustomMetricResponse (Maybe UTCTime)
- describeCustomMetricResponse_metricArn :: Lens' DescribeCustomMetricResponse (Maybe Text)
- describeCustomMetricResponse_metricName :: Lens' DescribeCustomMetricResponse (Maybe Text)
- describeCustomMetricResponse_metricType :: Lens' DescribeCustomMetricResponse (Maybe CustomMetricType)
- describeCustomMetricResponse_httpStatus :: Lens' DescribeCustomMetricResponse Int
Creating a Request
data DescribeCustomMetric Source #
See: newDescribeCustomMetric smart constructor.
Constructors
| DescribeCustomMetric' | |
Fields
| |
Instances
newDescribeCustomMetric Source #
Arguments
| :: Text | |
| -> DescribeCustomMetric |
Create a value of DescribeCustomMetric with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DescribeCustomMetric, describeCustomMetric_metricName - The name of the custom metric.
Request Lenses
describeCustomMetric_metricName :: Lens' DescribeCustomMetric Text Source #
The name of the custom metric.
Destructuring the Response
data DescribeCustomMetricResponse Source #
See: newDescribeCustomMetricResponse smart constructor.
Constructors
| DescribeCustomMetricResponse' | |
Fields
| |
Instances
newDescribeCustomMetricResponse Source #
Create a value of DescribeCustomMetricResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DescribeCustomMetricResponse, describeCustomMetricResponse_creationDate - The creation date of the custom metric in milliseconds since epoch.
$sel:displayName:DescribeCustomMetricResponse', describeCustomMetricResponse_displayName - Field represents a friendly name in the console for the custom metric;
doesn't have to be unique. Don't use this name as the metric
identifier in the device metric report. Can be updated.
DescribeCustomMetricResponse, describeCustomMetricResponse_lastModifiedDate - The time the custom metric was last modified in milliseconds since
epoch.
DescribeCustomMetricResponse, describeCustomMetricResponse_metricArn - The Amazon Resource Number (ARN) of the custom metric.
DescribeCustomMetric, describeCustomMetricResponse_metricName - The name of the custom metric.
$sel:metricType:DescribeCustomMetricResponse', describeCustomMetricResponse_metricType - 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.
$sel:httpStatus:DescribeCustomMetricResponse', describeCustomMetricResponse_httpStatus - The response's http status code.
Response Lenses
describeCustomMetricResponse_creationDate :: Lens' DescribeCustomMetricResponse (Maybe UTCTime) Source #
The creation date of the custom metric in milliseconds since epoch.
describeCustomMetricResponse_displayName :: Lens' DescribeCustomMetricResponse (Maybe Text) Source #
Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated.
describeCustomMetricResponse_lastModifiedDate :: Lens' DescribeCustomMetricResponse (Maybe UTCTime) Source #
The time the custom metric was last modified in milliseconds since epoch.
describeCustomMetricResponse_metricArn :: Lens' DescribeCustomMetricResponse (Maybe Text) Source #
The Amazon Resource Number (ARN) of the custom metric.
describeCustomMetricResponse_metricName :: Lens' DescribeCustomMetricResponse (Maybe Text) Source #
The name of the custom metric.
describeCustomMetricResponse_metricType :: Lens' DescribeCustomMetricResponse (Maybe CustomMetricType) Source #
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.
describeCustomMetricResponse_httpStatus :: Lens' DescribeCustomMetricResponse Int Source #
The response's http status code.