java - Unable to create alarm in aodh alrming service using openstack4j -


i trying use openstack4j v3.0.1 create alarm in openstack:

    alarm alarm = projectclient             .telemetry()             .alarms()             .create(builders.alarm().name(alarmname + "@" + serverid).description(alarmname + " high")                     .type(alarm.type.threshold).thresholerule(rule).alarmactions(actions).isenabled(true).build()); 

but server fails respond , throws me exception:

exception in thread "main" org.jboss.resteasy.client.clientresponsefailure: unable find messagebodyreader of content-type text/plain;charset="utf-8" , type null

after track network traffic on server side, seems request sent 8777 port, telemetry metering service. in fact should sent 8042 port, telemetry alarming service running.

anybody knows if i'm using openstack4j correctly. thanks!


Comments

Popular posts from this blog

javascript - Access directive function from component class or template -

php - Auto increment employee ID -

python - Evaluating the next line in a For Loop while in the current iteration -