

# Understanding the Amazon S3 Storage Lens for Tables export schemas

Amazon S3 Storage Lens for Tables delivers two reports per day to your general purpose bucket: a metrics report and a maintenance events report. Each report has its own schema, described in the following sections. The schema differs from Amazon S3 Storage Lens for general purpose buckets: the records are keyed to table buckets, namespaces, and tables, and the `record_type` values reflect the table hierarchy.

**Topics**
+ [Metrics report schema](#s3-tables-storage-lens-metrics-report-schema)
+ [Maintenance events report schema](#s3-tables-storage-lens-events-report-schema)
+ [Export schemas for Amazon S3 Tables](#s3-tables-storage-lens-system-table-schemas)

## Metrics report schema
<a name="s3-tables-storage-lens-metrics-report-schema"></a>

The metrics report applies to the general, storage, table property, activity, and error metrics. It has the following columns:


| Column name | Type | Description | 
| --- | --- | --- | 
| version\_number | string | The version of the schema. | 
| configuration\_id | string | Amazon S3 Storage Lens for Tables configuration name. | 
| report\_date | string | Date the report refers to. | 
| aws\_account\_number | string | Account ID the entry refers to. | 
| aws\_region | string | Region. | 
| storage\_class | string | Storage class. | 
| int\_access\_tier | string | The S3 Intelligent-Tiering access tier that the row applies to. This value is empty for rows that aren't specific to an Intelligent-Tiering tier. | 
| record\_type | string | Level of aggregation of the data. Values: ACCOUNT, BUCKET, NAMESPACE, TABLE, PARTITION. | 
| record\_value | string | Disambiguator for record types that have more than one record under them. | 
| table\_bucket\_name | string | Table bucket name. | 
| table\_namespace | string | Table namespace. | 
| table\_name | string | Table name. | 
| metric\_name | string | The name of the metric that is being reported. | 
| metric\_value | string | The value of the metric that is being reported. | 

## Maintenance events report schema
<a name="s3-tables-storage-lens-events-report-schema"></a>

The maintenance events report contains compaction and snapshot events, identified by the `event_type` values `COMPACTION` and `SNAPSHOT`. It has the following columns:


| Column name | Type | Description | 
| --- | --- | --- | 
| version\_number | string | The version of the schema. | 
| configuration\_id | string | Amazon S3 Storage Lens for Tables configuration name. | 
| report\_date | string | Date the report refers to. | 
| aws\_account\_number | string | Account ID the entry refers to. | 
| aws\_region | string | Region. | 
| storage\_class | string | Storage class. | 
| table\_bucket\_name | string | Table bucket name. | 
| table\_namespace | string | Table namespace. | 
| table\_name | string | Table name. | 
| event\_type | string | Type of maintenance event. Values: COMPACTION, SNAPSHOT. | 
| event | string | The event details, as a JSON string. | 

## Export schemas for Amazon S3 Tables
<a name="s3-tables-storage-lens-system-table-schemas"></a>

When you send metrics exports to an AWS-managed S3 table bucket, Amazon S3 Storage Lens for Tables writes the metrics as Apache Iceberg system tables in the `s3tablescatalog` catalog, in the `aws-s3` table bucket (`s3tablescatalog/aws-s3`), under the namespace `s3tables_lens_{{configuration-id}}_exp`. The metrics are organized into the `storage_metrics`, `table_properties`, `activity_metrics`, `table_health_metrics`, and `events` system tables.

For the full column schema – the column name, data type, and description of each column in every system table – see [Amazon S3 Storage Lens for Tables export column schemas](s3-tables-storage-lens-s3-tables-schemas.md).