Skip to content

Commit

Permalink
feat: add namespace column to config_scrapers table
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Nov 6, 2024
1 parent 7c7dada commit f9174af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions models/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 4 additions & 0 deletions schema/config.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,10 @@ table "config_scrapers" {
column "name" {
type = text
}
column "namespace" {
null = true
type = text
}
column "spec" {
null = false
type = jsonb
Expand Down

0 comments on commit f9174af

Please sign in to comment.