namespace Store.Modules.CloudProduct.Dtos
{
///
/// OpenSearch 运行状态
///
public class OpenSearchStatusDto
{
///
/// 节点地址
///
public string NodeUrl { get; set; } = string.Empty;
///
/// 索引名称
///
public string IndexName { get; set; } = string.Empty;
///
/// 是否可连接
///
public bool Connected { get; set; }
///
/// OpenSearch 服务及目标索引是否健康
///
public bool Healthy { get; set; }
///
/// 集群名称
///
public string? ClusterName { get; set; }
///
/// 集群状态(green、yellow 或 red)
///
public string? ClusterStatus { get; set; }
///
/// 集群节点总数
///
public int NumberOfNodes { get; set; }
///
/// 数据节点数量
///
public int NumberOfDataNodes { get; set; }
///
/// 活跃主分片数量
///
public int ActivePrimaryShards { get; set; }
///
/// 活跃分片总数
///
public int ActiveShards { get; set; }
///
/// 正在迁移的分片数量
///
public int RelocatingShards { get; set; }
///
/// 正在初始化的分片数量
///
public int InitializingShards { get; set; }
///
/// 未分配的分片数量
///
public int UnassignedShards { get; set; }
///
/// 索引是否存在
///
public bool IndexExists { get; set; }
///
/// 索引映射是否符合当前服务要求
///
public bool MappingHealthy { get; set; }
///
/// 标题字段的索引分析器
///
public string? IndexAnalyzer { get; set; }
///
/// 标题字段的搜索分析器
///
public string? SearchAnalyzer { get; set; }
///
/// 文档总数(索引不存在或读取失败时为 -1)
///
public long DocumentCount { get; set; } = -1;
///
/// 状态检测耗时(毫秒)
///
public long ElapsedMilliseconds { get; set; }
///
/// 状态说明或错误信息
///
public string? Message { get; set; }
}
}