Comments (3)
I removed that functionality until I can think of a better way of implementing it.
Understood. Is it a lot of work to push out a patch release with the fix for the noise, please? :) One I could pull in via pip install --upgrade nrql-cli
?
from nrql-simple.
I'm using nrql-cli version 1.0.3:
[~/nrql-cli] [nrql-cli] $ pip freeze | grep nrql-cli
nrql-cli==1.0.3
[~/nrql-cli] [nrql-cli] $
from nrql-simple.
Thank you for creating this issue.
I discovered this issue recently. This is due to how I was getting the event keyset:
event_types_query = "show event types since 1 week ago"
keyset_query = "select keyset() from %s since 1 week ago"
events = nrql.query(event_types_query)
events = events["results"][0]["eventTypes"]
k = nrql.query(keyset_query % ", ".join(event for event in events))
words = list(set(reserved_words + events + k["results"][0]["allKeys"]))
The keyset query doesn't work now because default event types can't be mixed with custom data.
(env) abloomer@C02XHDU0JG5J:~/nrql-cli$ python -m nrql --v
⠏ Loading...['ApplicationAgentContext', 'IntegrationError', 'IntegrationProviderReport', 'JavaScriptError', 'Metric', 'NrAuditEvent', 'NrConsumption', 'NrDailyUsage', 'NrMTDConsumption', 'NrUsage', 'PageView', 'PageViewTiming', 'Public_APICall', 'SyntheticCheck', 'SyntheticRequest', 'SyntheticsPrivateLocationStatus', 'Transaction']
select keyset() from ApplicationAgentContext, IntegrationError, IntegrationProviderReport, JavaScriptError, Metric, PageView, PageViewTiming, Public_APICall, SyntheticCheck, SyntheticRequest, SyntheticsPrivateLocationStatus, Transaction since 1 week ago
⠇ Loading...{'error': 'Global event types cannot be mixed with account data'}
Traceback (most recent call last):
File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/abloomer/nrql-cli/nrql/__main__.py", line 3, in <module>
main()
File "/Users/abloomer/nrql-cli/nrql/cli.py", line 75, in main
wordlist = load_or_generate()
File "/Users/abloomer/nrql-cli/nrql/utils.py", line 104, in load_or_generate
word_list = generate_word_list()
File "/Users/abloomer/nrql-cli/nrql/utils.py", line 92, in generate_word_list
words = list(set(reserved_words + events + k["results"][0]["allKeys"]))
KeyError: 'results'
I removed that functionality until I can think of a better way of implementing it.
from nrql-simple.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nrql-simple.