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.
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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eLogMatch\u003c/code\u003e class within the Google Cloud Monitoring v3 API, specifically under \u003ccode\u003eAlertPolicy.Types.Condition.Types\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLogMatch\u003c/code\u003e class is used to define a condition that checks if a log message in a specified project matches a given filter, as defined in the \u003ca href=\"https://cloud.google.com/logging/docs/view/advanced-queries\"\u003eAdvanced Logs Queries\u003c/a\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a required \u003ccode\u003eFilter\u003c/code\u003e property, which is a string used to define the log-based filter for the condition, as well as an optional \u003ccode\u003eLabelExtractors\u003c/code\u003e property, a map used to extract values from matching log entries.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides links to multiple versions of the documentation, ranging from the latest version 3.15.0 down to version 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLogMatch\u003c/code\u003e class implements multiple interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,[]]