You are here

protected function AcquiaLiftAPI::convertCallCountsToTotalCount in Acquia Lift Connector 7

2 calls to AcquiaLiftAPI::convertCallCountsToTotalCount()
AcquiaLiftAPI::getTotalRuntimeCallsForMonthToDate in includes/acquia_lift.classes.inc
Returns the total number of runtimeAPI calls for the month prior to the date provided.
AcquiaLiftAPI::getTotalRuntimeCallsForPreviousMonth in includes/acquia_lift.classes.inc
Returns the total number of runtimeAPI calls for the month prior to the date provided.

File

includes/acquia_lift.classes.inc, line 1269
Provides an agent type for Acquia Lift

Class

AcquiaLiftAPI
@file Provides an agent type for Acquia Lift

Code

protected function convertCallCountsToTotalCount($counts, $exclude = array(
  'other',
)) {
  $total_count = 0;
  foreach ($counts as $type => $count) {
    if (in_array($type, $exclude)) {
      continue;
    }
    $total_count += $count;
  }
  return $total_count;
}