创建警报阈值。
请求示例:
POST /api/alert/v1/thresholds HTTP/1.1
Host: zfs-storage.example.com
X-Auth-User: root
X-Auth-Key: letmein
Content-Type: application/json
Content-Length: 50
{"statname": "datalink.kilobytes", "limit": 100000}
响应示例:
HTTP/1.1 201 Created
X-Zfssa-Appliance-Api: 1.0
Content-Type: application/json
Content-Length: 321
Location: /api/alert/v1/thresholds
/1b15d405-75c4-4c0c-e0f6-8a108165b874
{
"threshold": {
"href": "/api/alert/v1/alerts/thresholds
/1b15d405-75c4-4c0c-e0f6-8a108165b874",
...
}
}