Skip to content

Commit

Permalink
changed domain api for mysql metrics. (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
kochetovd authored Dec 11, 2024
1 parent f0bb56f commit 48a2854
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions repeater/releemConfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (repeater ReleemConfigurationsRepeater) ProcessMetrics(context models.Metri

if Mode.Name == "TaskSet" && Mode.Type == "queries_optimization" {
api_domain = "https://api.queries." + subdomain + "releem.com/v2/"
} else if Mode.Name == "Metrics" && Mode.Type == "QueryOptimization" {
} else if Mode.Name == "Metrics" {
api_domain = "https://api.queries." + subdomain + "releem.com/v2/"
} else {
api_domain = "https://api." + subdomain + "releem.com/v2/"
Expand All @@ -61,7 +61,11 @@ func (repeater ReleemConfigurationsRepeater) ProcessMetrics(context models.Metri
api_domain = api_domain + "mysql"
}
} else if Mode.Name == "Metrics" {
api_domain = api_domain + "metrics"
if Mode.Type == "QueryOptimization" {
api_domain = api_domain + "queries/metrics"
} else {
api_domain = api_domain + "mysql/metrics"
}
} else if Mode.Name == "Event" {
api_domain = api_domain + "event/" + Mode.Type
} else if Mode.Name == "TaskGet" {
Expand Down

0 comments on commit 48a2854

Please sign in to comment.