1 package com.griddynamics.jagger.user.test.configurations.limits.auxiliary;
3 import com.griddynamics.jagger.util.StandardMetricsNamesUtil;
58 private final double DEFAULT_VALUE = -1D;
60 private double value = DEFAULT_VALUE;
69 throw new IllegalArgumentException(
"Percentile may varies from 0 to 100.0");
71 PERF_AVG_LATENCY.value = percentile;
84 case PERF_SUCCESS_RATE_OK:
85 name = StandardMetricsNamesUtil.SUCCESS_RATE_OK_ID;
87 case PERF_SUCCESS_RATE_FAILS:
88 name = StandardMetricsNamesUtil.SUCCESS_RATE_FAILED_ID;
91 name = StandardMetricsNamesUtil.THROUGHPUT_ID;
93 case PERF_VIRTUAL_USERS:
94 name = StandardMetricsNamesUtil.VIRTUAL_USERS_ID;
96 case PERF_STD_DEV_LATENCY:
97 name = StandardMetricsNamesUtil.LATENCY_STD_DEV_AGG_ID;
100 name = StandardMetricsNamesUtil.DURATION_ID;
102 case PERF_AVG_LATENCY:
103 if (Double.compare(
this.value, DEFAULT_VALUE) == 0) {
104 name = StandardMetricsNamesUtil.LATENCY_ID;
106 name = StandardMetricsNamesUtil.getLatencyMetricId(this.value);
109 case PERF_ITERATION_SAMPLES:
110 name = StandardMetricsNamesUtil.ITERATION_SAMPLES_ID;
113 name = StandardMetricsNamesUtil.MON_CPULA_1;
116 name = StandardMetricsNamesUtil.MON_CPULA_5;
119 name = StandardMetricsNamesUtil.MON_CPULA_15;
121 case MON_GC_MINOR_TIME:
122 name = StandardMetricsNamesUtil.MON_GC_MINOR_TIME;
124 case MON_GC_MAJOR_TIME:
125 name = StandardMetricsNamesUtil.MON_GC_MAJOR_TIME;
127 case MON_GC_MINOR_UNIT:
128 name = StandardMetricsNamesUtil.MON_GC_MINOR_UNIT;
130 case MON_GC_MAJOR_UNIT:
131 name = StandardMetricsNamesUtil.MON_GC_MAJOR_UNIT;
134 name = StandardMetricsNamesUtil.MON_MEM_RAM;
137 name = StandardMetricsNamesUtil.MON_MEM_TOTAL;
140 name = StandardMetricsNamesUtil.MON_MEM_USED;
142 case MON_MEM_ACTUAL_USED:
143 name = StandardMetricsNamesUtil.MON_MEM_ACTUAL_USED;
145 case MON_MEM_FREE_PRCNT:
146 name = StandardMetricsNamesUtil.MON_MEM_FREE_PRCNT;
148 case MON_MEM_ACTUAL_FREE:
149 name = StandardMetricsNamesUtil.MON_MEM_ACTUAL_FREE;
152 name = StandardMetricsNamesUtil.MON_MEM_FREE;
155 name = StandardMetricsNamesUtil.MON_TCP_EST;
158 name = StandardMetricsNamesUtil.MON_TCP_LISTEN;
160 case MON_SYNC_RECEIVED:
161 name = StandardMetricsNamesUtil.MON_SYNC_RECEIVED;
163 case MON_INBOUND_TOTAL:
164 name = StandardMetricsNamesUtil.MON_INBOUND_TOTAL;
166 case MON_OUTBOUND_TOTAL:
167 name = StandardMetricsNamesUtil.MON_OUTBOUND_TOTAL;
169 case MON_DISK_READ_BYTES:
170 name = StandardMetricsNamesUtil.MON_DISK_READ_BYTES;
172 case MON_DISK_WRITE_BYTES:
173 name = StandardMetricsNamesUtil.MON_DISK_WRITE_BYTES;
175 case MON_DISK_SERVICE_TIME:
176 name = StandardMetricsNamesUtil.MON_DISK_SERVICE_TIME;
178 case MON_DISK_QUEUE_SIZE_TOTAL:
179 name = StandardMetricsNamesUtil.MON_DISK_QUEUE_SIZE_TOTAL;
182 name = StandardMetricsNamesUtil.MON_CPU_USER;
184 case MON_CPU_SYS_PRCNT:
185 name = StandardMetricsNamesUtil.MON_CPU_SYS_PRCNT;
187 case MON_CPU_IDLE_PRCNT:
188 name = StandardMetricsNamesUtil.MON_CPU_IDLE_PRCNT;
191 name = StandardMetricsNamesUtil.MON_CPU_WAIT;
193 case MON_CPU_COMBINED:
194 name = StandardMetricsNamesUtil.MON_CPU_COMBINED;
197 name = StandardMetricsNamesUtil.MON_HEAP_INIT;
200 name = StandardMetricsNamesUtil.MON_HEAP_USED;
202 case MON_HEAP_COMMITTED:
203 name = StandardMetricsNamesUtil.MON_HEAP_COMMITTED;
206 name = StandardMetricsNamesUtil.MON_HEAP_MAX;
208 case MON_NONHEAP_INIT:
209 name = StandardMetricsNamesUtil.MON_NONHEAP_INIT;
211 case MON_NONHEAP_USED:
212 name = StandardMetricsNamesUtil.MON_NONHEAP_USED;
214 case MON_NONHEAP_COMMITTED:
215 name = StandardMetricsNamesUtil.MON_NONHEAP_COMMITTED;
217 case MON_NONHEAP_MAX:
218 name = StandardMetricsNamesUtil.MON_NONHEAP_MAX;
220 case MON_THREAD_COUNT:
221 name = StandardMetricsNamesUtil.MON_THREAD_COUNT;
223 case MON_THREAD_PEAK_COUNT:
224 name = StandardMetricsNamesUtil.MON_THREAD_PEAK_COUNT;
226 case MON_FILE_DESCRIPTORS:
227 name = StandardMetricsNamesUtil.MON_FILE_DESCRIPTORS;