1+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+ // SPDX-License-Identifier: Apache-2.0
3+
4+ using System . Text . Json . Serialization ;
5+
6+ namespace CloudWatchActions ;
7+
8+ public class Left
9+ {
10+ [ JsonPropertyName ( "min" ) ]
11+ public int Min { get ; set ; }
12+
13+ [ JsonPropertyName ( "max" ) ]
14+ public int Max { get ; set ; }
15+ }
16+
17+ public class Properties
18+ {
19+ [ JsonPropertyName ( "markdown" ) ]
20+ public string Markdown { get ; set ; } = null ! ;
21+
22+ [ JsonPropertyName ( "metrics" ) ]
23+ public List < List < object > > Metrics { get ; set ; } = null ! ;
24+
25+ [ JsonPropertyName ( "view" ) ]
26+ public string View { get ; set ; } = null ! ;
27+
28+ [ JsonPropertyName ( "region" ) ]
29+ public string Region { get ; set ; } = null ! ;
30+
31+ [ JsonPropertyName ( "stat" ) ]
32+ public string Stat { get ; set ; } = null ! ;
33+
34+ [ JsonPropertyName ( "period" ) ]
35+ public int ? Period { get ; set ; } = null ! ;
36+
37+ [ JsonPropertyName ( "yAxis" ) ]
38+ public YAxis YAxis { get ; set ; } = null ! ;
39+
40+ [ JsonPropertyName ( "stacked" ) ]
41+ public bool ? Stacked { get ; set ; } = null ! ;
42+
43+ [ JsonPropertyName ( "title" ) ]
44+ public string Title { get ; set ; } = null ! ;
45+
46+ [ JsonPropertyName ( "setPeriodToTimeRange" ) ]
47+ public bool ? SetPeriodToTimeRange { get ; set ; } = null ! ;
48+
49+ [ JsonPropertyName ( "liveData" ) ]
50+ public bool ? LiveData { get ; set ; } = null ! ;
51+
52+ [ JsonPropertyName ( "sparkline" ) ]
53+ public bool ? Sparkline { get ; set ; } = null ! ;
54+
55+ [ JsonPropertyName ( "trend" ) ]
56+ public bool ? Trend { get ; set ; } = null ! ;
57+
58+ [ JsonPropertyName ( "alarms" ) ]
59+ public List < string > Alarms { get ; set ; } = null ! ;
60+ }
61+
62+ public class DashboardModel
63+ {
64+ [ JsonPropertyName ( "widgets" ) ]
65+ public List < Widget > Widgets { get ; set ; } = null ! ;
66+ }
67+
68+ public class Widget
69+ {
70+ [ JsonPropertyName ( "type" ) ]
71+ public string Type { get ; set ; } = null ! ;
72+
73+ [ JsonPropertyName ( "x" ) ]
74+ public int X { get ; set ; }
75+
76+ [ JsonPropertyName ( "y" ) ]
77+ public int Y { get ; set ; }
78+
79+ [ JsonPropertyName ( "width" ) ]
80+ public int Width { get ; set ; }
81+
82+ [ JsonPropertyName ( "height" ) ]
83+ public int Height { get ; set ; }
84+
85+ [ JsonPropertyName ( "properties" ) ]
86+ public Properties Properties { get ; set ; } = null ! ;
87+ }
88+
89+ public class YAxis
90+ {
91+ [ JsonPropertyName ( "left" ) ]
92+ public Left Left { get ; set ; } = null ! ;
93+ }
0 commit comments