@midwayjs/prometheusClassesDataService版本:Next本页总览DataService Index ConstructorsconstructorPropertiesbInitmetricsprometheusConfigresponseHistogramresponseSummaryuserDefinedMetricsMethodsdefinegetDatagetUserincinitobservesetsetDiffConstructors constructornew DataService(): DataServiceProperties bInitbInit: boolean = falsemetricsmetrics: anyprometheusConfigprometheusConfig: anyresponseHistogramresponseHistogram: Histogram<any>responseSummaryresponseSummary: Summary<any>userDefinedMetricsuserDefinedMetrics: any = {}Methods definedefine(name: any, type: any, options: any): voidgetDatagetData(): Promise<string>getUsergetUser(method: any, status: any, path: any, time: any): Promise<void>incinc(name: any, labels: any, value?: number): Promise<void>initinit(): Promise<void>observeobserve(name: any, labels: any, value: any): Promise<void>setset(name: any, value: any): Promise<void>setDiffsetDiff(name: any, diff: any): Promise<void>