Aller au contenu principal
Version: Next

DataService

Index

Constructors

constructor

Properties

bInit

bInit: boolean = false

metrics

metrics: any

prometheusConfig

prometheusConfig: any

responseHistogram

responseHistogram: Histogram<any>

responseSummary

responseSummary: Summary<any>

userDefinedMetrics

userDefinedMetrics: any = {}

Methods

define

  • define(name: any, type: any, options: any): void

getData

  • getData(): Promise<string>

getUser

  • getUser(method: any, status: any, path: any, time: any): Promise<void>

inc

  • inc(name: any, labels: any, value?: number): Promise<void>

init

  • init(): Promise<void>

observe

  • observe(name: any, labels: any, value: any): Promise<void>

set

  • set(name: any, value: any): Promise<void>

setDiff

  • setDiff(name: any, diff: any): Promise<void>