-
Notifications
You must be signed in to change notification settings - Fork 319
[Storage] get_statistics for BlobServiceClient
#3362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[Storage] get_statistics for BlobServiceClient
#3362
Conversation
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds the get_statistics method to BlobServiceClient, enabling retrieval of replication statistics for blob storage services on secondary endpoints with read-access geo-redundant replication enabled.
Key Changes:
- Added
get_statisticsmethod toBlobServiceClientwith proper documentation - Added comprehensive test case
test_get_service_statsfor the new functionality - Exported
GeoReplication,StorageServiceStats, andBlobServiceClientGetStatisticsOptionstypes in the models module
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| sdk/storage/azure_storage_blob/tests/blob_service_client.rs | Adds test for get_statistics method with secondary endpoint configuration and geo-replication validation |
| sdk/storage/azure_storage_blob/src/models/mod.rs | Exports required types (GeoReplication, StorageServiceStats, BlobServiceClientGetStatisticsOptions) for the new statistics API |
| sdk/storage/azure_storage_blob/src/clients/blob_service_client.rs | Implements public get_statistics method that delegates to the generated client |
| sdk/storage/azure_storage_blob/assets.json | Updates test recording asset tag to include new test recordings |
test_legal_holdPR merges with that feature contained.