Skip to content
Open
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
22 changes: 19 additions & 3 deletions sdk/monitor/azure-resourcemanager-monitor-slis/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,29 @@

## 1.0.0-beta.2 (Unreleased)

### Features Added
- Azure Resource Manager Slis client library for Java. This package contains Microsoft Azure SDK for Slis Management SDK. Package api-version 2025-03-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Breaking Changes

### Bugs Fixed
#### `models.ConditionOperator` was modified

* Wire values changed: `==` to `eq`, `!=` to `ne`, `>` to `gt`, `>=` to `gte`, `<` to `lt`, `<=` to `lte`, `@in` to `in`, `!in` to `notin`, `!contains` to `notcontains`, and `!startswith` to `notstartswith`

#### `models.WindowUptimeCriteriaComparator` was modified

* Wire values changed: `>` to `gt`, `>=` to `gte`, `<` to `lt`, and `<=` to `lte`

#### `models.SamplingType` was modified

* `AVG` was removed
* Wire-value casing changed for `MAX`, `MIN`, and `SUM` to `"Max"`, `"Min"`, and `"Sum"`

Comment thread
saleelpk marked this conversation as resolved.
### Features Added

#### `models.SamplingType` was modified

### Other Changes
* `AVERAGE` was added
* `COUNT` was added

## 1.0.0-beta.1 (2026-04-22)

Expand Down
2 changes: 1 addition & 1 deletion sdk/monitor/azure-resourcemanager-monitor-slis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-monitor-slis</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
6 changes: 6 additions & 0 deletions sdk/monitor/azure-resourcemanager-monitor-slis/assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/monitor/azure-resourcemanager-monitor-slis",
"Tag": "java/monitor/azure-resourcemanager-monitor-slis_7b447d0598"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>com.azure</groupId>
<artifactId>azure-code-customization-parent</artifactId>
<version>1.0.0-beta.1</version> <!-- {x-version-update;com.azure:azure-code-customization-parent;current} -->
<relativePath>../../../parents/azure-code-customization-parent</relativePath>
</parent>

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-monitor-slis-customization</artifactId>
<version>1.0.0-beta.1</version>
<modelVersion>4.0.0</modelVersion>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import com.azure.autorest.customization.Customization;
import com.azure.autorest.customization.Editor;
import com.azure.autorest.customization.LibraryCustomization;
import org.slf4j.Logger;

/**
* Code customization after code generation.
*/
public class MonitorSlisCustomization extends Customization {
@Override
public void customize(LibraryCustomization customization, Logger logger) {
Editor editor = customization.getRawEditor();
customizeConditionOperator(editor);
customizeCondition(editor);
}

private static void customizeConditionOperator(Editor editor) {
String fileName = "src/main/java/com/azure/resourcemanager/monitor/slis/models/ConditionOperator.java";
String fileContent = editor.getFileContent(fileName)
.replace("Matches when `value` is one of the items in the `^^`-delimited list (for example, `value` = \"east^^west^^north\").",
"Matches when {@code value} is one of the items in the {@code ^^}-delimited list (for example, {@code value} = \"east^^west^^north\").")
.replace("Matches when `value` is none of the items in the `^^`-delimited list (for example, `value` =",
"Matches when {@code value} is none of the items in the {@code ^^}-delimited list (for example, {@code value} =");

editor.replaceFile(fileName, fileContent);
}

private static void customizeCondition(Editor editor) {
String fileName = "src/main/java/com/azure/resourcemanager/monitor/slis/models/Condition.java";
String fileContent = editor.getFileContent(fileName)
.replace("`in`", "{@code in}")
.replace("`notin`", "{@code notin}")
.replace("`^^`", "{@code ^^}")
.replace("Get the value property:", "Get the {@code value} property:")
.replace("Set the value property:", "Set the {@code value} property:");

editor.replaceFile(fileName, fileContent);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public final class Condition implements JsonSerializable<Condition> {
private ConditionOperator operator;

/*
* Value used in filtering.
* Value used in filtering. For most operators (eq, ne, lt, lte, gt, gte, startswith, notstartswith, contains,
* notcontains) this is a single value (for example "GetContosoUsers"). For the {@code in} and {@code notin}
* operators, multiple values must be joined by the delimiter {@code ^^} (for example "east^^west^^north").
*/
private String value;

Expand Down Expand Up @@ -128,7 +130,10 @@ public Condition withOperator(ConditionOperator operator) {
}

/**
* Get the value property: Value used in filtering.
* Get the {@code value} property: Value used in filtering. For most operators (eq, ne, lt, lte, gt, gte,
* startswith, notstartswith, contains, notcontains) this is a single value (for example "GetContosoUsers"). For the
* {@code in} and {@code notin} operators, multiple values must be joined by the delimiter {@code ^^} (for example
* "east^^west^^north").
*
Comment thread
saleelpk marked this conversation as resolved.
* @return the value value.
*/
Expand All @@ -137,7 +142,10 @@ public String value() {
}

/**
* Set the value property: Value used in filtering.
* Set the {@code value} property: Value used in filtering. For most operators (eq, ne, lt, lte, gt, gte,
* startswith, notstartswith, contains, notcontains) this is a single value (for example "GetContosoUsers"). For the
* {@code in} and {@code notin} operators, multiple values must be joined by the delimiter {@code ^^} (for example
* "east^^west^^north").
*
* @param value the value value to set.
* @return the Condition object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,44 @@ public final class ConditionOperator extends ExpandableStringEnum<ConditionOpera
/**
* Equal to.
*/
public static final ConditionOperator EQUAL = fromString("==");
public static final ConditionOperator EQUAL = fromString("eq");

/**
* Not equal to.
*/
public static final ConditionOperator NOT_EQUAL = fromString("!=");
public static final ConditionOperator NOT_EQUAL = fromString("ne");

/**
* Less than.
*/
public static final ConditionOperator LESS_THAN = fromString("<");
public static final ConditionOperator LESS_THAN = fromString("lt");

/**
* Less than or equal to.
*/
public static final ConditionOperator LESS_THAN_OR_EQUAL = fromString("<=");
public static final ConditionOperator LESS_THAN_OR_EQUAL = fromString("lte");

/**
* Greater than.
*/
public static final ConditionOperator GREATER_THAN = fromString(">");
public static final ConditionOperator GREATER_THAN = fromString("gt");

/**
* Greater than or equal to.
*/
public static final ConditionOperator GREATER_THAN_OR_EQUAL = fromString(">=");
public static final ConditionOperator GREATER_THAN_OR_EQUAL = fromString("gte");

/**
* In operator.
* Matches when {@code value} is one of the items in the {@code ^^}-delimited list (for example, {@code value} =
* "east^^west^^north").
*/
public static final ConditionOperator IN = fromString("@in");
public static final ConditionOperator IN = fromString("in");

/**
* Not in.
* Matches when {@code value} is none of the items in the {@code ^^}-delimited list (for example, {@code value} =
* "east^^west^^north").
*/
Comment thread
saleelpk marked this conversation as resolved.
public static final ConditionOperator NOT_IN = fromString("!in");
public static final ConditionOperator NOT_IN = fromString("notin");

/**
* Starts with.
Expand All @@ -59,7 +61,7 @@ public final class ConditionOperator extends ExpandableStringEnum<ConditionOpera
/**
* Does not start with.
*/
public static final ConditionOperator NOT_STARTS_WITH = fromString("!startswith");
public static final ConditionOperator NOT_STARTS_WITH = fromString("notstartswith");

/**
* Contains the value.
Expand All @@ -69,7 +71,7 @@ public final class ConditionOperator extends ExpandableStringEnum<ConditionOpera
/**
* Does not contain the value.
*/
public static final ConditionOperator NOT_CONTAINS = fromString("!contains");
public static final ConditionOperator NOT_CONTAINS = fromString("notcontains");

/**
* Creates a new instance of ConditionOperator value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,29 @@
*/
public final class SamplingType extends ExpandableStringEnum<SamplingType> {
/**
* Maximum value.
* Average value.
*/
public static final SamplingType MAX = fromString("max");
public static final SamplingType AVERAGE = fromString("Average");

/**
* Minimum value.
* Summation.
*/
public static final SamplingType MIN = fromString("min");
public static final SamplingType SUM = fromString("Sum");

/**
* Average value.
* Count of occurrences.
*/
public static final SamplingType AVG = fromString("avg");
public static final SamplingType COUNT = fromString("Count");

/**
* Summation.
* Minimum value.
*/
public static final SamplingType MIN = fromString("Min");

/**
* Maximum value.
*/
public static final SamplingType SUM = fromString("sum");
public static final SamplingType MAX = fromString("Max");

/**
* Creates a new instance of SamplingType value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ public final class WindowUptimeCriteriaComparator extends ExpandableStringEnum<W
/**
* Less than the target value.
*/
public static final WindowUptimeCriteriaComparator LESS_THAN = fromString("<");
public static final WindowUptimeCriteriaComparator LESS_THAN = fromString("lt");

/**
* Greater than the target value.
*/
public static final WindowUptimeCriteriaComparator GREATER_THAN = fromString(">");
public static final WindowUptimeCriteriaComparator GREATER_THAN = fromString("gt");

/**
* Less than or equal to the target value.
*/
public static final WindowUptimeCriteriaComparator LESS_THAN_OR_EQUAL = fromString("<=");
public static final WindowUptimeCriteriaComparator LESS_THAN_OR_EQUAL = fromString("lte");

/**
* Greater than or equal to the target value.
*/
public static final WindowUptimeCriteriaComparator GREATER_THAN_OR_EQUAL = fromString(">=");
public static final WindowUptimeCriteriaComparator GREATER_THAN_OR_EQUAL = fromString("gte");

/**
* Creates a new instance of WindowUptimeCriteriaComparator value.
Expand Down
Loading
Loading