Package com.newrelic.agent.bridge
Class NoOpCloud
- java.lang.Object
-
- com.newrelic.agent.bridge.NoOpCloud
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdecodeAwsAccountId(java.lang.String accessKey)Decode the account id from the given access key.java.lang.StringgetAccountInfo(com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo)Return the general account information of the provided type.java.lang.StringgetAccountInfo(java.lang.Object sdkClient, com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo)Retrieves the account information for a cloud service SDK client.voidsetAccountInfo(com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo, java.lang.String value)voidsetAccountInfo(java.lang.Object sdkClient, com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo, java.lang.String value)
-
-
-
Field Detail
-
INSTANCE
public static final CloudApi INSTANCE
-
-
Method Detail
-
setAccountInfo
public void setAccountInfo(com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo, java.lang.String value)- Specified by:
setAccountInfoin interfacecom.newrelic.api.agent.Cloud
-
setAccountInfo
public void setAccountInfo(java.lang.Object sdkClient, com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo, java.lang.String value)- Specified by:
setAccountInfoin interfacecom.newrelic.api.agent.Cloud
-
getAccountInfo
public java.lang.String getAccountInfo(com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo)
Description copied from interface:CloudApiReturn the general account information of the provided type. This data is either set byCloud.setAccountInfo(CloudAccountInfo, String)or the agent config.- Specified by:
getAccountInfoin interfaceCloudApi
-
getAccountInfo
public java.lang.String getAccountInfo(java.lang.Object sdkClient, com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo)Description copied from interface:CloudApiRetrieves the account information for a cloud service SDK client. If no data was recorded for the SDK client, the general account information will be returned.- Specified by:
getAccountInfoin interfaceCloudApi
-
decodeAwsAccountId
public java.lang.String decodeAwsAccountId(java.lang.String accessKey)
Description copied from interface:CloudApiDecode the account id from the given access key. This method becomes a noop and always returns null if the config "cloud.aws.account_decoding" is set to false.- Specified by:
decodeAwsAccountIdin interfaceCloudApi
-
-