1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
// This file is autogenerated, DO NOT EDIT
// ml/anomaly-detection/apis/post-calendar-event.asciidoc:85
[source, python]
----
resp = client.ml.post_calendar_events(
calendar_id="planned-outages",
events=[
{
"description": "event 1",
"start_time": 1513641600000,
"end_time": 1513728000000
},
{
"description": "event 2",
"start_time": 1513814400000,
"end_time": 1513900800000
},
{
"description": "event 3",
"start_time": 1514160000000,
"end_time": 1514246400000
}
],
)
print(resp)
----
|