Class JsonPattern
Base class for patterns that only match JSON log events.
Inheritance
System.Object
JsonPattern
Implements
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.AWS.Logs.dll
Syntax (csharp)
public abstract class JsonPattern : DeputyBase, IFilterPattern
Syntax (vb)
Public MustInherit Class JsonPattern
Inherits DeputyBase
Implements IFilterPattern
Remarks
ExampleMetadata: infused
Examples
// Search for all events where the component field is equal to
// "HttpServer" and either error is true or the latency is higher
// than 1000.
var pattern = FilterPattern.All(FilterPattern.StringValue("$.component", "=", "HttpServer"), FilterPattern.Any(FilterPattern.BooleanValue("$.error", true), FilterPattern.NumberValue("$.latency", ">", 1000)));
Synopsis
Constructors
JsonPattern(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
JsonPattern(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
JsonPattern(String) |
Properties
JsonPatternString | |
LogPatternString |
Constructors
JsonPattern(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected JsonPattern(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
JsonPattern(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected JsonPattern(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
JsonPattern(String)
protected JsonPattern(string jsonPatternString)
Parameters
- jsonPatternString System.String
Properties
JsonPatternString
public virtual string JsonPatternString { get; }
Property Value
System.String
LogPatternString
public virtual string LogPatternString { get; }
Property Value
System.String