_data = array( 'bufferquotainmb' => $bufferQuotaInMB, 'scheduledtransferperiodinminutes' => $scheduledTransferPeriodInMinutes, 'subscriptions' => array(), ); } /** * Add subscription * * @param string $counterSpecifier Counter specifier * @param int $sampleRateInSeconds Sample rate in seconds */ public function addSubscription($counterSpecifier, $sampleRateInSeconds = 1) { $this->_data['subscriptions'][$counterSpecifier] = new Zend_Service_WindowsAzure_Diagnostics_PerformanceCounterSubscription($counterSpecifier, $sampleRateInSeconds); } /** * Remove subscription * * @param string $counterSpecifier Counter specifier */ public function removeSubscription($counterSpecifier) { if (isset($this->_data['subscriptions'][$counterSpecifier])) { unset($this->_data['subscriptions'][$counterSpecifier]); } } }