public.instance_monitoring_report¶
列¶
| 名称 | 类型 | 默认 | 可空 | 子表 | 父表 | 注释 |
|---|---|---|---|---|---|---|
| attempts | integer | 0 | false | 迄今为止已进行的投递尝试次数,无论成功与否。达到三次即终止报告。 | ||
| createdAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | |||
| dataPoints | json | false | 与发送给接收方时完全一致的数据点数组。 | |||
| deliveredAt | timestamp(3) with time zone | true | 接收方接受报告的时间;未投递时为 NULL。 | |||
| id | uuid | false | UUID;作为负载中的 batchId 随负载一起传输。 |
|||
| lastAttemptAt | timestamp(3) with time zone | true | 上次尝试结束的时间;首次尝试前为 NULL。用于在重启后为重试设定节奏。 | |||
| lastError | text | true | 最近一次投递失败的消息。 | |||
| reportDate | varchar(10) | true | 报告创建时的 UTC 日期,格式为 YYYY-MM-DD。该值唯一,因此每天只创建一份报告。它不是报告所涵盖的日期。只有当旧行与更早的行共享同一天时才为 NULL。 | |||
| status | varchar(64) | 'pending'::character varying | false | Skipped 表示实例当天不再尝试,并不表示数字丢失:只有已投递的报告才会将某一天标记为完成,因此被跳过的一天由下一份报告覆盖。 | ||
| updatedAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false |
约束¶
| 名称 | 类型 | 定义 |
|---|---|---|
| CHK_instance_monitoring_report_status | CHECK | CHECK (((status)::text = ANY ((ARRAY['pending'::character varying, 'delivered'::character varying, 'skipped_after_max_retries'::character varying, 'sending'::character varying])::text[]))) |
| PK_4a5cb8aa51c67e4f5a7eb0f9509 | PRIMARY KEY | PRIMARY KEY (id) |
| instance_monitoring_report_attempts_not_null | n | NOT NULL attempts |
| instance_monitoring_report_createdAt_not_null | n | NOT NULL "createdAt" |
| instance_monitoring_report_dataPoints_not_null | n | NOT NULL "dataPoints" |
| instance_monitoring_report_id_not_null | n | NOT NULL id |
| instance_monitoring_report_status_not_null | n | NOT NULL status |
| instance_monitoring_report_updatedAt_not_null | n | NOT NULL "updatedAt" |
索引¶
| 名称 | 定义 |
|---|---|
| IDX_instance_monitoring_report_reportDate | CREATE UNIQUE INDEX "IDX_instance_monitoring_report_reportDate" ON public.instance_monitoring_report USING btree ("reportDate") WHERE ("reportDate" IS NOT NULL) |
| PK_4a5cb8aa51c67e4f5a7eb0f9509 | CREATE UNIQUE INDEX "PK_4a5cb8aa51c67e4f5a7eb0f9509" ON public.instance_monitoring_report USING btree (id) |
关系¶
erDiagram
"public.instance_monitoring_report" {
integer attempts
timestamp_3__with_time_zone createdAt
json dataPoints
timestamp_3__with_time_zone deliveredAt
uuid id
timestamp_3__with_time_zone lastAttemptAt
text lastError
varchar_10_ reportDate
varchar_64_ status
timestamp_3__with_time_zone updatedAt
}由 tbls 生成
本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 n8/n8n