mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add dismissed property to the healthcheck section (#10940)
This commit is contained in:
Generated
+5
@@ -2100,6 +2100,7 @@ export interface HealthcheckAccessURLReport {
|
||||
readonly healthy: boolean;
|
||||
readonly severity: HealthSeverity;
|
||||
readonly warnings: string[];
|
||||
readonly dismissed: boolean;
|
||||
readonly access_url: string;
|
||||
readonly reachable: boolean;
|
||||
readonly status_code: number;
|
||||
@@ -2112,6 +2113,7 @@ export interface HealthcheckDatabaseReport {
|
||||
readonly healthy: boolean;
|
||||
readonly severity: HealthSeverity;
|
||||
readonly warnings: string[];
|
||||
readonly dismissed: boolean;
|
||||
readonly reachable: boolean;
|
||||
readonly latency: string;
|
||||
readonly latency_ms: number;
|
||||
@@ -2138,6 +2140,7 @@ export interface HealthcheckWebsocketReport {
|
||||
readonly healthy: boolean;
|
||||
readonly severity: HealthSeverity;
|
||||
readonly warnings: string[];
|
||||
readonly dismissed: boolean;
|
||||
readonly body: string;
|
||||
readonly code: number;
|
||||
readonly error?: string;
|
||||
@@ -2148,6 +2151,7 @@ export interface HealthcheckWorkspaceProxyReport {
|
||||
readonly healthy: boolean;
|
||||
readonly severity: HealthSeverity;
|
||||
readonly warnings: string[];
|
||||
readonly dismissed: boolean;
|
||||
readonly error?: string;
|
||||
readonly workspace_proxies: RegionsResponse<WorkspaceProxy>;
|
||||
}
|
||||
@@ -2246,6 +2250,7 @@ export interface DerphealthReport {
|
||||
// This is likely an enum in an external package ("github.com/coder/coder/v2/coderd/healthcheck/health.Severity")
|
||||
readonly severity: string;
|
||||
readonly warnings: string[];
|
||||
readonly dismissed: boolean;
|
||||
readonly regions: Record<number, DerphealthRegionReport>;
|
||||
// Named type "tailscale.com/net/netcheck.Report" unknown, using "any"
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- External type
|
||||
|
||||
@@ -2404,6 +2404,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
|
||||
healthy: true,
|
||||
severity: "ok",
|
||||
warnings: [],
|
||||
dismissed: false,
|
||||
regions: {
|
||||
"999": {
|
||||
healthy: true,
|
||||
@@ -2806,6 +2807,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
|
||||
healthy: true,
|
||||
severity: "ok",
|
||||
warnings: [],
|
||||
dismissed: false,
|
||||
access_url: "https://dev.coder.com",
|
||||
reachable: true,
|
||||
status_code: 200,
|
||||
@@ -2815,6 +2817,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
|
||||
healthy: true,
|
||||
severity: "ok",
|
||||
warnings: [],
|
||||
dismissed: false,
|
||||
body: "",
|
||||
code: 101,
|
||||
},
|
||||
@@ -2822,6 +2825,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
|
||||
healthy: true,
|
||||
severity: "ok",
|
||||
warnings: [],
|
||||
dismissed: false,
|
||||
reachable: true,
|
||||
latency: "92570",
|
||||
latency_ms: 92570,
|
||||
@@ -2831,6 +2835,7 @@ export const MockHealth: TypesGen.HealthcheckReport = {
|
||||
healthy: true,
|
||||
severity: "ok",
|
||||
warnings: [],
|
||||
dismissed: false,
|
||||
workspace_proxies: {
|
||||
regions: [],
|
||||
},
|
||||
@@ -2857,6 +2862,7 @@ export const DeploymentHealthUnhealthy: TypesGen.HealthcheckReport = {
|
||||
healthy: true,
|
||||
severity: "ok",
|
||||
warnings: [],
|
||||
dismissed: false,
|
||||
access_url: "",
|
||||
healthz_response: "",
|
||||
reachable: true,
|
||||
@@ -2866,6 +2872,7 @@ export const DeploymentHealthUnhealthy: TypesGen.HealthcheckReport = {
|
||||
healthy: false,
|
||||
severity: "ok",
|
||||
warnings: [],
|
||||
dismissed: false,
|
||||
latency: "",
|
||||
latency_ms: 0,
|
||||
reachable: true,
|
||||
@@ -2875,6 +2882,7 @@ export const DeploymentHealthUnhealthy: TypesGen.HealthcheckReport = {
|
||||
healthy: false,
|
||||
severity: "ok",
|
||||
warnings: [],
|
||||
dismissed: false,
|
||||
regions: [],
|
||||
netcheck_logs: [],
|
||||
},
|
||||
@@ -2882,6 +2890,7 @@ export const DeploymentHealthUnhealthy: TypesGen.HealthcheckReport = {
|
||||
healthy: false,
|
||||
severity: "ok",
|
||||
warnings: [],
|
||||
dismissed: false,
|
||||
body: "",
|
||||
code: 0,
|
||||
},
|
||||
@@ -2890,6 +2899,7 @@ export const DeploymentHealthUnhealthy: TypesGen.HealthcheckReport = {
|
||||
error: "some error",
|
||||
severity: "error",
|
||||
warnings: [],
|
||||
dismissed: false,
|
||||
workspace_proxies: {
|
||||
regions: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user