Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions eng/lintingconfigs/revapi/track2/revapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,35 @@
"code": "java.method.removed",
"old" : "method java.lang.String com.azure.resourcemanager.containerservice.models.ManagedClusterAgentPoolProfile::nodeImageVersion()",
"justification": "Not a break, same method exists on its parent class."
},
{
"ignore": true,
"code": "java.method.visibilityReduced",
"old": "method void com.azure.resourcemanager.monitor.models.AlertSeverity::<init>()",
"new": "method void com.azure.resourcemanager.monitor.models.AlertSeverity::<init>(java.lang.Long)",
"oldVisibility": "public",
"newVisibility": "private",
"justification": "Changed due to stream-style serialization."
},
{
"ignore": true,
"code": "java.method.removed",
"old": "method com.azure.resourcemanager.monitor.models.AlertSeverity com.azure.resourcemanager.monitor.models.AlertSeverity::fromLong(long)",
"justification": "Changed due to stream-style serialization."
},
{
"ignore": true,
"code": "java.missing.oldSuperType",
"old": "class com.azure.resourcemanager.monitor.models.AlertSeverity",
"new": "class com.azure.resourcemanager.monitor.models.AlertSeverity",
"superClass": "com.azure.core.util.ExpandableStringEnum<com.azure.resourcemanager.monitor.models.AlertSeverity>",
"justification": "Changed due to stream-style serialization."
},
{
"ignore": true,
"code": "java.method.removed",
"old": "method com.azure.resourcemanager.monitor.models.AutoscaleNotification com.azure.resourcemanager.monitor.models.AutoscaleNotification::withOperation(java.lang.String)",
"justification": "The property is a constant, and hence not settable."
}
]
}
Expand Down
14 changes: 7 additions & 7 deletions sdk/monitor/azure-resourcemanager-monitor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Release History

## 2.54.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
## 2.54.0-beta.1 (2025-11-06)

### Other Changes

- Updated `api-version` of metric alert to `2024-03-01-preview`.
- Updated `api-version` of metric definitions to `2021-05-01`.
- Updated `api-version` of metrics to `2021-05-01`.
- Updated `api-version` of scheduled query rule to `2023-12-01`.
- Updated `api-version` of data collection to `2024-03-11`.

## 2.53.4 (2025-10-27)

### Other Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public interface BaselinesClient {
* @param resourceUri The identifier of the resource.
* @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself
* has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**.
* @param metricnamespace Metric namespace to query metric definitions for.
* @param metricnamespace Metric namespace that contains the requested metric names.
* @param timespan The timespan of the query. It is a string with the following format
* 'startDateTime_ISO/endDateTime_ISO'.
* @param interval The interval (i.e. timegrain) of the query.
Expand Down Expand Up @@ -80,7 +80,7 @@ PagedFlux<SingleMetricBaselineInner> listAsync(String resourceUri, String metric
* @param resourceUri The identifier of the resource.
* @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself
* has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**.
* @param metricnamespace Metric namespace to query metric definitions for.
* @param metricnamespace Metric namespace that contains the requested metric names.
* @param timespan The timespan of the query. It is a string with the following format
* 'startDateTime_ISO/endDateTime_ISO'.
* @param interval The interval (i.e. timegrain) of the query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,22 @@ public interface DataCollectionRuleAssociationsClient extends InnerSupportsDelet
PagedIterable<DataCollectionRuleAssociationProxyOnlyResourceInner> listByResource(String resourceUri,
Context context);

/**
* Lists associations for the specified data collection rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
* @param skipToken (Optional) The continuation token for paginated responses.
* @param top (Optional) The max number of items to return per page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a pageable list of resources as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<DataCollectionRuleAssociationProxyOnlyResourceInner> listByRuleAsync(String resourceGroupName,
String dataCollectionRuleName, String skipToken, Integer top);

/**
* Lists associations for the specified data collection rule.
*
Expand Down Expand Up @@ -89,6 +105,8 @@ PagedIterable<DataCollectionRuleAssociationProxyOnlyResourceInner> listByRule(St
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
* @param skipToken (Optional) The continuation token for paginated responses.
* @param top (Optional) The max number of items to return per page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand All @@ -97,7 +115,7 @@ PagedIterable<DataCollectionRuleAssociationProxyOnlyResourceInner> listByRule(St
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<DataCollectionRuleAssociationProxyOnlyResourceInner> listByRule(String resourceGroupName,
String dataCollectionRuleName, Context context);
String dataCollectionRuleName, String skipToken, Integer top, Context context);

/**
* Lists associations for the specified data collection endpoint.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,16 @@ Response<DataCollectionRuleResourceInner> updateWithResponse(String resourceGrou
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
* @param deleteAssociations If set to 'true' then all associations of this data collection rule will also be
* deleted.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String dataCollectionRuleName);
Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String dataCollectionRuleName,
Boolean deleteAssociations);

/**
* Deletes a data collection rule.
Expand All @@ -295,14 +298,17 @@ Response<DataCollectionRuleResourceInner> updateWithResponse(String resourceGrou
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
* @param deleteAssociations If set to 'true' then all associations of this data collection rule will also be
* deleted.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(String resourceGroupName, String dataCollectionRuleName, Context context);
Response<Void> deleteWithResponse(String resourceGroupName, String dataCollectionRuleName,
Boolean deleteAssociations, Context context);

/**
* Deletes a data collection rule.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,70 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.monitor.fluent.models.MetricDefinitionInner;
import com.azure.resourcemanager.monitor.fluent.models.SubscriptionScopeMetricDefinitionInner;

/**
* An instance of this class provides access to all the operations defined in MetricDefinitionsClient.
*/
public interface MetricDefinitionsClient {
/**
* Lists the metric definitions for the subscription.
*
* @param region The region where the metrics you want reside.
* @param metricnamespace Metric namespace where the metrics you want reside.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return represents collection of metric definitions as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<SubscriptionScopeMetricDefinitionInner> listAtSubscriptionScopeAsync(String region,
String metricnamespace);

/**
* Lists the metric definitions for the subscription.
*
* @param region The region where the metrics you want reside.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return represents collection of metric definitions as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedFlux<SubscriptionScopeMetricDefinitionInner> listAtSubscriptionScopeAsync(String region);

/**
* Lists the metric definitions for the subscription.
*
* @param region The region where the metrics you want reside.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return represents collection of metric definitions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SubscriptionScopeMetricDefinitionInner> listAtSubscriptionScope(String region);

/**
* Lists the metric definitions for the subscription.
*
* @param region The region where the metrics you want reside.
* @param metricnamespace Metric namespace where the metrics you want reside.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return represents collection of metric definitions as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SubscriptionScopeMetricDefinitionInner> listAtSubscriptionScope(String region, String metricnamespace,
Context context);

/**
* Lists the metric definitions for the resource.
*
* @param resourceUri The identifier of the resource.
* @param metricnamespace Metric namespace to query metric definitions for.
* @param metricnamespace Metric namespace where the metrics you want reside.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand Down Expand Up @@ -56,7 +110,7 @@ public interface MetricDefinitionsClient {
* Lists the metric definitions for the resource.
*
* @param resourceUri The identifier of the resource.
* @param metricnamespace Metric namespace to query metric definitions for.
* @param metricnamespace Metric namespace where the metrics you want reside.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand Down
Loading
Loading