toEnhancedMonitoring method
Implementation
EnhancedMonitoring toEnhancedMonitoring() {
switch (this) {
case 'DEFAULT':
return EnhancedMonitoring.$default;
case 'PER_BROKER':
return EnhancedMonitoring.perBroker;
case 'PER_TOPIC_PER_BROKER':
return EnhancedMonitoring.perTopicPerBroker;
case 'PER_TOPIC_PER_PARTITION':
return EnhancedMonitoring.perTopicPerPartition;
}
throw Exception('$this is not known in enum EnhancedMonitoring');
}