deployedAppMetrics

package
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL