Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
type Diff struct {
ID PolicyDiffID `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
CreatedAt time.Time `json:"created_at"`
New map[string]string `json:"new"`
Old map[string]string `json:"old"`
NewTestDataSet *TestDataSet `json:"new_test_data_set"`
}
func (*Diff) DiffPolicy ¶
type PolicyDiffID ¶
type PolicyDiffID string
PolicyDiffID is a unique identifier for a policy diff.
func NewPolicyDiffID ¶
func NewPolicyDiffID() PolicyDiffID
func (PolicyDiffID) String ¶
func (x PolicyDiffID) String() string
type TestData ¶
type TestData struct {
// Metafiles is the metadata (README) of the test data that is generated by the AI.
Metafiles map[types.AlertSchema]map[string]string
// Data is the test data that is from the original alert or modified.
Data map[types.AlertSchema]map[string]any
}
func NewTestData ¶
func NewTestData() *TestData
type TestDataSet ¶
func NewTestDataSet ¶
func NewTestDataSet() *TestDataSet
Click to show internal directories.
Click to hide internal directories.