Class CfnAnomalyDetector.MetricSetProperty
Contains information about a dataset.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.LookoutMetrics
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class MetricSetProperty : Object, CfnAnomalyDetector.IMetricSetProperty
Syntax (vb)
Public Class MetricSetProperty
Inherits Object
Implements CfnAnomalyDetector.IMetricSetProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.LookoutMetrics;
var metricSetProperty = new MetricSetProperty {
MetricList = new [] { new MetricProperty {
AggregationFunction = "aggregationFunction",
MetricName = "metricName",
// the properties below are optional
Namespace = "namespace"
} },
MetricSetName = "metricSetName",
MetricSource = new MetricSourceProperty {
AppFlowConfig = new AppFlowConfigProperty {
FlowName = "flowName",
RoleArn = "roleArn"
},
CloudwatchConfig = new CloudwatchConfigProperty {
RoleArn = "roleArn"
},
RdsSourceConfig = new RDSSourceConfigProperty {
DatabaseHost = "databaseHost",
DatabaseName = "databaseName",
DatabasePort = 123,
DbInstanceIdentifier = "dbInstanceIdentifier",
RoleArn = "roleArn",
SecretManagerArn = "secretManagerArn",
TableName = "tableName",
VpcConfiguration = new VpcConfigurationProperty {
SecurityGroupIdList = new [] { "securityGroupIdList" },
SubnetIdList = new [] { "subnetIdList" }
}
},
RedshiftSourceConfig = new RedshiftSourceConfigProperty {
ClusterIdentifier = "clusterIdentifier",
DatabaseHost = "databaseHost",
DatabaseName = "databaseName",
DatabasePort = 123,
RoleArn = "roleArn",
SecretManagerArn = "secretManagerArn",
TableName = "tableName",
VpcConfiguration = new VpcConfigurationProperty {
SecurityGroupIdList = new [] { "securityGroupIdList" },
SubnetIdList = new [] { "subnetIdList" }
}
},
S3SourceConfig = new S3SourceConfigProperty {
FileFormatDescriptor = new FileFormatDescriptorProperty {
CsvFormatDescriptor = new CsvFormatDescriptorProperty {
Charset = "charset",
ContainsHeader = false,
Delimiter = "delimiter",
FileCompression = "fileCompression",
HeaderList = new [] { "headerList" },
QuoteSymbol = "quoteSymbol"
},
JsonFormatDescriptor = new JsonFormatDescriptorProperty {
Charset = "charset",
FileCompression = "fileCompression"
}
},
RoleArn = "roleArn",
// the properties below are optional
HistoricalDataPathList = new [] { "historicalDataPathList" },
TemplatedPathList = new [] { "templatedPathList" }
}
},
// the properties below are optional
DimensionList = new [] { "dimensionList" },
MetricSetDescription = "metricSetDescription",
MetricSetFrequency = "metricSetFrequency",
Offset = 123,
TimestampColumn = new TimestampColumnProperty {
ColumnFormat = "columnFormat",
ColumnName = "columnName"
},
Timezone = "timezone"
};
Synopsis
Constructors
MetricSetProperty() |
Properties
DimensionList | A list of the fields you want to treat as dimensions. |
MetricList | A list of metrics that the dataset will contain. |
MetricSetDescription | A description of the dataset you are creating. |
MetricSetFrequency | The frequency with which the source data will be analyzed for anomalies. |
MetricSetName | The name of the dataset. |
MetricSource | Contains information about how the source data should be interpreted. |
Offset | After an interval ends, the amount of seconds that the detector waits before importing data. |
TimestampColumn | Contains information about the column used for tracking time in your source data. |
Timezone | The time zone in which your source data was recorded. |
Constructors
MetricSetProperty()
public MetricSetProperty()
Properties
DimensionList
A list of the fields you want to treat as dimensions.
public string[] DimensionList { get; set; }
Property Value
System.String[]
Remarks
MetricList
A list of metrics that the dataset will contain.
public object MetricList { get; set; }
Property Value
System.Object
Remarks
MetricSetDescription
A description of the dataset you are creating.
public string MetricSetDescription { get; set; }
Property Value
System.String
Remarks
MetricSetFrequency
The frequency with which the source data will be analyzed for anomalies.
public string MetricSetFrequency { get; set; }
Property Value
System.String
Remarks
MetricSetName
The name of the dataset.
public string MetricSetName { get; set; }
Property Value
System.String
Remarks
MetricSource
Contains information about how the source data should be interpreted.
public object MetricSource { get; set; }
Property Value
System.Object
Remarks
Offset
After an interval ends, the amount of seconds that the detector waits before importing data.
public Nullable<double> Offset { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Offset is only supported for S3, Redshift, Athena and datasources.
TimestampColumn
Contains information about the column used for tracking time in your source data.
public object TimestampColumn { get; set; }
Property Value
System.Object
Remarks
Timezone
The time zone in which your source data was recorded.
public string Timezone { get; set; }
Property Value
System.String