Skip to content

Commit

Permalink
fix(cli): adding more policy keys for json output (#442)
Browse files Browse the repository at this point in the history
ALLY-506
  • Loading branch information
hazedav authored Jun 10, 2021
1 parent 06174ff commit 7a0d77f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions api/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,18 @@ type PolicyResponse struct {
}

type Policy struct {
ID string `json:"policy_id"`
Title string `json:"title"`
Enabled bool `json:"enabled"`
AlertEnabled bool `json:"alert_enabled"`
Frequency string `json:"eval_frequency"`
Severity string `json:"severity"`
QueryID string `json:"lql_id"`
ID string `json:"policy_id"`
Title string `json:"title"`
Enabled bool `json:"enabled"`
AlertEnabled bool `json:"alert_enabled"`
Frequency string `json:"eval_frequency"`
Severity string `json:"severity"`
QueryID string `json:"lql_id"`
AlertProfile string `json:"alert_profile"`
Limit int `json:"limit"`
Description string `json:"description"`
Remediation string `json:"remediation"`
Properties map[string]interface{} `json:"properties"`
}

func (svc *PolicyService) Create(policy string) (
Expand Down

0 comments on commit 7a0d77f

Please sign in to comment.