-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathCommandLineOptions.cs
26 lines (20 loc) · 1.09 KB
/
CommandLineOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using CommandLine;
using PRTG_Redis_Sensor.Enums;
namespace PRTG_Redis_Sensor
{
public class CommandLineOptions
{
[Option('t', "Monitor type", Required = true, HelpText = "Indicates the type of monitor to execute.\r\n")]
public MonitorServiceEnum Type { get; set; }
[Option('e', "Redis endpoints", Required = true, HelpText = "Specify the redis endpoints (i.e. server1:port;server2:port)")]
public string EndPoints { get; set; }
[Option('p', "Redis password", Required = false, HelpText = "Specify the redis password if required")]
public string Password { get; set; }
[Option('d', "Database index", Required = false, HelpText = "Specify the database index")]
public int DatabaseIndex { get; set; }
[Option('k', "Cache keys", Required = false, HelpText = "Keys whose values you want to retrieve from cache (separated by pipe | )")]
public string CacheKeys { get; set; }
[Option('r', "Transform value", Required = false, HelpText = "Elaborate the value retrieved from cache using the specified transformation.\r\n")]
public MonitorCacheValueTransformEnum? Transform { get; set; }
}
}