Skip to content

Commit

Permalink
Merge pull request #165 from opengovern/fix-tasks
Browse files Browse the repository at this point in the history
fix: fix package name
  • Loading branch information
artaasadi authored Dec 18, 2024
2 parents 33258b3 + 89b0980 commit 4a185ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/es/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ type TaskResult struct {
ResourceID string `json:"resource_id"`
ResourceName string `json:"resource_name"`
Description interface{} `json:"description"`
TaskType string `json:"task_type"`
ResultType string `json:"result_type"`
Metadata map[string]string `json:"metadata"`
DescribedBy string `json:"described_by"`
Expand All @@ -111,6 +112,7 @@ type TaskResult struct {
func (r TaskResult) KeysAndIndex() ([]string, string) {
return []string{
r.ResourceID,
r.TaskType,
r.ResultType,
}, ResourceTypeToESIndex(r.ResultType)
}

0 comments on commit 4a185ca

Please sign in to comment.