mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: rename flag to disable template insights (#21329)
Because this affects more than just the template insights page (specifically it also affects the deployment stats endpoint which is shown on bottom bar and Prometheus), the group is being renamed generically to just "stats collection". In the future if we need to affect the other stats we can put those options here. Then, because this change only affects a portion of stats, specifically usage stats like connection and application time, bytes sent, etc, add a new sub-group called "usage stats". Then finally add back the "enable" flag. This also gives us a place to one day place an "anonymize" flag if we need to go that route.
This commit is contained in:
Generated
+11
-6
@@ -1783,7 +1783,7 @@ export interface DeploymentValues {
|
||||
readonly workspace_prebuilds?: PrebuildsConfig;
|
||||
readonly hide_ai_tasks?: boolean;
|
||||
readonly ai?: AIConfig;
|
||||
readonly template_insights?: TemplateInsightsConfig;
|
||||
readonly stats_collection?: StatsCollectionConfig;
|
||||
readonly config?: string;
|
||||
readonly write_config?: boolean;
|
||||
/**
|
||||
@@ -4593,6 +4593,11 @@ export interface SlimRole {
|
||||
readonly organization_id?: string;
|
||||
}
|
||||
|
||||
// From codersdk/deployment.go
|
||||
export interface StatsCollectionConfig {
|
||||
readonly usage_stats: UsageStatsConfig;
|
||||
}
|
||||
|
||||
// From codersdk/client.go
|
||||
/**
|
||||
* SubdomainAppSessionTokenCookie is the name of the cookie that stores an
|
||||
@@ -5105,11 +5110,6 @@ export interface TemplateGroup extends Group {
|
||||
readonly role: TemplateRole;
|
||||
}
|
||||
|
||||
// From codersdk/deployment.go
|
||||
export interface TemplateInsightsConfig {
|
||||
readonly enable: boolean;
|
||||
}
|
||||
|
||||
// From codersdk/insights.go
|
||||
/**
|
||||
* TemplateInsightsIntervalReport is the report from the template insights
|
||||
@@ -5677,6 +5677,11 @@ export interface UsagePeriod {
|
||||
readonly end: string;
|
||||
}
|
||||
|
||||
// From codersdk/deployment.go
|
||||
export interface UsageStatsConfig {
|
||||
readonly enable: boolean;
|
||||
}
|
||||
|
||||
// From codersdk/users.go
|
||||
/**
|
||||
* User represents a user in Coder.
|
||||
|
||||
Reference in New Issue
Block a user