Number
The number column type displays numeric values (integers and decimals).
| Field | Description | Scheme |
|---|---|---|
name* | Column name (must be a valid SQL identifier) |
|
type* | Data type that controls formatting and visualization |
|
badge | Badge styling configuration. Use | |
card.position | Where this column appears in the card layout: |
|
card.useForAccent | Set to |
|
description | Human-readable help text for the column |
|
filter | Enable server-side filtering for this column. Set | object |
hidden | Hide the column from the table view (default: false) |
|
icon | CEL expression that resolves to an icon name per row (e.g. |
|
primaryKey | Whether this column is part of the primary key (default: false). At least one column must be marked as primary key. |
|
unit | Unit label appended to the displayed value (e.g. |
|
url | Link to a config, another view, or a custom URL using CEL / Go templates | |
width | Display width, e.g. |
|
Example
namespace.yamlapiVersion: mission-control.flanksource.com/v1
kind: View
metadata:
name: notification-send-history
namespace: mc
spec:
display:
title: Notification Send History
icon: bell
sidebar: true
cache:
maxAge: 10m
minAge: 5s
columns:
- name: id
type: string
primaryKey: true
hidden: true
- name: notification_id
type: string
- name: status
type: status
- name: created_at
type: datetime
- name: duration
type: duration
- name: retries
type: number
- name: count
type: number
- name: error
type: string
queries:
notification_send_history:
columns:
id: string
notification_id: string
status: string
error: string
created_at: datetime
duration_millis: integer
retries: integer
count: integer
sql:
connection: connection://mc/mission-control
query: |
SELECT
id,
notification_id,
status,
error,
created_at,
duration_millis AS duration,
retries,
count
FROM notification_send_history
ORDER BY created_at DESC
LIMIT 100