Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a dataset.
Synopsis
- data CreateMetricSet = CreateMetricSet' {
- dimensionList :: Maybe (NonEmpty Text)
- offset :: Maybe Natural
- timestampColumn :: Maybe TimestampColumn
- metricSetFrequency :: Maybe Frequency
- metricSetDescription :: Maybe Text
- timezone :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- anomalyDetectorArn :: Text
- metricSetName :: Text
- metricList :: NonEmpty Metric
- metricSource :: MetricSource
- newCreateMetricSet :: Text -> Text -> NonEmpty Metric -> MetricSource -> CreateMetricSet
- createMetricSet_dimensionList :: Lens' CreateMetricSet (Maybe (NonEmpty Text))
- createMetricSet_offset :: Lens' CreateMetricSet (Maybe Natural)
- createMetricSet_timestampColumn :: Lens' CreateMetricSet (Maybe TimestampColumn)
- createMetricSet_metricSetFrequency :: Lens' CreateMetricSet (Maybe Frequency)
- createMetricSet_metricSetDescription :: Lens' CreateMetricSet (Maybe Text)
- createMetricSet_timezone :: Lens' CreateMetricSet (Maybe Text)
- createMetricSet_tags :: Lens' CreateMetricSet (Maybe (HashMap Text Text))
- createMetricSet_anomalyDetectorArn :: Lens' CreateMetricSet Text
- createMetricSet_metricSetName :: Lens' CreateMetricSet Text
- createMetricSet_metricList :: Lens' CreateMetricSet (NonEmpty Metric)
- createMetricSet_metricSource :: Lens' CreateMetricSet MetricSource
- data CreateMetricSetResponse = CreateMetricSetResponse' {
- metricSetArn :: Maybe Text
- httpStatus :: Int
- newCreateMetricSetResponse :: Int -> CreateMetricSetResponse
- createMetricSetResponse_metricSetArn :: Lens' CreateMetricSetResponse (Maybe Text)
- createMetricSetResponse_httpStatus :: Lens' CreateMetricSetResponse Int
Creating a Request
data CreateMetricSet Source #
See: newCreateMetricSet
smart constructor.
CreateMetricSet' | |
|
Instances
:: Text | |
-> Text | |
-> NonEmpty Metric | |
-> MetricSource | |
-> CreateMetricSet |
Create a value of CreateMetricSet
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:
$sel:dimensionList:CreateMetricSet'
, createMetricSet_dimensionList
- A list of the fields you want to treat as dimensions.
$sel:offset:CreateMetricSet'
, createMetricSet_offset
- After an interval ends, the amount of seconds that the detector waits
before importing data. Offset is only supported for S3 and Redshift
datasources.
$sel:timestampColumn:CreateMetricSet'
, createMetricSet_timestampColumn
- Contains information about the column used for tracking time in your
source data.
$sel:metricSetFrequency:CreateMetricSet'
, createMetricSet_metricSetFrequency
- The frequency with which the source data will be analyzed for anomalies.
$sel:metricSetDescription:CreateMetricSet'
, createMetricSet_metricSetDescription
- A description of the dataset you are creating.
$sel:timezone:CreateMetricSet'
, createMetricSet_timezone
- The time zone in which your source data was recorded.
$sel:tags:CreateMetricSet'
, createMetricSet_tags
- A list of
tags
to apply to the dataset.
$sel:anomalyDetectorArn:CreateMetricSet'
, createMetricSet_anomalyDetectorArn
- The ARN of the anomaly detector that will use the dataset.
$sel:metricSetName:CreateMetricSet'
, createMetricSet_metricSetName
- The name of the dataset.
$sel:metricList:CreateMetricSet'
, createMetricSet_metricList
- A list of metrics that the dataset will contain.
$sel:metricSource:CreateMetricSet'
, createMetricSet_metricSource
- Contains information about how the source data should be interpreted.
Request Lenses
createMetricSet_dimensionList :: Lens' CreateMetricSet (Maybe (NonEmpty Text)) Source #
A list of the fields you want to treat as dimensions.
createMetricSet_offset :: Lens' CreateMetricSet (Maybe Natural) Source #
After an interval ends, the amount of seconds that the detector waits before importing data. Offset is only supported for S3 and Redshift datasources.
createMetricSet_timestampColumn :: Lens' CreateMetricSet (Maybe TimestampColumn) Source #
Contains information about the column used for tracking time in your source data.
createMetricSet_metricSetFrequency :: Lens' CreateMetricSet (Maybe Frequency) Source #
The frequency with which the source data will be analyzed for anomalies.
createMetricSet_metricSetDescription :: Lens' CreateMetricSet (Maybe Text) Source #
A description of the dataset you are creating.
createMetricSet_timezone :: Lens' CreateMetricSet (Maybe Text) Source #
The time zone in which your source data was recorded.
createMetricSet_tags :: Lens' CreateMetricSet (Maybe (HashMap Text Text)) Source #
A list of tags to apply to the dataset.
createMetricSet_anomalyDetectorArn :: Lens' CreateMetricSet Text Source #
The ARN of the anomaly detector that will use the dataset.
createMetricSet_metricSetName :: Lens' CreateMetricSet Text Source #
The name of the dataset.
createMetricSet_metricList :: Lens' CreateMetricSet (NonEmpty Metric) Source #
A list of metrics that the dataset will contain.
createMetricSet_metricSource :: Lens' CreateMetricSet MetricSource Source #
Contains information about how the source data should be interpreted.
Destructuring the Response
data CreateMetricSetResponse Source #
See: newCreateMetricSetResponse
smart constructor.
CreateMetricSetResponse' | |
|
Instances
newCreateMetricSetResponse Source #
Create a value of CreateMetricSetResponse
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:
$sel:metricSetArn:CreateMetricSetResponse'
, createMetricSetResponse_metricSetArn
- The ARN of the dataset.
$sel:httpStatus:CreateMetricSetResponse'
, createMetricSetResponse_httpStatus
- The response's http status code.
Response Lenses
createMetricSetResponse_metricSetArn :: Lens' CreateMetricSetResponse (Maybe Text) Source #
The ARN of the dataset.
createMetricSetResponse_httpStatus :: Lens' CreateMetricSetResponse Int Source #
The response's http status code.