AdoS8MonitorDictionaryDtos.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. namespace Admin.NET.Plugin.AiDOP.Dto.S8;
  2. /// <summary>
  3. /// CONFIG-MONITOR-DICT-READONLY-SEED-1:监控对象/指标只读字典查询 + 返回 DTO。
  4. /// </summary>
  5. public class AdoS8MonitorOptionsQueryDto
  6. {
  7. public long TenantId { get; set; } = 1;
  8. public long FactoryId { get; set; } = 1;
  9. }
  10. public class AdoS8MonitorMetricOptionDto
  11. {
  12. public string MetricCode { get; set; } = string.Empty;
  13. public string MetricLabel { get; set; } = string.Empty;
  14. public string Mechanism { get; set; } = string.Empty;
  15. public string? Unit { get; set; }
  16. public string? DueAtField { get; set; }
  17. public string? StatusField { get; set; }
  18. public string? MeasuredValueField { get; set; }
  19. public string? ObjectIdField { get; set; }
  20. public string? ObjectCodeField { get; set; }
  21. public string? ObjectNameField { get; set; }
  22. public bool IsResultKpi { get; set; }
  23. }
  24. public class AdoS8MonitorObjectOptionDto
  25. {
  26. public string ObjectCode { get; set; } = string.Empty;
  27. public string ObjectType { get; set; } = string.Empty;
  28. public string ObjectLabel { get; set; } = string.Empty;
  29. public string? SourceTable { get; set; }
  30. public List<string> Mechanisms { get; set; } = new();
  31. public List<AdoS8MonitorMetricOptionDto> Metrics { get; set; } = new();
  32. }
  33. public class AdoS8MonitorOptionsResultDto
  34. {
  35. public List<AdoS8MonitorObjectOptionDto> Objects { get; set; } = new();
  36. }