Skip to content

ImageEventOperationProps

Properties for defining a ImageEventOperation.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-threatdetection-imageeventoperation

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkthreatdetection"
&alicloudroscdkthreatdetection.ImageEventOperationProps {
    Conditions: interface{},
    EventType: interface{},
    OperationCode: interface{},
    EventKey: interface{},
    EventName: interface{},
    Note: interface{},
    Scenarios: interface{},
    Source: interface{},
}

Properties

Name Type Description
Conditions interface{} Property conditions: The rule conditions.
EventType interface{} Property eventType: Image Event Type.
OperationCode interface{} Property operationCode: Event Operation Code.
EventKey interface{} Property eventKey: The keyword of the alert item.
EventName interface{} Property eventName: The name of the alert item.
Note interface{} Property note: The remarks that you want to add.
Scenarios interface{} Property scenarios: The application scope of the rule.
Source interface{} Property source: The source of the whitelist.

ConditionsRequired

Conditions interface{}
  • Type: interface{}

Property conditions: The rule conditions.

Specify a value in the JSON format. You can specify the following keys:

  • condition: the matching condition.
  • type: the matching type.
  • value: the matching value.

EventTypeRequired

EventType interface{}
  • Type: interface{}

Property eventType: Image Event Type.


OperationCodeRequired

OperationCode interface{}
  • Type: interface{}

Property operationCode: Event Operation Code.


EventKeyOptional

EventKey interface{}
  • Type: interface{}

Property eventKey: The keyword of the alert item.


EventNameOptional

EventName interface{}
  • Type: interface{}

Property eventName: The name of the alert item.


NoteOptional

Note interface{}
  • Type: interface{}

Property note: The remarks that you want to add.


ScenariosOptional

Scenarios interface{}
  • Type: interface{}

Property scenarios: The application scope of the rule.

The value is in the JSON format. Valid values of keys: type value Example: {"type": "repo", "value": "test-aaa/shenzhen-repo-01"}


SourceOptional

Source interface{}
  • Type: interface{}

Property source: The source of the whitelist.

Valid values:

  • default: image.
  • agentless: agentless detection.