Skip to content

Commit

Permalink
Correct Observability Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyingjie committed Mar 24, 2021
1 parent d68fd83 commit b90706e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/object/meshcontroller/spec/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ type (
ObservabilityOutputServer struct {
Enabled bool `yaml:"enabled" jsonschema:"required"`
BootstrapServer string `yaml:"bootstrapServer" jsonschema:"required"`
Timeout int `yaml:"timeout" jsonschema:"required"`
Timeout string `yaml:"timeout" jsonschema:"required"`
}

// ObservabilityTracings is the tracings of observability.
ObservabilityTracings struct {
Enabled bool `yaml:"enabled" jsonschema:"required"`
SampleByQPS int `yaml:"sampleByQPS" jsonschema:"required"`
SampleByQPS string `yaml:"sampleByQPS" jsonschema:"required"`
Output ObservabilityTracingsOutputConfig `yaml:"output" jsonschema:"required"`

Request ObservabilityTracingsDetail `yaml:"request" jsonschema:"required"`
Expand All @@ -132,12 +132,12 @@ type (

ObservabilityTracingsOutputConfig struct {
Enabled bool `yaml:"enabled" jsonschema:"required"`
ReportThread int `yaml:"reportThread" jsonschema:"required"`
ReportThread string `yaml:"reportThread" jsonschema:"required"`
Topic string `yaml:"topic" jsonschema:"required"`
MessageMaxBytes int `yaml:"messageMaxBytes" jsonschema:"required"`
MessageMaxSpans int `yaml:"messageMaxSpans" jsonschema:"required"`
QueuedMaxSpans int `yaml:"queuedMaxSpans" jsonschema:"required"`
QueuedMaxSize int `yaml:"queuedMaxSize" jsonschema:"required"`
MessageMaxBytes string `yaml:"messageMaxBytes" jsonschema:"required"`
MessageMaxSpans string `yaml:"messageMaxSpans" jsonschema:"required"`
QueuedMaxSpans string `yaml:"queuedMaxSpans" jsonschema:"required"`
QueuedMaxSize string `yaml:"queuedMaxSize" jsonschema:"required"`
}
// ObservabilityTracingsDetail is the tracing detail of observability.
ObservabilityTracingsDetail struct {
Expand All @@ -163,7 +163,7 @@ type (
// ObservabilityMetricsDetail is the metrics detail of observability.
ObservabilityMetricsDetail struct {
Enabled bool `yaml:"enabled" jsonschema:"required"`
Interval int `yaml:"interval" jsonschema:"required"`
Interval string `yaml:"interval" jsonschema:"required"`
Topic string `yaml:"topic" jsonschema:"required"`
}

Expand Down

0 comments on commit b90706e

Please sign in to comment.