Title: fix: New Relic integration commands have incorrect parameters and endpoints · Issue #191 · cortexapps/cli · GitHub
Open Graph Title: fix: New Relic integration commands have incorrect parameters and endpoints · Issue #191 · cortexapps/cli
X Title: fix: New Relic integration commands have incorrect parameters and endpoints · Issue #191 · cortexapps/cli
Description: Summary The New Relic integration CLI commands were implemented with incorrect parameters and endpoints that don't match the actual Cortex API specification. Issues Found 1. Wrong Parameters in add Command File: cortexapps_cli/commands/i...
Open Graph Description: Summary The New Relic integration CLI commands were implemented with incorrect parameters and endpoints that don't match the actual Cortex API specification. Issues Found 1. Wrong Parameters in add...
X Description: Summary The New Relic integration CLI commands were implemented with incorrect parameters and endpoints that don't match the actual Cortex API specification. Issues Found 1. Wrong Parameters in...
Opengraph URL: https://github.com/cortexapps/cli/issues/191
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix: New Relic integration commands have incorrect parameters and endpoints","articleBody":"## Summary\nThe New Relic integration CLI commands were implemented with incorrect parameters and endpoints that don't match the actual Cortex API specification.\n\n## Issues Found\n\n### 1. Wrong Parameters in `add` Command\n**File**: `cortexapps_cli/commands/integrations_commands/newrelic.py:12,30`\n\n- **Missing required parameter**: `accountId` is required by API but not present in CLI\n- **Wrong parameter name**: CLI uses `--api-key` flag and sends `apiKey` in JSON payload\n - API expects: `personalKey`\n - CLI sends: `apiKey`\n- **Wrong parameter**: CLI has `--host` parameter\n - API expects: `region` (values: \"US\" or \"EU\")\n - CLI has: `host` (free-form string)\n\n### 2. Wrong HTTP Method for `add_multiple`\n**File**: `cortexapps_cli/commands/integrations_commands/newrelic.py:54`\n\n- CLI uses: `client.put(\"api/v1/newrelic/configurations\")`\n- API expects: `POST /api/v1/newrelic/configurations`\n- Note: Test file correctly expects POST, but implementation uses PUT\n\n### 3. Wrong Endpoint for `validate` Command\n**File**: `cortexapps_cli/commands/integrations_commands/newrelic.py:156`\n\n- CLI uses: `client.post(\"api/v1/newrelic/configurations/validate\" + alias)`\n - Missing slash before alias\n - Wrong path structure\n- API expects: `POST /api/v1/newrelic/configuration/validate/{alias}` (singular \"configuration\")\n\n### 4. Wrong Endpoint for `validate_all` Command\n**File**: `cortexapps_cli/commands/integrations_commands/newrelic.py:169`\n\n- CLI uses: `client.post(\"api/v1/newrelic/configurations\")`\n- API expects: `POST /api/v1/newrelic/configuration/validate` (singular, with /validate)\n\n## Test File Issues\n\n**File**: `tests/test_integrations_newrelic.py`\n\n- Line 18: Expects POST (correct) but implementation uses PUT\n- Line 53: Wrong endpoint - expects `/configuration/validate/test` should be `/configuration/validate/{alias}`\n- Line 58: Endpoint is correct\n\n## Root Cause\nThe New Relic integration commands appear to have been copied from another integration without proper adaptation to the New Relic API specification.\n\n## API Documentation Reference\nhttps://docs.cortex.io/api/readme/integrations/new-relic\n\n## Required Fixes\n1. Update `add` command to include `--account-id` parameter\n2. Rename `--api-key` to `--personal-key` and update JSON payload key\n3. Replace `--host` with `--region` parameter (with US/EU validation)\n4. Change `add_multiple` from PUT to POST\n5. Fix `validate` endpoint path\n6. Fix `validate_all` endpoint path\n7. Update all corresponding test expectations","author":{"url":"https://github.com/jeff-schnitter","@type":"Person","name":"jeff-schnitter"},"datePublished":"2026-01-23T18:32:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/191/cli/issues/191"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:24788015-ce86-a561-ed25-a06b0de46fbc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBEE:1E3F:1EB497:272AA0:6992A3E2 |
| html-safe-nonce | 50ff2caf8e9bb37be322f3f2a038f3f87f0503a9a06e72e777fc07eedb500455 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkVFOjFFM0Y6MUVCNDk3OjI3MkFBMDo2OTkyQTNFMiIsInZpc2l0b3JfaWQiOiIzOTMxMjY4Mjk0NjE5ODY2MDgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 80cd90ba23bb48c2171b2f78fba732a7b444a9ddeeff07abb917f9a4c270cb0c |
| hovercard-subject-tag | issue:3848667423 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cortexapps/cli/191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/653544eafefd6172efc424488858afd068a6f55600f982c63cfda4de3e7e3e2f/cortexapps/cli/issues/191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/653544eafefd6172efc424488858afd068a6f55600f982c63cfda4de3e7e3e2f/cortexapps/cli/issues/191 |
| og:image:alt | Summary The New Relic integration CLI commands were implemented with incorrect parameters and endpoints that don't match the actual Cortex API specification. Issues Found 1. Wrong Parameters in add... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeff-schnitter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/cortexapps/cli git https://github.com/cortexapps/cli.git |
| octolytics-dimension-user_id | 59035319 |
| octolytics-dimension-user_login | cortexapps |
| octolytics-dimension-repository_id | 710966436 |
| octolytics-dimension-repository_nwo | cortexapps/cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 710966436 |
| octolytics-dimension-repository_network_root_nwo | cortexapps/cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width