-
Notifications
You must be signed in to change notification settings - Fork 6
/
SendData.cs
35 lines (31 loc) · 1.01 KB
/
SendData.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
27
28
29
30
31
32
33
34
35
using System;
using System.Net;
using System.Text.Json.Serialization;
namespace ZabbixSender.Async
{
/// <summary>
/// Represents a data frame to be sent to Zabbix.
/// </summary>
public class SendData
{
/// <summary>
/// Host name to monitor. Should be configured in Zabbix.
/// </summary>
public string Host { get; set; }
/// <summary>
/// A key of the item to send.
/// Should belong to the specified host and have "Zabbix trapper" type.
/// </summary>
public string Key { get; set; }
/// <summary>
/// An item value.
/// Should be formatted in a way to respect the configured "type of information" of the item.
/// </summary>
public string Value { get; set; }
/// <summary>
/// A timestamp for the provided value. Leave null for ongoing values.
/// </summary>
[JsonConverter(typeof(JsonUnixDateTime))]
public DateTimeOffset? Clock { get; set; }
}
}