339 lines
6.4 KiB
Go
339 lines
6.4 KiB
Go
package model
|
|
|
|
import (
|
|
basemodel "go.signoz.io/signoz/pkg/query-service/model"
|
|
)
|
|
|
|
const SSO = "SSO"
|
|
const Basic = "BASIC_PLAN"
|
|
const Pro = "PRO_PLAN"
|
|
const Enterprise = "ENTERPRISE_PLAN"
|
|
const DisableUpsell = "DISABLE_UPSELL"
|
|
const Onboarding = "ONBOARDING"
|
|
const ChatSupport = "CHAT_SUPPORT"
|
|
const Gateway = "GATEWAY"
|
|
|
|
var BasicPlan = basemodel.FeatureSet{
|
|
basemodel.Feature{
|
|
Name: SSO,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.OSS,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: DisableUpsell,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.SmartTraceDetail,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.CustomMetricsFunction,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.QueryBuilderPanels,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.QueryBuilderAlerts,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelSlack,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelWebhook,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelPagerduty,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelOpsgenie,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelEmail,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelMsTeams,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.UseSpanMetrics,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: Gateway,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
}
|
|
|
|
var ProPlan = basemodel.FeatureSet{
|
|
basemodel.Feature{
|
|
Name: SSO,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.OSS,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.SmartTraceDetail,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.CustomMetricsFunction,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.QueryBuilderPanels,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.QueryBuilderAlerts,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelSlack,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelWebhook,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelPagerduty,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelOpsgenie,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelEmail,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelMsTeams,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.UseSpanMetrics,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: Gateway,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
}
|
|
|
|
var EnterprisePlan = basemodel.FeatureSet{
|
|
basemodel.Feature{
|
|
Name: SSO,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.OSS,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.SmartTraceDetail,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.CustomMetricsFunction,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.QueryBuilderPanels,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.QueryBuilderAlerts,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelSlack,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelWebhook,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelPagerduty,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelOpsgenie,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelEmail,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.AlertChannelMsTeams,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: basemodel.UseSpanMetrics,
|
|
Active: false,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: Onboarding,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: ChatSupport,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
basemodel.Feature{
|
|
Name: Gateway,
|
|
Active: true,
|
|
Usage: 0,
|
|
UsageLimit: -1,
|
|
Route: "",
|
|
},
|
|
}
|