15 lines
603 B
C#
15 lines
603 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace MoShiro.Measurement;
|
|
|
|
/// <summary>节点本地配置里的 <c>reporting</c> 段(面板无法修改):Agent 和 Probe 共用。</summary>
|
|
public sealed class ReportingSection
|
|
{
|
|
/// <summary>上报主机资源占用(CPU、内存、磁盘、流量、运行时长,只有汇总数字,没有型号和 IP)。设为 false 就一个字也不上报。</summary>
|
|
[JsonPropertyName("host_stats")]
|
|
public bool HostStats { get; set; } = true;
|
|
|
|
[JsonPropertyName("host_interval_s")]
|
|
public int HostIntervalSeconds { get; set; } = 2;
|
|
}
|