/*
(non-Javadoc)

@see com.orientechnologies.common.profiler.ProfileMBean#getStatistics()
350443
public String[] getCountersAsString() {
    synchronized (counters) {
      final String[] output = new String[counters.size()];
      int i = 0;
      for (Entry<String, Long> entry : counters.entrySet()) {
        output[i++] = entry.getKey() + ": " + entry.getValue().toString();
      }
      return output;
    }
  }
903008
public void setTableStatistics(java.util.Collection<TableStatistics> tableStatistics) {
        if (tableStatistics == null) {
            this.tableStatistics = null;
            return;
        }

        this.tableStatistics = new java.util.ArrayList<TableStatistics>(tableStatistics);
    }
1304741
@Override
  public SortedMap<String, Counter> getCounters(MetricFilter filter) {
    return getSimplyNamedMetrics(Counter.class, Optional.of(filter));
  }
135455
public Optional<CacheStatistics> getStatistics(String cacheName) {

        javax.cache.Cache cache = cacheManager.getCache(cacheName);

        if (cache == null) {
            return Optional.empty();
        }

        if (((CompleteConfiguration) cache.getConfiguration(CompleteConfiguration.class)).isStatisticsEnabled() && cache instanceof ICache) {
            com.hazelcast.cache.CacheStatistics stats = ((ICache) cache).getLocalCacheStatistics();
            CacheStatistics statistics = new CacheStatistics(
                    stats.getCacheHits(),
                    stats.getCacheMisses(),
                    stats.getCacheHitPercentage(),
                    stats.getCacheMissPercentage(),
                    stats.getCacheGets(),
                    stats.getCachePuts(),
                    stats.getCacheRemovals(),
                    stats.getCacheEvictions(),
                    stats.getAverageGetTime(),
                    stats.getAveragePutTime(),
                    stats.getAverageRemoveTime());

            return Optional.of(statistics);
        }

        return Optional.empty();
    }
1374826
public java.util.List<InstanceStatus> getInstanceStatuses() {
        if (instanceStatuses == null) {
            instanceStatuses = new com.amazonaws.internal.SdkInternalList<InstanceStatus>();
        }
        return instanceStatuses;
    }
959747
public StatisticImpl getStatistic() {
        StatisticImpl aggStat = getSpdLong().getStatistic();
        aggStat.setLastSampleTime(PmiUtil.currentTime());
        return aggStat;
    }
1239848
public java.util.List<String> getCurrentShardLevelMetrics() {
        if (currentShardLevelMetrics == null) {
            currentShardLevelMetrics = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return currentShardLevelMetrics;
    }
564591
@Override
    public String[] getCacheStatistics(String[] names) throws javax.management.AttributeNotFoundException {

        if (names == null)
            return null;

        DCache cache = null;
        if (ServerCache.servletCacheEnabled) {
            cache = ServerCache.cache;
        }
        String stats[] = null;
        if (cache != null) {
            Map statistics = getCacheStatisticsMap(cache.getCacheStatistics());
            stats = new String[names.length];
            for (int i = 0; i < names.length; i++) {

                if (!statistics.containsKey(names[i])) {
                    Tr.error(tc, "DYNA1052E", new Object[] { names[i] });
                    throw new AttributeNotFoundException(names[i] + " is not a valid cache statistic name");
                }

                stats[i] = names[i] + "=" + statistics.get(names[i]);
            }
        } else {
            stats = new String[0];
        }

        return stats;
    }
79337
public static cachepolicylabel_stats[] get(nitro_service service) throws Exception{
		cachepolicylabel_stats obj = new cachepolicylabel_stats();
		cachepolicylabel_stats[] response = (cachepolicylabel_stats[])obj.stat_resources(service);
		return response;
	}
1133325
public java.util.List<Dataset> getDatasets() {
        if (datasets == null) {
            datasets = new com.amazonaws.internal.SdkInternalList<Dataset>();
        }
        return datasets;
    }
908737
public static responderpolicy_stats[] get(nitro_service service) throws Exception{
		responderpolicy_stats obj = new responderpolicy_stats();
		responderpolicy_stats[] response = (responderpolicy_stats[])obj.stat_resources(service);
		return response;
	}
595718
public java.util.List<MetricCollectionType> getMetrics() {
        if (metrics == null) {
            metrics = new com.amazonaws.internal.SdkInternalList<MetricCollectionType>();
        }
        return metrics;
    }
409359
public java.util.List<InstanceCount> getInstanceCounts() {
        if (instanceCounts == null) {
            instanceCounts = new com.amazonaws.internal.SdkInternalList<InstanceCount>();
        }
        return instanceCounts;
    }
503963
public String[] getJ2EEStatisticNames() {
        ArrayList members = copyStatistics();
        if (members == null)
            return new String[0];

        String[] ret = new String[members.size()];
        for (int i = 0; i < ret.length; i++) {
            if (members.get(i) != null)
                ret[i] = ((StatisticImpl) members.get(i)).getName();
        }
        return ret;
    }
113274
public Map<String, ActiveMQQueueStats> getQueueStats() {
        Map<String, ActiveMQQueueStats> result;

        result = new TreeMap<>();

        synchronized ( this.queueStats ) {
            for (QueueStatisticsCollection queueStatisticsCollection : this.queueStats.values()) {
                result.put(queueStatisticsCollection.getQueueName(), queueStatisticsCollection.getQueueTotalStats());
            }
        }

        return result;
    }
825330
public static ipseccounters_stats get(nitro_service service) throws Exception{
		ipseccounters_stats obj = new ipseccounters_stats();
		ipseccounters_stats[] response = (ipseccounters_stats[])obj.stat_resources(service);
		return response[0];
	}
1142128
@Test(groups = {SAMPLES})
    public void getDE1MonitoringStatsForLastHourGroupedByServers() {
        List<MonitoringStatsEntry> stats = statisticsService
            .monitoringStats()
            .forDataCenters(
                new DataCenterFilter()
                    .dataCenters(DE_FRANKFURT)
            )
            .forTime(new ServerMonitoringFilter()
                .last(Duration.ofHours(1))
                .type(MonitoringType.REALTIME)
                .interval(Duration.ofMinutes(10)))
            .groupByDataCenter();

        assertNotNull(stats);
    }