duron 0.3.0-beta.4 → 0.3.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +0,0 @@
1
- CREATE TABLE "duron"."metrics" (
2
- "id" uuid PRIMARY KEY DEFAULT gen_random_uuid(),
3
- "job_id" uuid NOT NULL,
4
- "step_id" uuid,
5
- "name" text NOT NULL,
6
- "value" double precision NOT NULL,
7
- "attributes" jsonb DEFAULT '{}' NOT NULL,
8
- "type" text NOT NULL,
9
- "timestamp" timestamp with time zone DEFAULT now() NOT NULL,
10
- "created_at" timestamp with time zone DEFAULT now() NOT NULL,
11
- CONSTRAINT "metrics_type_check" CHECK ("type" IN ('metric', 'span_event', 'span_attribute'))
12
- );
13
- --> statement-breakpoint
14
- CREATE INDEX "idx_metrics_job_id" ON "duron"."metrics" ("job_id");--> statement-breakpoint
15
- CREATE INDEX "idx_metrics_step_id" ON "duron"."metrics" ("step_id");--> statement-breakpoint
16
- CREATE INDEX "idx_metrics_name" ON "duron"."metrics" ("name");--> statement-breakpoint
17
- CREATE INDEX "idx_metrics_type" ON "duron"."metrics" ("type");--> statement-breakpoint
18
- CREATE INDEX "idx_metrics_timestamp" ON "duron"."metrics" ("timestamp");--> statement-breakpoint
19
- CREATE INDEX "idx_metrics_job_step" ON "duron"."metrics" ("job_id","step_id");--> statement-breakpoint
20
- CREATE INDEX "idx_metrics_job_name" ON "duron"."metrics" ("job_id","name");--> statement-breakpoint
21
- CREATE INDEX "idx_metrics_job_type" ON "duron"."metrics" ("job_id","type");--> statement-breakpoint
22
- CREATE INDEX "idx_metrics_attributes" ON "duron"."metrics" USING gin ("attributes");--> statement-breakpoint
23
- ALTER TABLE "duron"."metrics" ADD CONSTRAINT "metrics_job_id_jobs_id_fkey" FOREIGN KEY ("job_id") REFERENCES "duron"."jobs"("id") ON DELETE CASCADE;--> statement-breakpoint
24
- ALTER TABLE "duron"."metrics" ADD CONSTRAINT "metrics_step_id_job_steps_id_fkey" FOREIGN KEY ("step_id") REFERENCES "duron"."job_steps"("id") ON DELETE CASCADE;