Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/cmd/auditlog/auditlogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type AuditLog struct {
Event string `header:"event" json:"type"`
RemoteIP string `header:"remote_ip" json:"remote_ip"`
Location string `header:"location" json:"location"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`

orig *ps.AuditLog
}
Expand Down
10 changes: 5 additions & 5 deletions internal/cmd/backup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ type Backup struct {
State string `header:"state" json:"state"`
Size int64 `header:"size" json:"size"`
Protected bool `header:"protected" json:"protected"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
StartedAt int64 `header:"started_at,timestamp(ms|utc|human)" json:"started_at"`
ExpiresAt int64 `header:"expires_at,timestamp(ms|utc|human)" json:"expires_at"`
CompletedAt int64 `header:"completed_at,timestamp(ms|utc|human)" json:"completed_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`
StartedAt int64 `header:"started_at,timestamp(ms|utc|RFC3339)" json:"started_at"`
ExpiresAt int64 `header:"expires_at,timestamp(ms|utc|RFC3339)" json:"expires_at"`
CompletedAt int64 `header:"completed_at,timestamp(ms|utc|RFC3339)" json:"completed_at"`

orig *ps.Backup
}
Expand Down
8 changes: 4 additions & 4 deletions internal/cmd/backup/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ type BackupPolicy struct {
ScheduleDay string `header:"schedule_day" json:"schedule_day"`
ScheduleWeek string `header:"schedule_week" json:"schedule_week"`
Required bool `header:"required" json:"required"`
LastRanAt *int64 `header:"last_ran_at,timestamp(ms|utc|human)" json:"last_ran_at"`
NextRunAt *int64 `header:"next_run_at,timestamp(ms|utc|human)" json:"next_run_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
LastRanAt *int64 `header:"last_ran_at,timestamp(ms|utc|RFC3339)" json:"last_ran_at"`
NextRunAt *int64 `header:"next_run_at,timestamp(ms|utc|RFC3339)" json:"next_run_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`

orig *ps.BackupPolicy
}
Expand Down
8 changes: 4 additions & 4 deletions internal/cmd/branch/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ type DatabaseBranch struct {
Production bool `header:"production" json:"production"`
SafeMigrations bool `header:"safe migrations" json:"safe_migrations"`
Ready bool `header:"ready" json:"ready"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`

orig *ps.DatabaseBranch
}
Expand Down Expand Up @@ -144,8 +144,8 @@ type PostgresBranch struct {
Region string `header:"region" json:"region"`
Production bool `header:"production" json:"production"`
Ready bool `header:"ready" json:"ready"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`
orig *ps.PostgresBranch
}

Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/branch/query_patterns.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ type queryPatternsReport struct {
ID string `header:"id" json:"id"`
State string `header:"state" json:"state"`
Actor string `header:"actor" json:"actor"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
FinishedAt *int64 `header:"finished_at,timestamp(ms|utc|human)" json:"finished_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
FinishedAt *int64 `header:"finished_at,timestamp(ms|utc|RFC3339)" json:"finished_at"`

orig *ps.QueryPatternsReport
}
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/branch/resize.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ type postgresBranchResize struct {
Replicas int `header:"replicas" json:"replicas"`
Parameters string `header:"parameters" json:"parameters"`

CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
CompletedAt *int64 `header:"completed_at,timestamp(ms|utc|human)" json:"completed_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
CompletedAt *int64 `header:"completed_at,timestamp(ms|utc|RFC3339)" json:"completed_at"`

orig *ps.PostgresBranchClusterResizeRequest
}
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/branch/vtgate.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ type branchVTGateResize struct {
VTGateMaxCount *int `header:"vtgate_max_count,n/a" json:"vtgate_max_count"`
VTGateAutoscaling bool `header:"vtgate_autoscaling" json:"vtgate_autoscaling"`
VTGateTargetCPUUtilization *int `header:"vtgate_target_cpu,n/a" json:"vtgate_target_cpu_utilization"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
StartedAt *int64 `header:"started_at,timestamp(ms|utc|human)" json:"started_at"`
CompletedAt *int64 `header:"completed_at,timestamp(ms|utc|human)" json:"completed_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
StartedAt *int64 `header:"started_at,timestamp(ms|utc|RFC3339)" json:"started_at"`
CompletedAt *int64 `header:"completed_at,timestamp(ms|utc|RFC3339)" json:"completed_at"`

orig *ps.BranchResizeRequest
}
Expand Down
8 changes: 4 additions & 4 deletions internal/cmd/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ type Databases []*databaseListItem
type databaseListItem struct {
Name string `header:"name" json:"name"`
Kind string `header:"kind" json:"kind"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`

orig *ps.Database
}
Expand Down Expand Up @@ -78,8 +78,8 @@ type Database struct {
InsightsEnabled bool `header:"insights_enabled" json:"insights_enabled"`
ProductionBranchWebConsole bool `header:"production_branch_web_console" json:"production_branch_web_console"`
MultipleAdminsRequiredForDeletion bool `header:"multiple_admins_required_for_deletion" json:"multiple_admins_required_for_deletion"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`

orig *ps.Database
}
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/database/ip_restriction.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ type IPRestrictionEntry struct {
CIDRs string `header:"cidrs" json:"cidrs"`
Description string `header:"description" json:"description"`
Actor string `header:"actor" json:"actor"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`

orig *ps.PostgresCIDR
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type DedicatedReadReplica struct {
Size string `header:"size" json:"size"`
Replicas int `header:"replicas" json:"replicas"`
Ready bool `header:"ready" json:"ready"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`

orig *ps.PostgresDedicatedReadReplica
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/insights/agent_runs.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type AgentRunRow struct {
State string `header:"state" json:"state"`
Outcome string `header:"outcome" json:"outcome"`
Title string `header:"title" json:"title"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
}

// AgentRunsCmd lists a branch's Insights Agent runs.
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/insights/agent_schedules.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type AgentScheduleRow struct {
Day string `header:"day" json:"day"`
Time string `header:"time" json:"schedule_time"`
TimeZone string `header:"time_zone" json:"time_zone"`
NextRunAt *int64 `header:"next_run_at,timestamp(ms|utc|human)" json:"next_run_at"`
NextRunAt *int64 `header:"next_run_at,timestamp(ms|utc|RFC3339)" json:"next_run_at"`
}

// AgentSchedulesCmd lists a branch's Insights Agent schedules.
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/keyspace/keyspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ type Keyspace struct {
PendingResize bool `header:"pending_resize" json:"resize_pending"`

ClusterSize string `header:"cluster_size" json:"cluster_name"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`

orig *ps.Keyspace
}
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/keyspace/resize.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ type KeyspaceResizeRequest struct {
Replicas uint `header:"replicas" json:"replicas"`
ExtraReplicas uint `header:"extra_replicas" json:"extra_replicas"`

CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
StartedAt *int64 `header:"started_at,timestamp(ms|utc|human)" json:"started_at"`
CompletedAt *int64 `header:"completed_at,timestamp(ms|utc|human)" json:"completed_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
StartedAt *int64 `header:"started_at,timestamp(ms|utc|RFC3339)" json:"started_at"`
CompletedAt *int64 `header:"completed_at,timestamp(ms|utc|RFC3339)" json:"completed_at"`

orig *ps.KeyspaceResizeRequest
}
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/keyspace/rollout_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ type ShardRollout struct {
Name string `header:"shard" json:"name"`
State string `header:"state" json:"state"`

LastRolloutStartedAt *int64 `header:"started,timestamp(ms|utc|human)" json:"last_rollout_started_at"`
LastRolloutFinishedAt *int64 `header:"finished,timestamp(ms|utc|human)" json:"last_rollout_finished_at"`
LastRolloutStartedAt *int64 `header:"started,timestamp(ms|utc|RFC3339)" json:"last_rollout_started_at"`
LastRolloutFinishedAt *int64 `header:"finished,timestamp(ms|utc|RFC3339)" json:"last_rollout_finished_at"`

orig *ps.ShardRollout
}
Expand Down
12 changes: 6 additions & 6 deletions internal/cmd/maintenance/maintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ type MaintenanceSchedule struct {
Week string `header:"week" json:"week"`
HourUTC int `header:"hour_utc" json:"hour_utc"`
DurationHours int `header:"duration_hours" json:"duration_hours"`
NextWindow int64 `header:"next_window,timestamp(ms|utc|human)" json:"next_window"`
LastWindow int64 `header:"last_window,timestamp(ms|utc|human)" json:"last_window"`
NextWindow int64 `header:"next_window,timestamp(ms|utc|RFC3339)" json:"next_window"`
LastWindow int64 `header:"last_window,timestamp(ms|utc|RFC3339)" json:"last_window"`
PendingVitessVersion string `header:"pending_vitess" json:"pending_vitess"`
PendingMySQLVersion string `header:"pending_mysql" json:"pending_mysql"`
ExpiresAt *int64 `header:"expires_at,timestamp(ms|utc|human)" json:"expires_at"`
DeadlineAt *int64 `header:"deadline_at,timestamp(ms|utc|human)" json:"deadline_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
ExpiresAt *int64 `header:"expires_at,timestamp(ms|utc|RFC3339)" json:"expires_at"`
DeadlineAt *int64 `header:"deadline_at,timestamp(ms|utc|RFC3339)" json:"deadline_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`

orig *ps.MaintenanceSchedule
}
Expand Down
8 changes: 4 additions & 4 deletions internal/cmd/maintenance/windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ func WindowsCmd(ch *cmdutil.Helper) *cobra.Command {
// MaintenanceWindow is the human/JSON/CSV view of a maintenance window.
type MaintenanceWindow struct {
ID string `header:"id" json:"id"`
StartedAt *int64 `header:"started_at,timestamp(ms|utc|human)" json:"started_at"`
FinishedAt *int64 `header:"finished_at,timestamp(ms|utc|human)" json:"finished_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
StartedAt *int64 `header:"started_at,timestamp(ms|utc|RFC3339)" json:"started_at"`
FinishedAt *int64 `header:"finished_at,timestamp(ms|utc|RFC3339)" json:"finished_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`

orig *ps.MaintenanceWindow
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/oidctrust/oidctrust.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type OIDCTrust struct {
MaxTTL int `header:"max ttl" json:"max_ttl_seconds"`
Conditions string `header:"conditions" json:"conditions"`
Accesses string `header:"accesses" json:"accesses"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`

orig *ps.OIDCTrust
}
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/org/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func OrgCmd(ch *cmdutil.Helper) *cobra.Command {
// organization returns a table-serializable database model.
type organization struct {
Name string `header:"name" json:"name"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`
Current bool `header:"current" json:"current"`
}

Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/pgbouncer/pgbouncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ type PgBouncer struct {
Size string `header:"size" json:"size"`
ReplicasPerCell int `header:"replicas_per_cell" json:"replicas_per_cell"`
Actor string `header:"actor" json:"actor"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`

orig *ps.PostgresBouncer
}
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/pgbouncer/resize.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ type PgBouncerResize struct {
Target string `header:"target" json:"target"`
ReplicasPerCell int `header:"replicas_per_cell" json:"replicas_per_cell"`
Actor string `header:"actor" json:"actor"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`

orig *ps.PostgresBouncerResizeRequest
}
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/pgbouncer/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ type PgBouncerRestart struct {
State string `header:"state" json:"state"`
Error string `header:"error" json:"error"`
Actor string `header:"actor" json:"actor"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
CompletedAt *int64 `header:"completed_at,timestamp(ms|utc|human)" json:"completed_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
CompletedAt *int64 `header:"completed_at,timestamp(ms|utc|RFC3339)" json:"completed_at"`

orig *ps.PostgresBouncerRestart
}
Expand Down
16 changes: 8 additions & 8 deletions internal/cmd/token/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ type ServiceToken struct {
ID string `header:"id" json:"id"`
Name string `header:"name" json:"name"`
CIDRs string `header:"cidrs"`
LastUsedAt int64 `header:"last_used_at,timestamp(ms|utc|human)" json:"last_used_at"`
LastUsedAt int64 `header:"last_used_at,timestamp(ms|utc|RFC3339)" json:"last_used_at"`
LastUsedIP string `header:"last_used_ip" json:"last_used_ip"`
LastUsedOrganization string `header:"last_used_organization" json:"last_used_organization"`
ExpiresAt int64 `header:"expires_at,timestamp(ms|utc|human)" json:"expires_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
ExpiresAt int64 `header:"expires_at,timestamp(ms|utc|RFC3339)" json:"expires_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`

orig *ps.ServiceToken
}
Expand Down Expand Up @@ -116,11 +116,11 @@ type ServiceTokenDetails struct {
ID string `header:"id"`
Name string `header:"name"`
CIDRs string `header:"cidrs"`
LastUsedAt int64 `header:"last_used_at,timestamp(ms|utc|human)"`
LastUsedAt int64 `header:"last_used_at,timestamp(ms|utc|RFC3339)"`
LastUsedIP string `header:"last_used_ip"`
LastUsedOrganization string `header:"last_used_organization"`
ExpiresAt int64 `header:"expires_at,timestamp(ms|utc|human)"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)"`
ExpiresAt int64 `header:"expires_at,timestamp(ms|utc|RFC3339)"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)"`

orig *ps.ServiceToken
}
Expand Down Expand Up @@ -169,8 +169,8 @@ type ServiceTokenWithSecret struct {
Name string `header:"name" json:"name"`
CIDRs string `header:"cidrs"`
Token string `header:"token" json:"token"`
ExpiresAt int64 `header:"expires_at,timestamp(ms|utc|human)" json:"expires_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
ExpiresAt int64 `header:"expires_at,timestamp(ms|utc|RFC3339)" json:"expires_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`

orig *ps.ServiceToken
}
Expand Down
8 changes: 4 additions & 4 deletions internal/cmd/trafficcontrol/traffic_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ type TrafficBudget struct {
Burst string `header:"burst" json:"burst"`
Concurrency string `header:"concurrency" json:"concurrency"`
WarningThreshold string `header:"warning_threshold" json:"warning_threshold"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`

orig *ps.TrafficBudget
}
Expand Down Expand Up @@ -102,8 +102,8 @@ type TrafficRuleDisplay struct {
Fingerprint string `header:"fingerprint" json:"fingerprint"`
Keyspace string `header:"keyspace" json:"keyspace"`
Tags string `header:"tags" json:"tags"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|RFC3339)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|RFC3339)" json:"updated_at"`

orig *ps.TrafficRule
}
Expand Down
Loading