public class AwsAsgUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static AwsAsgUtil |
getInstance() |
long |
getNumberofASGQueries()
Gets the number of ASG queries done in the period.
|
long |
getNumberofASGQueryFailures()
Gets the number of ASG queries that failed because of some reason.
|
long |
getNumberofElementsinASGCache()
Gets the number of elements in the ASG cache.
|
boolean |
isASGEnabled(java.lang.String asgName)
Return the status of the ASG whether is enabled or disabled for service.
|
void |
setStatus(java.lang.String asgName,
boolean enabled)
Sets the status of the ASG.
|
public static AwsAsgUtil getInstance()
public boolean isASGEnabled(java.lang.String asgName)
asgName - - The name of the ASGpublic void setStatus(java.lang.String asgName,
boolean enabled)
asgName - - The name of the ASGenabled - - true to enable, false to disable@Monitor(name="numOfElementsinASGCache",
description="Number of elements in the ASG Cache",
type=GAUGE)
public long getNumberofElementsinASGCache()
@Monitor(name="numOfASGQueries",
description="Number of queries made to AWS to retrieve ASG information",
type=COUNTER)
public long getNumberofASGQueries()
@Monitor(name="numOfASGQueryFailures",
description="Number of queries made to AWS to retrieve ASG information and that failed",
type=COUNTER)
public long getNumberofASGQueryFailures()