42 lines
992 B
C#
Raw Normal View History

2025-04-09 17:29:30 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JiShe.CollectBus.Common.Consts
{
/// <summary>
/// 常用常量管理
/// </summary>
public class CommonConst
{
/// <summary>
/// Kafka
/// </summary>
public const string Kafka = "Kafka";
2025-04-11 17:43:19 +08:00
2025-04-18 11:31:23 +08:00
/// <summary>
/// 服务器标识
/// </summary>
public const string ServerTagName = $"{Kafka}:ServerTagName";
2025-04-11 17:43:19 +08:00
/// <summary>
/// Kafka副本数量
/// </summary>
2025-04-18 11:31:23 +08:00
public const string KafkaReplicationFactor = $"{Kafka}:KafkaReplicationFactor";
2025-04-11 17:43:19 +08:00
/// <summary>
/// Kafka主题分区数量
/// </summary>
2025-04-18 11:31:23 +08:00
public const string NumPartitions = $"{Kafka}:NumPartitions";
/// <summary>
/// 首次采集时间
/// </summary>
public const string FirstCollectionTime = "FirstCollectionTime";
2025-04-11 17:43:19 +08:00
2025-04-09 17:29:30 +08:00
}
}