Interface ISearchComponents
Search components for use with {@link Values.fromSearchComponents}.
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ISearchComponents
Syntax (vb)
Public Interface ISearchComponents
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CloudWatch;
var dashboard = new Dashboard(this, "Dash", new DashboardProps {
DefaultInterval = Duration.Days(7),
Variables = new [] { new DashboardVariable(new DashboardVariableOptions {
Id = "functionName",
Type = VariableType.PATTERN,
Label = "Function",
InputType = VariableInputType.RADIO,
Value = "originalFuncNameInDashboard",
// equivalent to cw.Values.fromSearch('{AWS/Lambda,FunctionName} MetricName=\"Duration\"', 'FunctionName')
Values = Values.FromSearchComponents(new SearchComponents {
Namespace = "AWS/Lambda",
Dimensions = new [] { "FunctionName" },
MetricName = "Duration",
PopulateFrom = "FunctionName"
}),
DefaultValue = DefaultValue.FIRST,
Visible = true
}) }
});
Synopsis
Properties
Dimensions | The list of dimensions to be used in the search expression. |
MetricName | The metric name to be used in the search expression. |
Namespace | The namespace to be used in the search expression. |
PopulateFrom | The dimension name, that the search expression retrieves, whose values will be used to populate the values to choose from. |
Properties
Dimensions
The list of dimensions to be used in the search expression.
string[] Dimensions { get; }
Property Value
System.String[]
MetricName
The metric name to be used in the search expression.
string MetricName { get; }
Property Value
System.String
Namespace
The namespace to be used in the search expression.
string Namespace { get; }
Property Value
System.String
PopulateFrom
The dimension name, that the search expression retrieves, whose values will be used to populate the values to choose from.
string PopulateFrom { get; }
Property Value
System.String