Class JsonPattern
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.logs.JsonPattern
- All Implemented Interfaces:
IFilterPattern
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:04.287Z")
@Stability(Stable)
public abstract class JsonPattern
extends software.amazon.jsii.JsiiObject
implements IFilterPattern
Base class for patterns that only match JSON log events.
Example:
// Search for all events where the component field is equal to // "HttpServer" and either error is true or the latency is higher // than 1000. JsonPattern pattern = FilterPattern.all(FilterPattern.stringValue("$.component", "=", "HttpServer"), FilterPattern.any(FilterPattern.booleanValue("$.error", true), FilterPattern.numberValue("$.latency", ">", 1000)));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.logs.IFilterPattern
IFilterPattern.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
JsonPattern
(String jsonPatternString) protected
JsonPattern
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
JsonPattern
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
JsonPattern
protected JsonPattern(software.amazon.jsii.JsiiObjectRef objRef) -
JsonPattern
protected JsonPattern(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
JsonPattern
- Parameters:
jsonPatternString
- This parameter is required.
-
-
Method Details
-
getJsonPatternString
-
getLogPatternString
- Specified by:
getLogPatternString
in interfaceIFilterPattern
-