Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public locations on export do not match import requirements #53

Open
Steve24by7 opened this issue Nov 20, 2024 · 0 comments
Open

Public locations on export do not match import requirements #53

Steve24by7 opened this issue Nov 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Steve24by7
Copy link

Public locations on export do not match import requirements

Description

When exporting synthetic monitors, the public locations are exported as, for example, "Dublin, IE". However on import, nerdgraph schema requires the region, as EU_WEST_1.

Steps to Reproduce

python3 ./fetchmonitors.py --sourceAccount xxx --sourceApiKey "NRAK-xxx" --region us --toFile SynthMonitors202411191429.csv
Pasting that into nerdgraph fails.

Expected Behavior

Pasting json output into nerdgraph succeeds.

Relevant Logs / Console output

newrelic nerdgraph query 'mutation {

syntheticsCreateScriptApiMonitor(
accountId: xxx
monitor: {apdexTarget: 7, locations: {public: "US_EAST_2"}, name: "testImport1444", period: EVERY_10_MINUTES, runtime: {runtimeType: "NODE_API", runtimeTypeVersion: "16.10", scriptLanguage: "JAVASCRIPT"}, script: "// This example shows use of public location import \n}", status: DISABLED}
) {
errors {
description
}
monitor {
status
}
}
}'

Your Environment

  • ex: Browser name and version:
  • ex: Operating System and version:

Additional context

@Steve24by7 Steve24by7 added the bug Something isn't working label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant