Class DashboardProps
Properties for defining a CloudWatch Dashboard.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public class DashboardProps : Object, IDashboardProps
Syntax (vb)
Public Class DashboardProps
Inherits Object
Implements IDashboardProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudWatch;
IWidget widget;
var dashboardProps = new DashboardProps {
DashboardName = "dashboardName",
End = "end",
PeriodOverride = PeriodOverride.AUTO,
Start = "start",
Widgets = new [] { new [] { widget } }
};
Synopsis
Constructors
DashboardProps() |
Properties
DashboardName | Name of the dashboard. |
End | The end of the time range to use for each widget on the dashboard when the dashboard loads. |
PeriodOverride | Use this field to specify the period for the graphs when the dashboard loads. |
Start | The start of the time range to use for each widget on the dashboard. |
Widgets | Initial set of widgets on the dashboard. |
Constructors
DashboardProps()
public DashboardProps()
Properties
DashboardName
Name of the dashboard.
public string DashboardName { get; set; }
Property Value
System.String
Remarks
If set, must only contain alphanumerics, dash (-) and underscore (_)
Default: - automatically generated name
End
The end of the time range to use for each widget on the dashboard when the dashboard loads.
public string End { get; set; }
Property Value
System.String
Remarks
If you specify a value for end, you must also specify a value for start. Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
Default: When the dashboard loads, the end date will be the current time.
PeriodOverride
Use this field to specify the period for the graphs when the dashboard loads.
public Nullable<PeriodOverride> PeriodOverride { get; set; }
Property Value
System.Nullable<PeriodOverride>
Remarks
Specifying Auto
causes the period of all graphs on the dashboard to automatically adapt to the time range of the dashboard.
Specifying Inherit
ensures that the period set for each graph is always obeyed.
Default: Auto
Start
The start of the time range to use for each widget on the dashboard.
public string Start { get; set; }
Property Value
System.String
Remarks
You can specify start without specifying end to specify a relative time range that ends with the current time. In this case, the value of start must begin with -P, and you can use M, H, D, W and M as abbreviations for minutes, hours, days, weeks and months. For example, -PT8H shows the last 8 hours and -P3M shows the last three months. You can also use start along with an end field, to specify an absolute time range. When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
Default: When the dashboard loads, the start time will be the default time range.
Widgets
Initial set of widgets on the dashboard.
public IWidget[][] Widgets { get; set; }
Property Value
IWidget[][]
Remarks
One array represents a row of widgets.
Default: - No widgets