public sealed class LogMatch : IMessage<AlertPolicy.Types.Condition.Types.LogMatch>, IEquatable<AlertPolicy.Types.Condition.Types.LogMatch>, IDeepCloneable<AlertPolicy.Types.Condition.Types.LogMatch>, IBufferMessage, IMessage
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe page details the \u003ccode\u003eLogMatch\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Monitoring.V3\u003c/code\u003e namespace, which is used to check if a log message in a specific project satisfies a given filter.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLogMatch\u003c/code\u003e class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role in message handling and object comparison.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default \u003ccode\u003eLogMatch()\u003c/code\u003e and a copy constructor \u003ccode\u003eLogMatch(AlertPolicy.Types.Condition.Types.LogMatch other)\u003c/code\u003e, allowing for object creation and cloning.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two properties: \u003ccode\u003eFilter\u003c/code\u003e, a string property that is required to make the logs based filter, and \u003ccode\u003eLabelExtractors\u003c/code\u003e, an optional map field that specifies how data should be extracted from the log entries.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of the \u003ccode\u003eLogMatch\u003c/code\u003e class are available, from version 2.3.0 to the latest 3.15.0, each with its own documentation link.\u003c/p\u003e\n"]]],[],null,[]]