47fac22230
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2.0 KiB
2.0 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| metabase_create_dashboard | function | go | infra | 1.0.0 | impure | func MetabaseCreateDashboard(client MetabaseClient, name, description string, collectionID int) (map[string]any, error) | Crea un nuevo dashboard vacio en Metabase. Para agregar cards usar MetabaseUpdateDashboard con el campo dashcards. Endpoint: POST /api/dashboard. |
|
|
false | error_go_core |
|
|
mapa con los detalles del dashboard creado incluyendo su ID | false | functions/infra/metabase_create_dashboard.go |
Ejemplo
// Crear dashboard vacio
dashboard, err := MetabaseCreateDashboard(client, "Sales Overview", "KPIs de ventas", 5)
if err != nil {
log.Fatal(err)
}
dashboardID := int(dashboard["id"].(float64))
// Luego agregar cards con MetabaseUpdateDashboard
MetabaseUpdateDashboard(client, dashboardID, map[string]any{
"dashcards": []map[string]any{
{"id": -1, "card_id": 42, "size_x": 6, "size_y": 4, "col": 0, "row": 0},
},
})
Notas
Parametros para un LLM
| Parametro | Tipo | Requerido | Descripcion |
|---|---|---|---|
| client | MetabaseClient | si | Cliente autenticado |
| name | string | si | Nombre del dashboard |
| description | string | no | Descripcion. Vacio = sin descripcion |
| collectionID | int | no | Coleccion destino. 0 = root |
El dashboard se crea vacio. Para agregar cards, usar MetabaseUpdateDashboard con el array dashcards. Retorna el objeto dashboard creado.