Notebook for PK statistics#27
Conversation
Adding notebook to emit partition key statistics (and quota) for containers
| @@ -0,0 +1,52 @@ | |||
| { | |||
| "cells": [ | |||
There was a problem hiding this comment.
In order for this to be a standalone, self-explanatory sample, can you add some markdown text that explains at a high level what the notebook does?
| "trusted": true | ||
| }, | ||
| "outputs": [], | ||
| "source": "#Configuration section\n#Change parameters below if you want to export results t Excel workbooks in a blob storage account\n\n#Account name of the blob stroage account the workbooks are saved to\nblob_account_name='<YourAccountName>'\n\n#Account key of the blob stroage account the workbooks are saved to\nblob_account_key='<YourAccountKey>'\n\n#Blob container name taht the excel workbooks will be saved to\nblobContainerName='<YourContainerName>'\n\n#By default use the same cosmos account in which the notebook is stored in\nclient = cosmos_client\n#Alternatively you could point to another cosmso account via connection string for example\n#client = CosmosClient.from_connection_string('<YourConnectionString>')" |
There was a problem hiding this comment.
Follow Python conventions, e.g. partitionQuotaDataFrame -> partition_quota_dataframe
| "trusted": true | ||
| }, | ||
| "outputs": [], | ||
| "source": "#Configuration section\n#Change parameters below if you want to export results t Excel workbooks in a blob storage account\n\n#Account name of the blob stroage account the workbooks are saved to\nblob_account_name='<YourAccountName>'\n\n#Account key of the blob stroage account the workbooks are saved to\nblob_account_key='<YourAccountKey>'\n\n#Blob container name taht the excel workbooks will be saved to\nblobContainerName='<YourContainerName>'\n\n#By default use the same cosmos account in which the notebook is stored in\nclient = cosmos_client\n#Alternatively you could point to another cosmso account via connection string for example\n#client = CosmosClient.from_connection_string('<YourConnectionString>')" |
There was a problem hiding this comment.
Nit: typo:
Change parameters below if you want to export results to Excel workbooks in a blob storage account
| "trusted": true | ||
| }, | ||
| "outputs": [], | ||
| "source": "#Configuration section\n#Change parameters below if you want to export results t Excel workbooks in a blob storage account\n\n#Account name of the blob stroage account the workbooks are saved to\nblob_account_name='<YourAccountName>'\n\n#Account key of the blob stroage account the workbooks are saved to\nblob_account_key='<YourAccountKey>'\n\n#Blob container name taht the excel workbooks will be saved to\nblobContainerName='<YourContainerName>'\n\n#By default use the same cosmos account in which the notebook is stored in\nclient = cosmos_client\n#Alternatively you could point to another cosmso account via connection string for example\n#client = CosmosClient.from_connection_string('<YourConnectionString>')" |
There was a problem hiding this comment.
In order to make this standalone - can we make this part optional? E.g. we print the statistics in the notebook, and then have an optional cell where they can save it to Excel? Or they can write it to the current directory, and it will show up as a file under Notebooks.
Adding notebook to emit partition key statistics (and quota) for containers
Purpose
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
What to Check
Verify that the following are valid
Other Information