Google Cloud Monitoring v3 API - Class AlertPolicy.Types.Condition.Types.LogMatch (3.3.0)

public sealed class AlertPolicy.Types.Condition.Types.LogMatch : IMessage<AlertPolicy.Types.Condition.Types.LogMatch>, IEquatable<AlertPolicy.Types.Condition.Types.LogMatch>, IDeepCloneable<AlertPolicy.Types.Condition.Types.LogMatch>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Monitoring v3 API class AlertPolicy.Types.Condition.Types.LogMatch.

A condition type that checks whether a log message in the scoping project satisfies the given filter. Logs from other projects in the metrics scope are not evaluated.

Inheritance

object > AlertPolicy.Types.Condition.Types.LogMatch

Namespace

Google.Cloud.Monitoring.V3

Assembly

Google.Cloud.Monitoring.V3.dll

Constructors

LogMatch()

public LogMatch()

LogMatch(LogMatch)

public LogMatch(AlertPolicy.Types.Condition.Types.LogMatch other)
Parameter
NameDescription
otherAlertPolicyTypesConditionTypesLogMatch

Properties

Filter

public string Filter { get; set; }

Required. A logs-based filter. See Advanced Logs Queries for how this filter should be constructed.

Property Value
TypeDescription
string

LabelExtractors

public MapField<string, string> LabelExtractors { get; }

Optional. A map from a label key to an extractor expression, which is used to extract the value for this label key. Each entry in this map is a specification for how data should be extracted from log entries that match filter. Each combination of extracted values is treated as a separate rule for the purposes of triggering notifications. Label keys and corresponding values can be used in notifications generated by this condition.

Please see the documentation on logs-based metric valueExtractors for syntax and examples.

Property Value
TypeDescription
MapFieldstringstring