pe-puppetdb=# \d+ reports_20200717z |
Table "public.reports_20200717z" |
Column | Type | Collation | Nullable | Default | Storage | Stats target | Description |
-----------------------+--------------------------+-----------+----------+-------------------------------------+----------+--------------+------------- |
id | bigint | | not null | nextval('reports_id_seq'::regclass) | plain | | |
hash | bytea | | not null | | extended | | |
transaction_uuid | uuid | | | | plain | | |
certname | text | | not null | | extended | | |
puppet_version | text | | not null | | extended | | |
report_format | smallint | | not null | | plain | | |
configuration_version | text | | not null | | extended | | |
start_time | timestamp with time zone | | not null | | plain | | |
end_time | timestamp with time zone | | not null | | plain | | |
receive_time | timestamp with time zone | | not null | | plain | | |
noop | boolean | | | | plain | | |
environment_id | bigint | | | | plain | | |
status_id | bigint | | | | plain | | |
metrics_json | json | | | | extended | | |
logs_json | json | | | | extended | | |
producer_timestamp | timestamp with time zone | | not null | | plain | | |
metrics | jsonb | | | | extended | | |
logs | jsonb | | | | extended | | |
resources | jsonb | | | | extended | | |
catalog_uuid | uuid | | | | plain | | |
cached_catalog_status | text | | | | extended | | |
code_id | text | | | | extended | | |
producer_id | bigint | | | | plain | | |
noop_pending | boolean | | | | plain | | |
corrective_change | boolean | | | | plain | | |
job_id | text | | | | extended | | |
report_type | text | | not null | 'agent'::text | extended | | |
Indexes: |
"reports_hash_expr_idx_20200717z" UNIQUE, btree (encode(hash, 'hex'::text)) |
"idx_reports_compound_id_20200717z" btree (producer_timestamp, certname, hash) WHERE start_time IS NOT NULL |
"idx_reports_noop_pending_20200717z" btree (noop_pending) WHERE noop_pending = true |
"idx_reports_prod_20200717z" btree (producer_id) |
"idx_reports_producer_timestamp_20200717z" btree (producer_timestamp) |
"idx_reports_producer_timestamp_by_hour_certname_20200717z" btree (date_trunc('hour'::text, timezone('UTC'::text, producer_timestamp)), producer_timestamp, certname) |
"reports_cached_catalog_status_on_fail_20200717z" btree (cached_catalog_status) WHERE cached_catalog_status = 'on_failure'::text |
"reports_catalog_uuid_idx_20200717z" btree (catalog_uuid) |
"reports_certname_idx_20200717z" btree (certname) |
"reports_end_time_idx_20200717z" btree (end_time) |
"reports_environment_id_idx_20200717z" btree (environment_id) |
"reports_job_id_idx_20200717z" btree (job_id) WHERE job_id IS NOT NULL |
"reports_noop_idx_20200717z" btree (noop) WHERE noop = true |
"reports_status_id_idx_20200717z" btree (status_id) |
"reports_tx_uuid_expr_idx_20200717z" btree ((transaction_uuid::text)) |
Check constraints: |
"reports_20200717z_producer_timestamp_check" CHECK (producer_timestamp >= '2020-07-17 00:00:00+00'::timestamp with time zone AND producer_timestamp < '2020-07-18 00:00:00+00'::timestamp with time zone) |
Foreign-key constraints: |
"reports_certname_fkey_20200717z" FOREIGN KEY (certname) REFERENCES certnames(certname) ON DELETE CASCADE |
"reports_env_fkey_20200717z" FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE |
"reports_prod_fkey_20200717z" FOREIGN KEY (producer_id) REFERENCES producers(id) |
"reports_status_fkey_20200717z" FOREIGN KEY (status_id) REFERENCES report_statuses(id) ON DELETE CASCADE |
Inherits: reports
|