AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::LookoutMetrics::Types::UpdateMetricSetRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lookoutmetrics/lib/aws-sdk-lookoutmetrics/types.rb

Overview

Note:

When making an API call, you may pass UpdateMetricSetRequest data as a hash:

{
  metric_set_arn: "Arn", # required
  metric_set_description: "MetricSetDescription",
  metric_list: [
    {
      metric_name: "ColumnName", # required
      aggregation_function: "AVG", # required, accepts AVG, SUM
      namespace: "Namespace",
    },
  ],
  offset: 1,
  timestamp_column: {
    column_name: "ColumnName",
    column_format: "DateTimeFormat",
  },
  dimension_list: ["ColumnName"],
  metric_set_frequency: "P1D", # accepts P1D, PT1H, PT10M, PT5M
  metric_source: {
    s3_source_config: {
      role_arn: "Arn", # required
      templated_path_list: ["TemplatedPath"],
      historical_data_path_list: ["HistoricalDataPath"],
      file_format_descriptor: {
        csv_format_descriptor: {
          file_compression: "NONE", # accepts NONE, GZIP
          charset: "Charset",
          contains_header: false,
          delimiter: "Delimiter",
          header_list: ["ColumnName"],
          quote_symbol: "QuoteSymbol",
        },
        json_format_descriptor: {
          file_compression: "NONE", # accepts NONE, GZIP
          charset: "Charset",
        },
      },
    },
    app_flow_config: {
      role_arn: "Arn", # required
      flow_name: "FlowName", # required
    },
    cloud_watch_config: {
      role_arn: "Arn", # required
    },
    rds_source_config: {
      db_instance_identifier: "RDSDatabaseIdentifier", # required
      database_host: "DatabaseHost", # required
      database_port: 1, # required
      secret_manager_arn: "PoirotSecretManagerArn", # required
      database_name: "RDSDatabaseName", # required
      table_name: "TableName", # required
      role_arn: "Arn", # required
      vpc_configuration: { # required
        subnet_id_list: ["SubnetId"], # required
        security_group_id_list: ["SecurityGroupId"], # required
      },
    },
    redshift_source_config: {
      cluster_identifier: "RedshiftClusterIdentifier", # required
      database_host: "DatabaseHost", # required
      database_port: 1, # required
      secret_manager_arn: "PoirotSecretManagerArn", # required
      database_name: "RedshiftDatabaseName", # required
      table_name: "TableName", # required
      role_arn: "Arn", # required
      vpc_configuration: { # required
        subnet_id_list: ["SubnetId"], # required
        security_group_id_list: ["SecurityGroupId"], # required
      },
    },
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#dimension_listArray<String>

The dimension list.

Returns:

  • (Array<String>)


2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
# File 'gems/aws-sdk-lookoutmetrics/lib/aws-sdk-lookoutmetrics/types.rb', line 2752

class UpdateMetricSetRequest < Struct.new(
  :metric_set_arn,
  :metric_set_description,
  :metric_list,
  :offset,
  :timestamp_column,
  :dimension_list,
  :metric_set_frequency,
  :metric_source)
  SENSITIVE = []
  include Aws::Structure
end

#metric_listArray<Types::Metric>

The metric list.

Returns:



2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
# File 'gems/aws-sdk-lookoutmetrics/lib/aws-sdk-lookoutmetrics/types.rb', line 2752

class UpdateMetricSetRequest < Struct.new(
  :metric_set_arn,
  :metric_set_description,
  :metric_list,
  :offset,
  :timestamp_column,
  :dimension_list,
  :metric_set_frequency,
  :metric_source)
  SENSITIVE = []
  include Aws::Structure
end

#metric_set_arnString

The ARN of the dataset to update.

Returns:

  • (String)


2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
# File 'gems/aws-sdk-lookoutmetrics/lib/aws-sdk-lookoutmetrics/types.rb', line 2752

class UpdateMetricSetRequest < Struct.new(
  :metric_set_arn,
  :metric_set_description,
  :metric_list,
  :offset,
  :timestamp_column,
  :dimension_list,
  :metric_set_frequency,
  :metric_source)
  SENSITIVE = []
  include Aws::Structure
end

#metric_set_descriptionString

The dataset's description.

Returns:

  • (String)


2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
# File 'gems/aws-sdk-lookoutmetrics/lib/aws-sdk-lookoutmetrics/types.rb', line 2752

class UpdateMetricSetRequest < Struct.new(
  :metric_set_arn,
  :metric_set_description,
  :metric_list,
  :offset,
  :timestamp_column,
  :dimension_list,
  :metric_set_frequency,
  :metric_source)
  SENSITIVE = []
  include Aws::Structure
end

#metric_set_frequencyString

The dataset's interval.

Returns:

  • (String)


2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
# File 'gems/aws-sdk-lookoutmetrics/lib/aws-sdk-lookoutmetrics/types.rb', line 2752

class UpdateMetricSetRequest < Struct.new(
  :metric_set_arn,
  :metric_set_description,
  :metric_list,
  :offset,
  :timestamp_column,
  :dimension_list,
  :metric_set_frequency,
  :metric_source)
  SENSITIVE = []
  include Aws::Structure
end

#metric_sourceTypes::MetricSource

Contains information about source data used to generate a metric.

Returns:



2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
# File 'gems/aws-sdk-lookoutmetrics/lib/aws-sdk-lookoutmetrics/types.rb', line 2752

class UpdateMetricSetRequest < Struct.new(
  :metric_set_arn,
  :metric_set_description,
  :metric_list,
  :offset,
  :timestamp_column,
  :dimension_list,
  :metric_set_frequency,
  :metric_source)
  SENSITIVE = []
  include Aws::Structure
end

#offsetInteger

After an interval ends, the amount of seconds that the detector waits before importing data. Offset is only supported for S3 and Redshift datasources.

Returns:

  • (Integer)


2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
# File 'gems/aws-sdk-lookoutmetrics/lib/aws-sdk-lookoutmetrics/types.rb', line 2752

class UpdateMetricSetRequest < Struct.new(
  :metric_set_arn,
  :metric_set_description,
  :metric_list,
  :offset,
  :timestamp_column,
  :dimension_list,
  :metric_set_frequency,
  :metric_source)
  SENSITIVE = []
  include Aws::Structure
end

#timestamp_columnTypes::TimestampColumn

The timestamp column.



2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
# File 'gems/aws-sdk-lookoutmetrics/lib/aws-sdk-lookoutmetrics/types.rb', line 2752

class UpdateMetricSetRequest < Struct.new(
  :metric_set_arn,
  :metric_set_description,
  :metric_list,
  :offset,
  :timestamp_column,
  :dimension_list,
  :metric_set_frequency,
  :metric_source)
  SENSITIVE = []
  include Aws::Structure
end