Cloud 无法使用openstack API创建报警
寻求帮助,, 我无法使用openstack API创建报警 目前我正在做这样的事情: 将请求发送至:Cloud 无法使用openstack API创建报警,cloud,openstack,openstack-neutron,ceilometer,Cloud,Openstack,Openstack Neutron,Ceilometer,寻求帮助,, 我无法使用openstack API创建报警 目前我正在做这样的事情: 将请求发送至: http://controllerIP:8777/v2/alarms 我还设置了标题[X-Auth-Token和内容类型] 我要送的尸体是: { "alarm_actions" : [ "http://webhookIp/os/alarm" ], "insufficient_data_actions" : [ "http://webhoo
http://controllerIP:8777/v2/alarms
我还设置了标题[X-Auth-Token和内容类型]
我要送的尸体是:
{
"alarm_actions" : [
"http://webhookIp/os/alarm"
],
"insufficient_data_actions" : [
"http://webhookIp/os/alarm"
],
"ok_actions" : [
"http://webhookIp/os/alarm"
],
"comparison_operator" : "gt",
"description" : "An alarm",
"evaluation_periods" : 5,
"meter_name" : "cpu_util",
"name" : "SwiftObjectAlarm",
"period" : 60,
"statistic" : "avg",
"threshold" : 3.0,
"repeat_actions" : true,
"resource_id": "ee827e6d-5ca2-475d-af5b-7fd6976e874c"
}
我正在获取错误代码:
<error_message>
<error>
<faultcode>Client</faultcode>
<faultstring>Invalid input for field/attribute type. Value: 'None'. Mandatory field missing.</faultstring>
<debuginfo/>
</error>
</error_message>
客户
字段/属性类型的输入无效。值:“无”。缺少必填字段。
有人知道这里出了什么问题吗??我想可能是数据,但我没有任何线索来做对(问题在于数据。这应该可以:
{
"alarm_actions" : [
"http://webhookIp/os/alarm"
],
"insufficient_data_actions" : [
"http://webhookIp/os/alarm"
],
"ok_actions" : [
"http://webhookIp/os/alarm"
],
"comparison_operator" : "gt",
"description" : "An alarm",
"evaluation_periods" : 5,
"name" : "SwiftObjectAlarm",
"period" : 60,
"statistic" : "avg",
"type" : "threshold",
"threshold_rule": {
"meter_name" : "cpu_util",
"threshold" : 3.0
},
"repeat_actions" : true,
"resource_id": "ee827e6d-5ca2-475d-af5b-7fd6976e874c"
}