Skip to content

Loading…

Metadata API should tell if the data set is fixed size, or not #2336

Closed
mattab opened this Issue · 2 comments

1 participant

@mattab
Piwik Open Source Analytics member

Example:

  • Visit per hour, Visit duration, Pages per visit are tables of fixed sizes
  • countries, browsers, and many others are open reports that can be between 0 and N rows

It would be useful to have such information in each metadata output, so that metadata users could decide better how to display the reports, in particular #1721

@mattab
Piwik Open Source Analytics member

Added in [http://piwik.org/docs/analytics-api/metadata/ Analytics Metadata API] documentation:
'constantRowsCount' - if set to 1, it means the report always has the same number of rows. For example, "Visit per hour" always has 24 hours, "Visits per number of pages" has 10 rows. This attribute is set only when there is a 'dimension' attribute. If this attribute is not set, it means that the returned data set could have 0 row, 1 row, or N rows.

@mattab
Piwik Open Source Analytics member

(In [4510]) Fixes #2336
'constantRowsCount' - if set to 1, it means the report always has the same number of rows. For example, "Visit per hour" always has 24 hours, "Visits per number of pages" has 10 rows. This attribute is set only when there is a 'dimension' attribute. If this attribute is not set, it means that the returned data set could have 0 row, 1 row, or N rows.

@mattab mattab added this to the 1.4 - Piwik 1.4 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.