Evolution

 

Foreword

See Postman example

The parameter evo describes the context of the evolution of the analysis. It is composed of different mandatory parameters:

PARAMETERDESCRIPTIONPOSSIBLES VALUES
granularityGranularity of the evolutionM(onth), W(eek), D(ay), H(our)
topDescription of the selected elements, top of the elements according to the period, pagination and sorting, the number of elements depends on the parametersSee below
TOP PARAMETERDESCRIPTIONVALEURS POSSIBLES
max-resultsany number
page-numany number
sortsort by metricsany metrics
 

Examples:

// Basic:
"evo": { 
  "granularity": "D",  // mandatory
  "top": { 
    "max-results": 5, 
    "page-num": 1, 
    "sort": ["-m_visits"]
  } 
} 

// Advanced:

"evo": { 
  "granularity": "D",  // mandatory
  "top": { 
    "max-results": 5, 
    "page-num": 1, 
    "sort": ["-m_visits"], 
    "period": { 
      "p1": [ 
        { 
          "type": "D", 
          "start": "2017-05-12", 
          "end": "2017-05-16" 
        } 
      ] 
    } 
  } 
} 

# Basic:
"evo": { 
  "granularity": "D",  // mandatory
  "top": { 
    "max-results": 5, 
    "page-num": 1, 
    "sort": ["-m_visits"]
  } 
} 
# Advanced:

"evo": { 
  "granularity": "D",  // mandatory
  "top": { 
    "max-results": 5, 
    "page-num": 1, 
    "sort": ["-m_visits"], 
    "period": { 
      "p1": [ 
        { 
          "type": "D", 
          "start": "2017-05-12", 
          "end": "2017-05-16" 
        } 
      ] 
    } 
  } 
} 

# Basic:
"evo": { 
  "granularity": "D",  // mandatory
  "top": { 
    "max-results": 5, 
    "page-num": 1, 
    "sort": ["-m_visits"]
  } 
} 

# Advanced:

"evo": { 
  "granularity": "D",  // mandatory
  "top": { 
    "max-results": 5, 
    "page-num": 1, 
    "sort": ["-m_visits"], 
    "period": { 
      "p1": [ 
        { 
          "type": "D", 
          "start": "2017-05-12", 
          "end": "2017-05-16" 
        } 
      ] 
    } 
  } 
} 

# Basic:
"evo": { 
  "granularity": "D",  // mandatory
  "top": { 
    "max-results": 5, 
    "page-num": 1, 
    "sort": ["-m_visits"]
  } 
} 

# Advanced:

"evo": { 
  "granularity": "D",  // mandatory
  "top": { 
    "max-results": 5, 
    "page-num": 1, 
    "sort": ["-m_visits"], 
    "period": { 
      "p1": [ 
        { 
          "type": "D", 
          "start": "2017-05-12", 
          "end": "2017-05-16" 
        } 
      ] 
    } 
  } 
}