mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd): add parameter insights to template insights (#8656)
This commit is contained in:
Generated
+16
@@ -963,6 +963,7 @@ export interface TemplateInsightsReport {
|
||||
readonly template_ids: string[]
|
||||
readonly active_users: number
|
||||
readonly apps_usage: TemplateAppUsage[]
|
||||
readonly parameters_usage: TemplateParameterUsage[]
|
||||
}
|
||||
|
||||
// From codersdk/insights.go
|
||||
@@ -979,6 +980,21 @@ export interface TemplateInsightsResponse {
|
||||
readonly interval_reports: TemplateInsightsIntervalReport[]
|
||||
}
|
||||
|
||||
// From codersdk/insights.go
|
||||
export interface TemplateParameterUsage {
|
||||
readonly template_ids: string[]
|
||||
readonly display_name: string
|
||||
readonly name: string
|
||||
readonly options?: TemplateVersionParameterOption[]
|
||||
readonly values: TemplateParameterValue[]
|
||||
}
|
||||
|
||||
// From codersdk/insights.go
|
||||
export interface TemplateParameterValue {
|
||||
readonly value: string
|
||||
readonly count: number
|
||||
}
|
||||
|
||||
// From codersdk/templates.go
|
||||
export interface TemplateRestartRequirement {
|
||||
readonly days_of_week: string[]
|
||||
|
||||
@@ -26,6 +26,7 @@ export const Empty: Story = {
|
||||
start_time: "",
|
||||
template_ids: [],
|
||||
apps_usage: [],
|
||||
parameters_usage: [],
|
||||
},
|
||||
},
|
||||
userLatency: {
|
||||
@@ -82,6 +83,7 @@ export const Loaded: Story = {
|
||||
seconds: 1020900,
|
||||
},
|
||||
],
|
||||
parameters_usage: [],
|
||||
},
|
||||
interval_reports: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user