amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoT.DescribeCustomMetric

Description

Gets information about a Device Defender detect custom metric.

Requires permission to access the DescribeCustomMetric action.

Synopsis

Creating a Request

data DescribeCustomMetric Source #

See: newDescribeCustomMetric smart constructor.

Constructors

DescribeCustomMetric' 

Fields

Instances

Instances details
ToHeaders DescribeCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

ToPath DescribeCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

ToQuery DescribeCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

AWSRequest DescribeCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

Associated Types

type AWSResponse DescribeCustomMetric #

Generic DescribeCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

Associated Types

type Rep DescribeCustomMetric :: Type -> Type #

Read DescribeCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

Show DescribeCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

NFData DescribeCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

Methods

rnf :: DescribeCustomMetric -> () #

Eq DescribeCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

Hashable DescribeCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

type AWSResponse DescribeCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

type Rep DescribeCustomMetric Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

type Rep DescribeCustomMetric = D1 ('MetaData "DescribeCustomMetric" "Amazonka.IoT.DescribeCustomMetric" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "DescribeCustomMetric'" 'PrefixI 'True) (S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDescribeCustomMetric Source #

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

Destructuring the Response

data DescribeCustomMetricResponse Source #

See: newDescribeCustomMetricResponse smart constructor.

Constructors

DescribeCustomMetricResponse' 

Fields

  • creationDate :: Maybe POSIX

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

  • displayName :: Maybe Text

    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.

  • lastModifiedDate :: Maybe POSIX

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

  • metricArn :: Maybe Text

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

  • metricName :: Maybe Text

    The name of the custom metric.

  • metricType :: Maybe CustomMetricType

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

Associated Types

type Rep DescribeCustomMetricResponse :: Type -> Type #

Read DescribeCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

Show DescribeCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

NFData DescribeCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

Eq DescribeCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

type Rep DescribeCustomMetricResponse Source # 
Instance details

Defined in Amazonka.IoT.DescribeCustomMetric

type Rep DescribeCustomMetricResponse = D1 ('MetaData "DescribeCustomMetricResponse" "Amazonka.IoT.DescribeCustomMetric" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "DescribeCustomMetricResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "creationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "displayName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastModifiedDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 ('MetaSel ('Just "metricArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "metricType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CustomMetricType)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

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_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.