{isZh ? '容器状态' : 'Container'}: {resourceSnapshot.docker_status}
+
{isZh ? '容器名' : 'Container Name'}: {resourceSnapshot.bot_id ? `worker_${resourceSnapshot.bot_id}` : '-'}
+
{isZh ? '基础镜像' : 'Base Image'}: {resourceBot?.image_tag || '-'}
+
Provider/Model: {resourceBot?.llm_provider || '-'} / {resourceBot?.llm_model || '-'}
{isZh ? '采样时间' : 'Collected'}: {resourceSnapshot.collected_at}
-
- {isZh ? 'CPU限制生效' : 'CPU limit'}:{' '}
-
- {Number(resourceSnapshot.configured.cpu_cores) === 0
- ? (isZh ? '不限' : 'UNLIMITED')
- : (resourceSnapshot.enforcement.cpu_limited ? 'YES' : 'NO')}
-
-
-
- {isZh ? '内存限制生效' : 'Memory limit'}:{' '}
-
- {Number(resourceSnapshot.configured.memory_mb) === 0
- ? (isZh ? '不限' : 'UNLIMITED')
- : (resourceSnapshot.enforcement.memory_limited ? 'YES' : 'NO')}
-
-
-
- {isZh ? '存储限制生效' : 'Storage limit'}:{' '}
-
- {Number(resourceSnapshot.configured.storage_gb) === 0
- ? (isZh ? '不限' : 'UNLIMITED')
- : (resourceSnapshot.enforcement.storage_limited ? 'YES' : 'NO')}
-
-
+
{isZh ? '策略说明' : 'Policy'}: {isZh ? '资源值 0 = 不限制' : 'Value 0 = Unlimited'}
@@ -2558,6 +2547,9 @@ export function BotDashboardModule({
{isZh ? 'Docker 实际限制' : 'Docker Runtime Limits'}
+
{isZh ? 'CPU限制生效' : 'CPU limit active'}{Number(resourceSnapshot.configured.cpu_cores) === 0 ? (isZh ? '不限' : 'Unlimited') : (resourceSnapshot.enforcement.cpu_limited ? 'YES' : 'NO')}
+
{isZh ? '内存限制生效' : 'Memory limit active'}{Number(resourceSnapshot.configured.memory_mb) === 0 ? (isZh ? '不限' : 'Unlimited') : (resourceSnapshot.enforcement.memory_limited ? 'YES' : 'NO')}
+
{isZh ? '存储限制生效' : 'Storage limit active'}{Number(resourceSnapshot.configured.storage_gb) === 0 ? (isZh ? '不限' : 'Unlimited') : (resourceSnapshot.enforcement.storage_limited ? 'YES' : 'NO')}
CPU{resourceSnapshot.runtime.limits.cpu_cores ? resourceSnapshot.runtime.limits.cpu_cores.toFixed(2) : (Number(resourceSnapshot.configured.cpu_cores) === 0 ? (isZh ? '不限' : 'Unlimited') : '-')}
{isZh ? '内存' : 'Memory'}{resourceSnapshot.runtime.limits.memory_bytes ? formatBytes(resourceSnapshot.runtime.limits.memory_bytes) : (Number(resourceSnapshot.configured.memory_mb) === 0 ? (isZh ? '不限' : 'Unlimited') : '-')}
{isZh ? '存储' : 'Storage'}{resourceSnapshot.runtime.limits.storage_bytes ? formatBytes(resourceSnapshot.runtime.limits.storage_bytes) : (resourceSnapshot.runtime.limits.storage_opt_raw || (Number(resourceSnapshot.configured.storage_gb) === 0 ? (isZh ? '不限' : 'Unlimited') : '-'))}