Logo
Explore Help
Register Sign In
apps/metricator
2
0
Fork 0
You've already forked metricator
Code Issues 5 Pull Requests Packages Projects Releases Wiki Activity
metricator/internal/models/request_info.go

10 lines
205 B
Go
Raw Normal View History

Metrics data is stored as structure, HTTP requests logging, got rid of context. Metrics data now stored as structures. This is a first step for autodiscovery helping for NMSes. HTTP requests now logged. Got rid of context.Context for getting metric data in applications because context.Context is useless here.
2020-12-23 13:27:17 +05:00
package models
// RequestInfo is a parsed request information to throw into application's handler.
type RequestInfo struct {
Application string
Metric string
RequestType string
API version checking and linting.
2020-12-23 19:31:09 +05:00
APIVersion int
Metrics data is stored as structure, HTTP requests logging, got rid of context. Metrics data now stored as structures. This is a first step for autodiscovery helping for NMSes. HTTP requests now logged. Got rid of context.Context for getting metric data in applications because context.Context is useless here.
2020-12-23 13:27:17 +05:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 40ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API