Get statistic definitions.
Returns statistic definitions records.
@return ApiResponse&lt;GetStatisticDefinitionsResponse&gt;
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
327078
public ApiResponse<GetStatisticDefinitionsResponse> getStatisticDefinitionsWithHttpInfo() throws ApiException {
        com.squareup.okhttp.Call call = getStatisticDefinitionsValidateBeforeCall(null, null);
        Type localVarReturnType = new TypeToken<GetStatisticDefinitionsResponse>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
479358
public StatisticImpl getStatistic() {
        StatisticImpl aggStat = getSpdDouble().getStatistic();
        aggStat.setLastSampleTime(PmiUtil.currentTime());
        return aggStat;
    }
586133
protected function getCollectionStats()
    {
        $database = $this->collection->getDatabase();
        $name = $this->collection->getName();

        if (!$data = $database->command(['collStats' => $name])) {
            $message = sprintf(
                'Statistics not found for collection %s',
                $name
            );
            throw new Exception($message);
        }

        if (isset($data['errmsg'])) {
            throw new Exception($data['errmsg']);
        }

        return $data;
    }
1154502
public static protocolip_stats get(nitro_service service) throws Exception{
		protocolip_stats obj = new protocolip_stats();
		protocolip_stats[] response = (protocolip_stats[])obj.stat_resources(service);
		return response[0];
	}
532422
public function getStats()
    {
        if ($this->stats) {
            return $this->stats;
        }

        return $this->stats = $this->api->stats($this->getDisplayName());
    }
11891
public function getStats()
    {
        $service = $this->getService();

        // stats for a site
        $response = $service->request('stats', 'GET', NULL, $this->getParams());

        $responseArray = $this->getResponseArray($response);

        if (!$this->isError()) {
            $this->_data = $responseArray;
        } else {
            $this->_data = array();
        }

        return $this;
    }
1340578
public ApiResponse<ApiEndpointsSuccess> getApiEndpointsWithHttpInfo() throws ApiException {
        com.squareup.okhttp.Call call = getApiEndpointsValidateBeforeCall(null, null);
        Type localVarReturnType = new TypeToken<ApiEndpointsSuccess>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
1284575
public ApiResponse<CheckPostMigrateStatistic> checkPostMigrateStatisticWithHttpInfo() throws ApiException {
        com.squareup.okhttp.Call call = checkPostMigrateStatisticValidateBeforeCall(null, null);
        Type localVarReturnType = new TypeToken<CheckPostMigrateStatistic>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
412087
public function getHttpCodeDefinition()
    {
        if (!isset($this->_httpCodeDefinitions[$this->getHttpCode()])) {
            throw new ClientException('Invalid http code provided.');
        }

        return $this->_httpCodeDefinitions[$this->getHttpCode()];
    }
880931
public HeaderDefinition getHeaderDefinition() {
    JSONArray jsonArray = null;
    try {
      jsonArray = _jsonObject.getJSONArray(COLUMN_NAMES_FIELD);
      List<String> columnNames = new ArrayList<String>(jsonArray.length());
      for (int i = 0; i < jsonArray.length(); i++) {
        columnNames.add(jsonArray.getString(i));
      }
      return HeaderDefinition.of(columnNames);
    } catch (JSONException ex) {
      s_logger.error("Metadata had unexpected structure - could not extract column_names field. Was:\n{}", _jsonObject.toString());
      throw new QuandlRuntimeException("Metadata had unexpected structure", ex);
    }
  }
452902
public APIState getAPIState() {
		APIStateRequest request = new APIStateRequest();
		APIStateResponse response = resolveApitraryClient().send(request);

		APIState apiState = null;
		if (HttpStatus.OK.ordinal() == response.getStatusCode()) {
			String result = response.getResult();

			ObjectMapper objectMapper = new ObjectMapper();
			try {
				apiState = objectMapper.readValue(result, APIState.class);
			} catch (Exception e) {
				throw new MappingException(e);
			}
		} else {
			throw new CommunicationErrorException(HttpStatus.getStatus(response.getStatusCode()));
		}
		return apiState;
	}
463526
public ApiResponse<GetMOHSettings> getMOHSettingsWithHttpInfo() throws ApiException {
        com.squareup.okhttp.Call call = getMOHSettingsValidateBeforeCall(null, null);
        Type localVarReturnType = new TypeToken<GetMOHSettings>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
833590
public function getResponseData(): Response
    {
        $connectionResponse = new ConnectionResponseImpl();
        $errorResponse = $this->streamSocket->read();
        if ($errorResponse !== null) {
            $this->getLogger()->error('Send error: ' . $errorResponse);
            $this->streamSocket->disconnect();
            $response = @unpack('Ccommand/Cstatus/Nidentifier', $errorResponse);
            if (!empty($response)) {
                $connectionResponse->setErrorResponse($response);
            } else {
                $connectionResponse->setErrorResponse(null);
            }
        }

        return $connectionResponse;
    }
414446
public ApiSuccessResponse getDetails(String id) throws ApiException {
        ApiResponse<ApiSuccessResponse> resp = getDetailsWithHttpInfo(id);
        return resp.getData();
    }
115333
public static system_stats get(nitro_service service) throws Exception{
		system_stats obj = new system_stats();
		system_stats[] response = (system_stats[])obj.stat_resources(service);
		return response[0];
	}
530473
def stats(self):
        
        # TODO - this would be nicer if we formatted the stats
        return self._client.get('{}/stats'.format(Instance.api_endpoint), model=self)
312099
public ApiResponse<UserEnvelope> getSelfWithHttpInfo() throws ApiException {
        com.squareup.okhttp.Call call = getSelfValidateBeforeCall(null, null);
        Type localVarReturnType = new TypeToken<UserEnvelope>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }