Linting and comments.

This commit is contained in:
2020-12-23 20:55:50 +05:00
parent 08d5f36c36
commit 115e5d5051
5 changed files with 17 additions and 8 deletions

View File

@@ -2,8 +2,14 @@ package models
// RequestInfo is a parsed request information to throw into application's handler.
type RequestInfo struct {
// Application is a name of application. We should ask it's handler for metrics.
Application string
Metric string
// Metric is a metric name with parameters (e.g. requests{path='/',code=200} will
// be "requests/path:\//code:200").
Metric string
// Request type is a type of request. Currently known: "apps_list", "info", and "metrics".
// All other request types will produce HTTP 400 error.
RequestType string
APIVersion int
// APIVersion is a version of API requested.
APIVersion int
}