Skip to content

Commit baec3f6

Browse files
committed
comply naming rules
1 parent 72e73f3 commit baec3f6

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

examples/local-node-uptime/Program.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
using Smdn.Net.MuninNode;
1111
using Smdn.Net.MuninPlugin;
1212

13-
const string nodeHostName = "test.munin-node.localhost";
14-
const int nodePort = 14949;
13+
const string NodeHostName = "test.munin-node.localhost";
14+
const int NodePort = 14949;
1515

1616
var startAt = DateTime.Now;
1717

1818
// Define plugins
1919
var plugins = new[] {
2020
PluginFactory.CreatePlugin(
2121
name: "uptime",
22-
fieldLabel: nodeHostName,
22+
fieldLabel: NodeHostName,
2323
// Specify 'AREA' as the drawing style for values on the graph
2424
fieldGraphStyle: PluginFieldGraphStyle.Area,
2525
// Set the number of minutes elapsed from the start time of the process as the 'uptime' value.
@@ -29,7 +29,7 @@
2929
// 'Well known categories' are defined by Munin.
3030
// See https://guide.munin-monitoring.org/en/latest/reference/graph-category.html
3131
category: "system",
32-
title: $"Uptime of {nodeHostName}",
32+
title: $"Uptime of {NodeHostName}",
3333
verticalLabel: "Uptime [minutes]",
3434
scale: false,
3535
// Specify arguments for graph drawing. See below for more information about graph arguments:
@@ -56,8 +56,8 @@
5656
// Create LocalNode
5757
await using var node = new LocalNode(
5858
plugins: plugins,
59-
hostName: nodeHostName,
60-
port: nodePort,
59+
hostName: NodeHostName,
60+
port: NodePort,
6161
serviceProvider: services.BuildServiceProvider()
6262
);
6363

examples/multiple-fields/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
using Smdn.Net.MuninNode;
1111
using Smdn.Net.MuninPlugin;
1212

13-
const string nodeHostName = "test.munin-node.localhost";
14-
const int nodePort = 14949;
13+
const string NodeHostName = "test.munin-node.localhost";
14+
const int NodePort = 14949;
1515

1616
double? FetchValue1() => Random.Shared.Next(0, 10);
1717
double? FetchValue2() => Random.Shared.Next(0, 10);
@@ -45,8 +45,8 @@
4545

4646
await using var node = new LocalNode(
4747
plugins: plugins,
48-
hostName: nodeHostName,
49-
port: nodePort,
48+
hostName: NodeHostName,
49+
port: NodePort,
5050
serviceProvider: services.BuildServiceProvider()
5151
);
5252

0 commit comments

Comments
 (0)