Skip to content

MetricsClient Sovereign Cloud Support#40789

Closed
jairmyree wants to merge 2 commits into
Azure:mainfrom
jairmyree:batch-metrics-sovereign-support
Closed

MetricsClient Sovereign Cloud Support#40789
jairmyree wants to merge 2 commits into
Azure:mainfrom
jairmyree:batch-metrics-sovereign-support

Conversation

@jairmyree

Copy link
Copy Markdown
Member

This PR introduces sovereign cloud support for MetricsClient by introducing MetricsClientAudience and autorest transforms to adjust logic to include audience specification.

@github-actions github-actions Bot added the Monitor Monitor, Monitor Ingestion, Monitor Query label Jun 24, 2024
@azure-sdk

Copy link
Copy Markdown
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

com.azure:azure-monitor-query

@jairmyree jairmyree force-pushed the batch-metrics-sovereign-support branch from 9c5ee07 to 5107049 Compare June 24, 2024 17:29
/**
* The audience indicating the authorization scope of metrics clients.
*/
public class MetricsClientAudience extends ExpandableStringEnum<MetricsClientAudience> {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be named MetricsAudience to be consistent with the names used in other libraries.

/**
* Static value for Azure Public Cloud.
*/
public static final MetricsClientAudience AZURE_PUBLIC_CLOUD = fromString("https://metrics.monitor.azure.com//.default");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have // instead of / before .default?

@srnagar

srnagar commented Aug 26, 2024

Copy link
Copy Markdown
Member

Completed in this PR - #41048

@srnagar srnagar closed this Aug 26, 2024
@jairmyree jairmyree deleted the batch-metrics-sovereign-support branch September 27, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Monitor Monitor, Monitor Ingestion, Monitor Query

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants