statemdl

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmailHits

func EmailHits()

EmailHits - update only email hits count for all services

func Init

func Init(name string)

Init - Init

func MongoHits

func MongoHits()

MongoHits - update only mongo hits count for all services

func MySQLHits

func MySQLHits()

MySQLHits - update only MySQL hits count for all services

func OTPHits

func OTPHits()

OTPHits - update only OTPs hits count for all services -- DPK [12-June-2018]

func OTPInCache

func OTPInCache(count int64)

OTPInCache - update only OTPs hits count for all services -- DPK [12-June-2018]

func SMSHits

func SMSHits()

SMSHits - update only sms hits count for all services

func StateHandler

func StateHandler(c *gin.Context)

StateHandler handler function for sta

func UpdateGlobalServiceCacheState

func UpdateGlobalServiceCacheState(cacheHit bool)

UpdateGlobalServiceCacheState - update only cache hits and miss count for all services

func UpdateQueryState

func UpdateQueryState(queryName string, name string, servingTime time.Duration, serviceError error, isRestricted, isRoleBased bool)

UpdateQueryState - update entry of service in state map

func UpdateServiceState

func UpdateServiceState(serviceName string, servingTime time.Duration, serviceError error, isRestricted, isRoleBased bool)

UpdateServiceState - update entry of service in state map

func UpdateServiceStateWithBranch

func UpdateServiceStateWithBranch(serviceName, branch string, servingTime time.Duration, serviceError error, isRestricted, isRoleBased bool)

UpdateServiceStateWithBranch - update entry of service from a branch in state map

Types

type Statistic

type Statistic struct {
	ServiceName  string        `json:"serviceName"`
	Name         string        `json:"name"`
	TotalHits    int64         `json:"totalHits"`
	MaxTime      time.Duration `json:"maxTime"`
	MinTime      time.Duration `json:"minTime"`
	TotalTime    time.Duration `json:"totalTime"`
	ErrorCount   int64         `json:"errorCount"`
	ErrorTime    *time.Time    `json:"errorTime"`
	LastError    string        `json:"lastError"`
	Description  string        `json:"description"`
	IsRestricted bool          `json:"isRestricted"`
	IsRoleBased  bool          `json:"isRoleBased"`
	Branch       string        `json:"branch"` // Only applicable to activity stats
}

Statistic - for app application

Jump to

Keyboard shortcuts

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