feat: add stackdriver and json log options to coder server (#5682)

This commit is contained in:
Colin Adler
2023-01-12 20:08:23 -06:00
committed by GitHub
parent 1229fda1a6
commit dcab87358e
12 changed files with 461 additions and 7 deletions

View File

@ -45,6 +45,7 @@ type DeploymentConfig struct {
UpdateCheck *DeploymentConfigField[bool] `json:"update_check" typescript:",notnull"`
MaxTokenLifetime *DeploymentConfigField[time.Duration] `json:"max_token_lifetime" typescript:",notnull"`
Swagger *SwaggerConfig `json:"swagger" typescript:",notnull"`
Logging *LoggingConfig `json:"logging" typescript:",notnull"`
}
type DERP struct {
@ -155,6 +156,12 @@ type SwaggerConfig struct {
Enable *DeploymentConfigField[bool] `json:"enable" typescript:",notnull"`
}
type LoggingConfig struct {
Human *DeploymentConfigField[string] `json:"human" typescript:",notnull"`
JSON *DeploymentConfigField[string] `json:"json" typescript:",notnull"`
Stackdriver *DeploymentConfigField[string] `json:"stackdriver" typescript:",notnull"`
}
type Flaggable interface {
string | time.Duration | bool | int | []string | []GitAuthConfig
}