Compare commits
No commits in common. "028db059fe2cca50edb1308c623293ddb3130f87" and "880b6313a9a14586732dd31363fa2cd851f242f9" have entirely different histories.
028db059fe
...
880b6313a9
3
main.go
3
main.go
@ -14,8 +14,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func writeMetric(timestamp time.Time, endpoint string, statusCode int, responseTime int, method string) {
|
func writeMetric(timestamp time.Time, endpoint string, statusCode int, responseTime int, method string) {
|
||||||
|
loc, _ := time.LoadLocation("Europe/Moscow")
|
||||||
err := endpoints.AddEndpointMetric(endpoints.EndpointMetric{
|
err := endpoints.AddEndpointMetric(endpoints.EndpointMetric{
|
||||||
Timestamp: timestamp.Add(time.Hour * 3),
|
Timestamp: timestamp.In(loc),
|
||||||
Service: "monitoring",
|
Service: "monitoring",
|
||||||
Environment: os.Getenv("STAGE"),
|
Environment: os.Getenv("STAGE"),
|
||||||
Endpoint: endpoint,
|
Endpoint: endpoint,
|
||||||
|
Loading…
Reference in New Issue
Block a user