Opened 3 years ago

Closed 3 years ago

#2336 closed New feature (fixed)

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

Reported by: matt Owned by:
Priority: normal Milestone: 1.4 - Piwik 1.4
Component: Core Keywords:
Cc: Sensitive: no

Description

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

Change History (2)

comment:1 Changed 3 years ago by matt (mattab)

Added in 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.

comment:2 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(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.

Note: See TracTickets for help on using tickets.