---
title: "POST /DetectMetricSetConfig"
method: POST
path: "/DetectMetricSetConfig"
---

# POST /DetectMetricSetConfig

`POST /DetectMetricSetConfig`

Detects an Amazon S3 dataset's file format, interval, and offset.

## Request body

- object
  - `AnomalyDetectorArn` string, required — An anomaly detector ARN.
  - `AutoDetectionMetricSource` object, required — An auto detection metric source.
    - `S3SourceConfig` object — The source's source config.
      - `TemplatedPathList` TemplatedPath[] — The config's templated path list.
      - `HistoricalDataPathList` HistoricalDataPath[] — The config's historical data path list.

## Response `200`

Success

- DetectMetricSetConfigResponse
  - `DetectedMetricSetConfig` object — The inferred dataset configuration for the datasource.
    - `Offset` object — The dataset's offset.
      - `Value` object — The field's value.
        - `S` string — A string.
        - `N` string — A number.
        - `B` string — A binary value.
        - `SS` StringAttributeValue[] — A list of strings.
        - `NS` NumberAttributeValue[] — A list of numbers.
        - `BS` BinaryAttributeValue[] — A list of binary values.
      - `Confidence` 'HIGH' | 'LOW' | 'NONE' — The field's confidence.
      - `Message` string — The field's message.
    - `MetricSetFrequency` object — The dataset's interval.
      - `Value` object — The field's value.
        - `S` string — A string.
        - `N` string — A number.
        - `B` string — A binary value.
        - `SS` StringAttributeValue[] — A list of strings.
        - `NS` NumberAttributeValue[] — A list of numbers.
        - `BS` BinaryAttributeValue[] — A list of binary values.
      - `Confidence` 'HIGH' | 'LOW' | 'NONE' — The field's confidence.
      - `Message` string — The field's message.
    - `MetricSource` object — The dataset's data source.
      - `S3SourceConfig` object — The data source's source configuration.
        - `FileFormatDescriptor` object — The source's file format descriptor.
          - `CsvFormatDescriptor` object — Details about a CSV format.
            - `FileCompression` object — The format's file compression.
              - …
            - `Charset` object — The format's charset.
              - …
            - `ContainsHeader` object — Whether the format includes a header.
              - …
            - `Delimiter` object — The format's delimiter.
              - …
            - `HeaderList` object — The format's header list.
              - …
            - `QuoteSymbol` object — The format's quote symbol.
              - …
          - `JsonFormatDescriptor` object — Details about a JSON format.
            - `FileCompression` object — The format's file compression.
              - …
            - `Charset` object — The format's character set.
              - …

## Other responses

- `480` — ResourceNotFoundException
- `481` — ValidationException
- `482` — InternalServerException
- `483` — AccessDeniedException
- `484` — TooManyRequestsException

---

[API](https://skmtc.net/aws/apis/lookoutmetrics.md) · [All operations](https://skmtc.net/aws/apis/lookoutmetrics/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lookoutmetrics/versions/aace1e573660/schema)
