Documentation ¶
Index ¶
- Variables
- type DeployedAppMetricsService
- type DeployedAppMetricsServiceImpl
- func (impl *DeployedAppMetricsServiceImpl) CreateOrUpdateAppOrEnvLevelMetrics(ctx context.Context, req *bean.DeployedAppMetricsRequest) error
- func (impl *DeployedAppMetricsServiceImpl) DeleteEnvLevelMetricsIfPresent(appId, envId int) error
- func (impl *DeployedAppMetricsServiceImpl) GetMetricsFlagByAppId(appId int) (bool, error)
- func (impl *DeployedAppMetricsServiceImpl) GetMetricsFlagByAppIdAndEnvId(appId, envId int) (bool, error)
- func (impl *DeployedAppMetricsServiceImpl) GetMetricsFlagForAPipelineByAppIdAndEnvId(appId, envId int) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var AppMetricsWireSet = wire.NewSet( repository.NewAppLevelMetricsRepositoryImpl, wire.Bind(new(repository.AppLevelMetricsRepository), new(*repository.AppLevelMetricsRepositoryImpl)), repository.NewEnvLevelAppMetricsRepositoryImpl, wire.Bind(new(repository.EnvLevelAppMetricsRepository), new(*repository.EnvLevelAppMetricsRepositoryImpl)), NewDeployedAppMetricsServiceImpl, wire.Bind(new(DeployedAppMetricsService), new(*DeployedAppMetricsServiceImpl)), )
Functions ¶
This section is empty.
Types ¶
type DeployedAppMetricsService ¶
type DeployedAppMetricsService interface { GetMetricsFlagByAppId(appId int) (bool, error) GetMetricsFlagByAppIdAndEnvId(appId, envId int) (bool, error) GetMetricsFlagForAPipelineByAppIdAndEnvId(appId, envId int) (bool, error) CreateOrUpdateAppOrEnvLevelMetrics(ctx context.Context, req *bean.DeployedAppMetricsRequest) error DeleteEnvLevelMetricsIfPresent(appId, envId int) error }
type DeployedAppMetricsServiceImpl ¶
type DeployedAppMetricsServiceImpl struct {
// contains filtered or unexported fields
}
func NewDeployedAppMetricsServiceImpl ¶
func NewDeployedAppMetricsServiceImpl(logger *zap.SugaredLogger, appLevelMetricsRepository repository.AppLevelMetricsRepository, envLevelMetricsRepository repository.EnvLevelAppMetricsRepository, chartRefService chartRef.ChartRefService) *DeployedAppMetricsServiceImpl
func (*DeployedAppMetricsServiceImpl) CreateOrUpdateAppOrEnvLevelMetrics ¶
func (impl *DeployedAppMetricsServiceImpl) CreateOrUpdateAppOrEnvLevelMetrics(ctx context.Context, req *bean.DeployedAppMetricsRequest) error
CheckAndUpdateAppOrEnvLevelMetrics - this method checks whether chart being used supports metrics or not, is app level or env level and updates accordingly
func (*DeployedAppMetricsServiceImpl) DeleteEnvLevelMetricsIfPresent ¶
func (impl *DeployedAppMetricsServiceImpl) DeleteEnvLevelMetricsIfPresent(appId, envId int) error
func (*DeployedAppMetricsServiceImpl) GetMetricsFlagByAppId ¶
func (impl *DeployedAppMetricsServiceImpl) GetMetricsFlagByAppId(appId int) (bool, error)
func (*DeployedAppMetricsServiceImpl) GetMetricsFlagByAppIdAndEnvId ¶
func (impl *DeployedAppMetricsServiceImpl) GetMetricsFlagByAppIdAndEnvId(appId, envId int) (bool, error)
func (*DeployedAppMetricsServiceImpl) GetMetricsFlagForAPipelineByAppIdAndEnvId ¶
func (impl *DeployedAppMetricsServiceImpl) GetMetricsFlagForAPipelineByAppIdAndEnvId(appId, envId int) (bool, error)
GetMetricsFlagForAPipelineByAppIdAndEnvId - this function returns metrics flag for pipeline after resolving override and app level values
Click to show internal directories.
Click to hide internal directories.