-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API changes to Azure Monitor exporter (#18702)
* API changes to Azure Monitor exporter
- Loading branch information
Showing
2 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...ava/com/azure/opentelemetry/exporter/azuremonitor/AzureMonitorExporterServiceVersion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.opentelemetry.exporter.azuremonitor; | ||
|
||
import com.azure.core.util.ServiceVersion; | ||
|
||
/** | ||
* The versions of Azure Monitor service supported by this client library. | ||
*/ | ||
public enum AzureMonitorExporterServiceVersion implements ServiceVersion { | ||
V2("2"); | ||
|
||
private final String version; | ||
|
||
AzureMonitorExporterServiceVersion(String version) { | ||
this.version = version; | ||
} | ||
|
||
@Override | ||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
/** | ||
* Gets the latest service version supported by this client library. | ||
* @return the latest service version. | ||
*/ | ||
public static AzureMonitorExporterServiceVersion getLatest() { | ||
return V2; | ||
} | ||
} |