/
model_evaluation2.go
40 lines (39 loc) · 1.41 KB
/
model_evaluation2.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
34
35
36
37
38
39
40
/*
* Governance Policy Management API
*
* Read and manage OPA Governance policies, policy sets and evaluations
*
* API version: 1.2.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package policymgmt
import (
"os"
)
// The result of a single evaluation
type Evaluation2 struct {
// The Harness account in which the evaluation was performed
AccountId string `json:"account_id"`
// The action that triggered evaluation
Action string `json:"action"`
// The time at which the evaluation was performed in Unix time millseconds
Created int64 `json:"created"`
// The detailed results of te evaluation
Details []EvaluationDetail2 `json:"details"`
// An arbtrary user-supplied string that globally identifies the entity under evaluation
Entity string `json:"entity"`
// Additional arbtrary user-supplied metadta about the entity under evaluation
EntityMetadata string `json:"entity_metadata"`
// The ID of this evaluation
Id int64 `json:"id"`
// The input provided at evaluation time
Input **os.File `json:"input"`
// The Harness organisation in which the evaluation was performed
OrgId string `json:"org_id"`
// The Harness project in which the evaluation was performed
ProjectId string `json:"project_id"`
// The overall status of the evaluation indicating whether it passed
Status string `json:"status"`
// The type of the entity under evaluation
Type_ string `json:"type"`
}