Documentation
¶
Index ¶
- func EmailHits()
- func Init(name string)
- func MongoHits()
- func MySQLHits()
- func OTPHits()
- func OTPInCache(count int64)
- func SMSHits()
- func StateHandler(c *gin.Context)
- func UpdateGlobalServiceCacheState(cacheHit bool)
- func UpdateQueryState(queryName string, name string, servingTime time.Duration, serviceError error, ...)
- func UpdateServiceState(serviceName string, servingTime time.Duration, serviceError error, ...)
- func UpdateServiceStateWithBranch(serviceName, branch string, servingTime time.Duration, serviceError error, ...)
- type Statistic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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
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
Click to show internal directories.
Click to hide internal directories.