Class LogQueryWidget
Display query results from Logs Insights.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public class LogQueryWidget : ConcreteWidget, IWidget
Syntax (vb)
Public Class LogQueryWidget
Inherits ConcreteWidget
Implements IWidget
Remarks
ExampleMetadata: infused
Examples
Dashboard dashboard;
dashboard.AddWidgets(new LogQueryWidget(new LogQueryWidgetProps {
LogGroupNames = new [] { "my-log-group" },
View = LogQueryVisualizationType.TABLE,
// The lines will be automatically combined using '\n|'.
QueryLines = new [] { "fields @message", "filter @message like /Error/" }
}));
Synopsis
Constructors
LogQueryWidget(ILogQueryWidgetProps) | |
LogQueryWidget(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LogQueryWidget(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
ToJson() | Return the widget JSON for use in the dashboard. |
Constructors
LogQueryWidget(ILogQueryWidgetProps)
LogQueryWidget(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LogQueryWidget(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LogQueryWidget(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LogQueryWidget(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
ToJson()
Return the widget JSON for use in the dashboard.
public override object[] ToJson()
Returns
System.Object[]