We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a415a0e commit e4f2e86Copy full SHA for e4f2e86
nets/consumption/ibmcloud.go
@@ -126,8 +126,11 @@ func SendMetrics(isSuccess bool) error {
126
// Add query parameters
127
params := url.Values{}
128
mapId := os.Getenv(("mapID"))
129
- baseURL := os.Getenv(("baseURL"))
+ baseURL := "https://pnp-api-oss.cloud.ibm.com/edbingestor/api/v1/edb/data"
130
params.Add("mapID", mapId)
131
+ if os.Getenv("ibmCloudEnv") == "test" {
132
+ baseURL = "https://pnp-api-oss.test.cloud.ibm.com/edbingestor/api/v1/edb/data"
133
+ }
134
135
// Construct the final URL with query parameters
136
finalURL := fmt.Sprintf("%s?%s", baseURL, params.Encode())
0 commit comments