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.84.0 (build 5404dcf)", date="2023-06-19T16:30:38.101Z") @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

    Constructors
    Modifier
    Constructor
    Description
    protected
    JsonPattern(String jsonPatternString)
     
    protected
    JsonPattern(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    JsonPattern(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    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

      @Stability(Stable) protected JsonPattern(@NotNull String jsonPatternString)
      Parameters:
      jsonPatternString - This parameter is required.
  • Method Details

    • getJsonPatternString

      @Stability(Stable) @NotNull public String getJsonPatternString()
    • getLogPatternString

      @Stability(Stable) @NotNull public String getLogPatternString()
      Specified by:
      getLogPatternString in interface IFilterPattern