Skip to content

Commit 9143d2f

Browse files
authored
.NET v4 folders: adding CloudFormation and CloudWatch (#7197)
1 parent 9cd7f38 commit 9143d2f

21 files changed

+2853
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net8.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="AWSSDK.CloudWatch" Version="4.0.0-preview.4" />
12+
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="4.0.0-preview.4" />
13+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0" />
14+
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="9.0.0" />
15+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
16+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
17+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
18+
<PackageReference Include="System.Text.Json" Version="9.0.0" />
19+
</ItemGroup>
20+
21+
</Project>
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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

Comments
 (0)