fix
This commit is contained in:
parent
71d5fa2e25
commit
dce65faffd
3
main.go
3
main.go
@ -14,9 +14,8 @@ 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.In(loc),
|
Timestamp: timestamp.Add(time.Hour * 3),
|
||||||
Service: "monitoring",
|
Service: "monitoring",
|
||||||
Environment: os.Getenv("STAGE"),
|
Environment: os.Getenv("STAGE"),
|
||||||
Endpoint: endpoint,
|
Endpoint: endpoint,
|
||||||
|
Loading…
Reference in New Issue
Block a user