mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-23 02:17:11 +00:00
31 lines
659 B
Go
31 lines
659 B
Go
package model
|
|
|
|
type FeatureSet []Feature
|
|
type Feature struct {
|
|
Name string `db:"name" json:"name"`
|
|
Active bool `db:"active" json:"active"`
|
|
Usage int64 `db:"usage" json:"usage"`
|
|
UsageLimit int64 `db:"usage_limit" json:"usage_limit"`
|
|
Route string `db:"route" json:"route"`
|
|
}
|
|
|
|
const UseSpanMetrics = "USE_SPAN_METRICS"
|
|
const AnomalyDetection = "ANOMALY_DETECTION"
|
|
|
|
var BasicPlan = FeatureSet{
|
|
Feature{
|
|
Name: UseSpanMetrics,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
Feature{
|
|
Name: AnomalyDetection,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
}
|