Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromqlTpl ¶
type PromqlTpl struct { ScopeID uint `json:"scopeID"` ScopeName string `json:"scopeName"` ScopeShowName string `json:"scopeShowName"` ResourceID uint `json:"resourceID"` ResourceName string `json:"resourceName"` ResourceShowName string `json:"resourceShowName"` RuleID uint `json:"ruleID"` RuleName string `json:"ruleName"` RuleShowName string `json:"ruleShowName"` TenantID *uint `json:"tenantID"` Namespaced bool `json:"namespaced"` Expr string `json:"expr"` Unit string `json:"unit"` Labels gormdatatypes.JSONSlice `json:"labels"` }
type PromqlTplMapper ¶
func (*PromqlTplMapper) FindPromqlTpl ¶
func (m *PromqlTplMapper) FindPromqlTpl(scope, resource, rule string) (*PromqlTpl, error)
func (*PromqlTplMapper) FindPromqlTplWithoutScope ¶
func (m *PromqlTplMapper) FindPromqlTplWithoutScope(resource, rule string) (*PromqlTpl, error)
Click to show internal directories.
Click to hide internal directories.