From 798c7868f619de9e08390d45053c5a42dc40161a Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Wed, 6 Nov 2024 23:31:17 +0545 Subject: [PATCH] feat: add namespace column to config_scrapers table --- models/config.go | 1 + schema/config.hcl | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/models/config.go b/models/config.go index 53151828..23c32178 100644 --- a/models/config.go +++ b/models/config.go @@ -326,6 +326,7 @@ type ConfigScraper struct { ID uuid.UUID `json:"id"` AgentID uuid.UUID `json:"agent_id,omitempty"` Name string `json:"name"` + Namespace string `json:"namespace"` Description string `json:"description,omitempty"` Spec string `json:"spec,omitempty"` Source string `json:"source,omitempty"` diff --git a/schema/config.hcl b/schema/config.hcl index 3fa7cbb9..f325fc40 100644 --- a/schema/config.hcl +++ b/schema/config.hcl @@ -546,6 +546,10 @@ table "config_scrapers" { column "name" { type = text } + column "namespace" { + null = true + type = text + } column "spec" { null = false type = jsonb