Files
SentinelMesh/examples/glance-network.yaml
T
gilles 7cf56f24ef chore: initialise la structure du projet SentinelMesh
- Workspace Cargo avec backend, agent-scan-network, agent-metric
- Skeleton Rust pour les trois crates (Axum, Tokio, SQLx)
- Documentation : README, FEATURES, ROADMAP, ARCHITECTURE, API, INSTALL
- Exemples de widgets Glance (custom-api)
- Script d'installation agents (squelette Phase 5)
- Docker Compose + Dockerfile backend
- .gitignore et CLAUDE.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 05:59:12 +02:00

20 lines
608 B
YAML

# Exemple de widget Glance — Découverte réseau SentinelMesh
# À intégrer dans votre glance.yml
- type: custom-api
title: Réseau local
cache: 30s
url: http://sentinelmesh:8080/api/v1/widgets/network
template: |
{{ range .sections }}
<div class="widget-type-sentinelmesh-network">
<h3>{{ .name }} — {{ .cidr }}</h3>
{{ range .items }}
<div class="device {{ .state }}">
<span class="hostname">{{ .hostname }}</span>
<span class="ip">{{ .ip }}</span>
<span class="state">{{ .state }}</span>
</div>
{{ end }}
</div>
{{ end }}