toMetricsLevel method
Implementation
MetricsLevel toMetricsLevel() {
switch (this) {
case 'APPLICATION':
return MetricsLevel.application;
case 'TASK':
return MetricsLevel.task;
case 'OPERATOR':
return MetricsLevel.operator;
case 'PARALLELISM':
return MetricsLevel.parallelism;
}
throw Exception('$this is not known in enum MetricsLevel');
}