-
Notifications
You must be signed in to change notification settings - Fork 10
/
model_rule_result.go
33 lines (32 loc) · 1.44 KB
/
model_rule_result.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Unified Policy Engine I/O Formats
*
* Documentation for the input and output formats used in Unified Policy Engine
*
* API version: 1.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package models
// A single rule result
type RuleResult struct {
// Whether or not this is a passing or failing result
Passed bool `json:"passed"`
// Whether or not this result is ignored
Ignored bool `json:"ignored"`
// An optional message that can be returned by a rule
Message string `json:"message,omitempty"`
// The ID of the primary resource (if any) associated with this result
ResourceId string `json:"resource_id,omitempty"`
// The namespace of the primary resource (if any) associated with this result
ResourceNamespace string `json:"resource_namespace,omitempty"`
// The type of resource (if any) associated with this result. This will typically be used with \"missing resource\" rules.
ResourceType string `json:"resource_type,omitempty"`
// A Markdown-formatted set of remediation steps to resolve the issue identified by the rule
Remediation string `json:"remediation,omitempty"`
// The severity of this rule result
Severity string `json:"severity,omitempty"`
// An arbitrary key-value map that a rule can return in its result.
Context map[string]interface{} `json:"context,omitempty"`
// A resource objects associated with this result.
Resources []*RuleResultResource `json:"resources,omitempty"`
}