Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogMetricConfig ¶
type LogMetricConfig struct { ID int64 `json:"id"` OrgID int64 `json:"org_id"` Scope string `json:"scope"` ScopeID string `json:"Scope_id"` Name string `json:"name"` Metric string `json:"metric"` Filters []*Tag `json:"filters"` Processors []*ProcessorConfig `json:"processors"` Enable bool `json:"enable"` CreateTime int64 `json:"create_time"` UpdateTime int64 `json:"update_time"` }
LogMetricConfig .
func (*LogMetricConfig) FromModel ¶
func (c *LogMetricConfig) FromModel(m *db.LogMetricConfig) *LogMetricConfig
FromModel .
type LogMetricConfigSimple ¶
type LogMetricConfigSimple struct { ID int64 `json:"id"` OrgID int64 `json:"org_id"` Scope string `json:"scope"` ScopeID string `json:"scope_id"` Name string `json:"name"` Types string `json:"types"` Metric string `json:"metric"` Enable bool `json:"enable"` CreateTime int64 `json:"create_time"` UpdateTime int64 `json:"update_time"` }
LogMetricConfigSimple .
func (*LogMetricConfigSimple) FromModel ¶
func (c *LogMetricConfigSimple) FromModel(m *db.LogMetricConfig) *LogMetricConfigSimple
FromModel .
type ProcessorConfig ¶
type ProcessorConfig struct { Type string `json:"type"` Config map[string]interface{} `json:"config"` }
ProcessorConfig .
Source Files ¶
Click to show internal directories.
Click to hide internal directories.