使用openstack4j-3.0.3-withdeps.jar创建警报时出错

时间:2017-05-09 06:48:09

标签: openstack ceilometer

使用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

0 个答案:

没有答案
相关问题