Skip to content

Commit

Permalink
Move sample to notebooks directory
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
  • Loading branch information
pvaneck committed Mar 22, 2023
1 parent f5495bb commit 387a01a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion sdk/monitor/azure-monitor-query/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The following code samples show common scenarios with the Azure Monitor Query cl

#### Notebook samples

- [Split a large query into multiple smaller queries to avoid hitting service limits](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/sample_large_query.ipynb)
- [Split a large query into multiple smaller queries to avoid hitting service limits](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/notebooks/sample_large_query.ipynb)


### Metrics query samples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"source": [
"#### Set Log Analytics workspace ID\n",
"\n",
"The In some cases (e.g. when using a Sentinel notebook), a `config.json` file will have been setup for you which contains the ID of your Log Analytic workspace. If not, you will need to set the `LOGS_WORKSPACE_ID` variable below."
"Set the `LOGS_WORKSPACE_ID` variable below to the ID of your Log Analytics workspace."
]
},
{
Expand All @@ -78,14 +78,7 @@
"metadata": {},
"outputs": [],
"source": [
"import json \n",
"\n",
"try:\n",
" with open(\"config.json\", \"r\") as f:\n",
" LOGS_WORKSPACE_ID = json.load(f).get(\"workspace_id\", \"\")\n",
"except FileNotFoundError:\n",
" # EDIT THIS VALUE WITH YOUR WORKSPACE ID IF YOU DON'T HAVE A config.json FILE.\n",
" LOGS_WORKSPACE_ID = \"<workspace_id>\""
"LOGS_WORKSPACE_ID = \"<workspace_id>\""
]
},
{
Expand Down

0 comments on commit 387a01a

Please sign in to comment.