forked from michaeldhealy/python-omniture
-
Notifications
You must be signed in to change notification settings - Fork 51
Metrics as a list not working #91
Copy link
Copy link
Open
Description
Hello, Thanks for this awesome package, it's saved me a ton of time. One issue I have ran into is when I attempt to pass metrics as a list, I get that the metrics are not found in the report suite.
report = suite.report
.element('mobiledevicetype',disable_validation=True)
.metric(['pageviews', 'visitors'])
.filter('s300001088_595cfe5403d383079e8701d8')
.breakdown('evar30')
.range('2018-05-01', '2018-05-01').run()
**
KeyError: "Cannot find ['pageviews', 'visitors'] among the available metrics"
**
It works fine if I daisy-chain them like .metric('pageviews').metric('visitors), just not as a list as described in your documentation.
You can pass a list of metrics if you wish to process the report using multiple metrics.
report = suite.report.element('evar1').metric(['visits','pageviews','instances'])
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels