Class SpaceDelimitedTextPattern
Space delimited text pattern.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.AWS.Logs.dll
Syntax (csharp)
public class SpaceDelimitedTextPattern : DeputyBase, IFilterPattern
Syntax (vb)
Public Class SpaceDelimitedTextPattern
Inherits DeputyBase
Implements IFilterPattern
Remarks
ExampleMetadata: infused
Examples
// Search for all events where the component is "HttpServer" and the
// result code is not equal to 200.
var pattern = FilterPattern.SpaceDelimited("time", "component", "...", "result_code", "latency").WhereString("component", "=", "HttpServer").WhereNumber("result_code", "!=", 200);
Synopsis
Constructors
SpaceDelimitedTextPattern(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
SpaceDelimitedTextPattern(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
SpaceDelimitedTextPattern(String[], IDictionary<String, IColumnRestriction[]>) |
Properties
LogPatternString |
Methods
Construct(String[]) | Construct a new instance of a space delimited text pattern. |
WhereNumber(String, String, Double) | Restrict where the pattern applies. |
WhereString(String, String, String) | Restrict where the pattern applies. |
Constructors
SpaceDelimitedTextPattern(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected SpaceDelimitedTextPattern(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
SpaceDelimitedTextPattern(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected SpaceDelimitedTextPattern(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
SpaceDelimitedTextPattern(String[], IDictionary<String, IColumnRestriction[]>)
public SpaceDelimitedTextPattern(string[] columns, IDictionary<string, IColumnRestriction[]> restrictions)
Parameters
- columns System.String[]
- restrictions System.Collections.Generic.IDictionary<System.String, IColumnRestriction[]>
Properties
LogPatternString
public virtual string LogPatternString { get; }
Property Value
System.String
Methods
Construct(String[])
Construct a new instance of a space delimited text pattern.
public static SpaceDelimitedTextPattern Construct(string[] columns)
Parameters
- columns System.String[]
Returns
Remarks
Since this class must be public, we can't rely on the user only creating it through
the LogPattern.spaceDelimited()
factory function. We must therefore validate the
argument in the constructor. Since we're returning a copy on every mutation, and we
don't want to re-validate the same things on every construction, we provide a limited
set of mutator functions and only validate the new data every time.
WhereNumber(String, String, Double)
Restrict where the pattern applies.
public virtual SpaceDelimitedTextPattern WhereNumber(string columnName, string comparison, double value)
Parameters
- columnName System.String
- comparison System.String
- value System.Double
Returns
WhereString(String, String, String)
Restrict where the pattern applies.
public virtual SpaceDelimitedTextPattern WhereString(string columnName, string comparison, string value)
Parameters
- columnName System.String
- comparison System.String
- value System.String
Returns