Skip to main content

DateTime

The datetime column type displays timestamps with human-readable formatting.

FieldDescriptionScheme
name*

Column name (must be a valid SQL identifier)

string

type*

Data type that controls formatting and visualization

string | number | boolean | datetime | duration | health | status | gauge | bytes | decimal | millicore | config_item | labels | badge

badge

Badge styling configuration. Use color.auto for heuristic coloring or color.map for explicit value-to-color mappings.

BadgeConfig

card.position

Where this column appears in the card layout: title, subtitle, deck, body, footer, or headerRight

string

card.useForAccent

Set to true to use this column's value as the accent color for the card (typically used on health or status columns)

boolean

description

Human-readable help text for the column

string

filter

Enable server-side filtering for this column. Set filter.type: multiselect to let users include or exclude values without re-running the query.

object

hidden

Hide the column from the table view (default: false)

boolean

icon

CEL expression that resolves to an icon name per row (e.g. row.type)

string

primaryKey

Whether this column is part of the primary key (default: false). At least one column must be marked as primary key.

boolean

unit

Unit label appended to the displayed value (e.g. %, MB, pods)

string

url

Link to a config, another view, or a custom URL using CEL / Go templates

ColumnURL

width

Display width, e.g. 150px or a flex weight like 2

string

Example

cronjobs.yaml
apiVersion: mission-control.flanksource.com/v1
kind: View
metadata:
name: cronjobs
namespace: mc
spec:
display:
title: CronJobs
icon: cronjob
sidebar: true
columns:
- name: id
type: string
primaryKey: true
hidden: true
- name: name
type: config_item
- name: namespace
type: string
- name: status
type: status
badge:
color:
auto: true
filter:
type: multiselect
- name: health
type: health
hidden: true
filter:
type: multiselect
- name: created
type: datetime
queries:
cronjobs:
configs:
search: "@order=name"
types:
- Kubernetes::CronJob
mapping:
created: row.created_at
namespace: row.tags.namespace