- Resource: Execution
- State
- Type
- RuleExecutionResult
- State
- ExternalDataSources
- Type
- Notice
- Engine
- Summary
- Methods
Resource: Execution
Execution that represents a single run of an Evaluation.
| 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 which represents whether the execution executed directly by user or scheduled according to the |
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 possible states of an execution like RUNNING, SUCCEEDED, FAILED, etc.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
State of execution is unspecified. |
RUNNING |
The execution is running in backend service. |
SUCCEEDED |
The execution run succeeded. |
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
Execution result summary per rule.
| JSON representation |
|---|
{
"rule": string,
"state": enum ( |
| Fields | |
|---|---|
rule |
Rule name as plain text like |
state |
Output only. The execution status. |
message |
Execution message, if any. |
resultCount |
Number of violations. |
scannedResourceCount |
Number of total scanned resources. |
State
Possible states of a rule execution like SUCCESS, FAILURE, etc.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Unknown state |
STATE_SUCCESS |
Execution completed successfully |
STATE_FAILURE |
Execution completed with failures |
STATE_SKIPPED |
Execution was not executed |
ExternalDataSources
External data sources for an execution.
| 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
Possible types of external data sources like BigQuery table, etc.
| Enums | |
|---|---|
TYPE_UNSPECIFIED |
Unknown type. |
BIG_QUERY_TABLE |
BigQuery table. |
Notice
Additional information generated by an execution.
| JSON representation |
|---|
{ "message": string } |
| Fields | |
|---|---|
message |
Output only. Message of the notice. |
Engine
The engine used for the execution.
| Enums | |
|---|---|
ENGINE_UNSPECIFIED |
The original CG. |
ENGINE_SCANNER |
SlimCG / Scanner. |
V2 |
Evaluation Engine V2. |
Summary
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. |