public sealed class EventFilter : IMessage<EventFilter>, IEquatable<EventFilter>, IDeepCloneable<EventFilter>, IBufferMessage, IMessage
Reference documentation and code samples for the Eventarc v1 API class EventFilter.
Filters events based on exact matches on the CloudEvents attributes.
Implements
IMessageEventFilter, IEquatableEventFilter, IDeepCloneableEventFilter, IBufferMessage, IMessageNamespace
Google.Cloud.Eventarc.V1Assembly
Google.Cloud.Eventarc.V1.dll
Constructors
EventFilter()
public EventFilter()
EventFilter(EventFilter)
public EventFilter(EventFilter other)
Parameter | |
---|---|
Name | Description |
other |
EventFilter |
Properties
Attribute
public string Attribute { get; set; }
Required. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. You can retrieve a specific provider's supported event types.
All triggers MUST provide a filter for the 'type' attribute.
Property Value | |
---|---|
Type | Description |
string |
Operator
public string Operator { get; set; }
Optional. The operator used for matching the events with the value of the
filter. If not specified, only events that have an exact key-value pair
specified in the filter are matched. The allowed values are path_pattern
and match-path-pattern
. path_pattern
is only allowed for GCFv1
triggers.
Property Value | |
---|---|
Type | Description |
string |
Value
public string Value { get; set; }
Required. The value for the attribute.
Property Value | |
---|---|
Type | Description |
string |