update samples from Release-165 as a part of 1.0.81 SDK release

This commit is contained in:
vizhur
2019-12-24 00:34:24 +00:00
parent 8f4efe15eb
commit 0772c157a8
29 changed files with 1124 additions and 152 deletions

View File

@@ -290,7 +290,9 @@
"outputs": [],
"source": [
"# backfill for one month\n",
"backfill = monitor.backfill(datetime(2019, 9, 1), datetime(2019, 10, 1))\n",
"backfill_start_date = datetime(2019, 9, 1)\n",
"backfill_end_date = datetime(2019, 10, 1)\n",
"backfill = monitor.backfill(backfill_start_date, backfill_end_date)\n",
"backfill"
]
},
@@ -353,7 +355,7 @@
"outputs": [],
"source": [
"# plot the results from Python SDK \n",
"monitor.show()"
"monitor.show(backfill_start_date, backfill_end_date)"
]
},
{
@@ -371,7 +373,7 @@
"metadata": {},
"outputs": [],
"source": [
"link = 'https://ml.azure.com/data/monitor/{}?wsid=/subscriptions/{}/resourcegroups/{}/workspaces/{}'.format(monitor.name, ws.subscription_id, ws.resource_group, ws.name)\n",
"link = 'https://ml.azure.com/data/monitor/{}?wsid=/subscriptions/{}/resourcegroups/{}/workspaces/{}&startDate={}&endDate={}'.format(monitor.name, ws.subscription_id, ws.resource_group, ws.name, backfill_start_date.strftime('%Y-%m-%d'), backfill_end_date .strftime('%Y-%m-%d'))\n",
"print(link)"
]
},