- Resource: Execution
- State
- Type
- RuleExecutionResult
- State
- ExternalDataSources
- Type
- Notice
- Summary
- Methods
Resource: Execution
Message describing Execution object
JSON representation |
---|
{ "name": string, "startTime": string, "endTime": string, "inventoryTime": string, "state": enum ( |
Fields | |
---|---|
name |
The name of execution resource. The format is projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution} |
start |
Output only. [Output only] Start time stamp A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
end |
Output only. [Output only] End time stamp A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
inventory |
Output only. [Output only] Inventory time stamp A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
state |
Output only. [Output only] State |
evaluation |
Output only. [Output only] Evaluation ID |
labels |
Labels as key value pairs An object containing a list of |
run |
type represent whether the execution executed directly by user or scheduled according evaluation.schedule field. |
rule |
Output only. execution result summary per rule |
external |
Optional. External data sources |
notices[] |
Output only. Additional information generated by the execution |
result |
Output only. [Output only] Result summary for the execution |
State
The state of execution
Enums | |
---|---|
STATE_UNSPECIFIED |
state of execution is unspecified |
RUNNING |
the execution is running in backend service |
SUCCEEDED |
the execution run success |
FAILED |
the execution run failed |
Type
The type of execution, could be on demand execute or scheduled execute
Enums | |
---|---|
TYPE_UNSPECIFIED |
type of execution is unspecified |
ONE_TIME |
type of execution is one time |
SCHEDULED |
type of execution is scheduled |
RuleExecutionResult
Message for execution result summary per rule
JSON representation |
---|
{
"rule": string,
"state": enum ( |
Fields | |
---|---|
rule |
rule name |
state |
Output only. The execution status |
message |
Execution message, if any |
result |
Number of violations |
scanned |
Number of total scanned resources |
State
Execution state per rule
Enums | |
---|---|
STATE_UNSPECIFIED |
Unknown state |
STATE_SUCCESS |
execution completed successfully |
STATE_FAILURE |
execution completed with failures |
STATE_SKIPPED |
execution was not executed |
ExternalDataSources
Message for external data sources
JSON representation |
---|
{
"name": string,
"uri": string,
"type": enum ( |
Fields | |
---|---|
name |
Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data |
uri |
Required. URI of external data source. example of bq table {project_ID}.{dataset_ID}.{table_ID} |
type |
Required. Type of external data source |
asset |
Required. The asset type of the external data source this can be one of go/cai-asset-types to override the default asset type or it can be a custom type defined by the user custom type must match the asset type in the rule |
Type
Type of external data source
Enums | |
---|---|
TYPE_UNSPECIFIED |
Unknown type |
BIG_QUERY_TABLE |
BigQuery table |
Notice
Message for additional information generated by the execution
JSON representation |
---|
{ "message": string } |
Fields | |
---|---|
message |
Output only. Message of the notice |
Summary
Message for execution summary
JSON representation |
---|
{ "failures": string, "newFailures": string, "newFixes": string } |
Fields | |
---|---|
failures |
Output only. Number of failures |
new |
Output only. Number of new failures compared to the previous execution |
new |
Output only. Number of new fixes compared to the previous execution |
Methods |
|
---|---|
|
Deletes a single Execution. |
|
Gets details of a single Execution. |
|
Lists Executions in a given project and location. |
|
Creates a new Execution in a given project and location. |