Skip to content

Commit

Permalink
Fix ResourceType API annotations (opensearch-project#15497)
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <[email protected]>
  • Loading branch information
reta authored and dk2k committed Oct 16, 2024
1 parent e2e9bf3 commit a33b3ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/main/java/org/opensearch/wlm/ResourceType.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@

/**
* Enum to hold the resource type
*
* @opensearch.api
*/
@PublicApi(since = "2.x")
@PublicApi(since = "2.17.0")
public enum ResourceType {
CPU("cpu", task -> task.getTotalResourceUtilization(ResourceStats.CPU), true),
MEMORY("memory", task -> task.getTotalResourceUtilization(ResourceStats.MEMORY), true);
Expand Down

0 comments on commit a33b3ae

Please sign in to comment.