使用openstack4j-3.0.3-withdeps.jar创建警报时遇到问题。
使用openstack4j-3.0.5-20170507.171628-1-withdeps.jar
CeilometerThresholdRule ceilometerThresholdRule = new CeilometerThresholdRule();
Alarm alarm = Builders.alarm().name("high_Cpu1").description("testcpu-high")
.type(Alarm.Type.THRESHOLD).thresholeRule(ceilometerThresholdRule).alarmActions(alarmActions).okActions(oKActions).isEnabled(true).build();
Alarm alarm2 = os
.telemetry()
.alarms()
.create(alarm);
错误是: org.jboss.resteasy.client.ClientResponseFailure:无法找到内容类型为text / plain的MessageBodyReader; charset =“UTF-8”并输入null