Skip to content

Metrics as a list not working #91

Description

@will-austin

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'])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions