- Resource: Execution
- State
- Type
- RuleExecutionResult
- State
- ExternalDataSources
- Type
- Notice
- Engine
- 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} |
startTime |
Output only. [Output only] Start time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endTime |
Output only. [Output only] End time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
inventoryTime |
Output only. [Output only] Inventory time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
state |
Output only. [Output only] State |
evaluationId |
Output only. [Output only] Evaluation ID |
labels |
Labels as key value pairs An object containing a list of |
runType |
type represent whether the execution executed directly by user or scheduled according evaluation.schedule field. |
ruleResults[] |
Output only. execution result summary per rule |
externalDataSources[] |
Optional. External data sources |
notices[] |
Output only. Additional information generated by the execution |
engine |
Optional. Engine |
resultSummary |
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 |
resultCount |
Number of violations |
scannedResourceCount |
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 |
assetType |
Required. The asset type of the external data source. This can be a supported Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) to override the default asset type, or it can be a custom type defined by the user. |
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 |
Engine
Message for the engine used for the execution
| Enums | |
|---|---|
ENGINE_UNSPECIFIED |
The original CG |
ENGINE_SCANNER |
SlimCG / Scanner |
V2 |
Evaluation Engine V2 |
Summary
Message for execution summary
| JSON representation |
|---|
{ "failures": string, "newFailures": string, "newFixes": string } |
| Fields | |
|---|---|
failures |
Output only. Number of failures |
newFailures |
Output only. Number of new failures compared to the previous execution |
newFixes |
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. |