Package com.newrelic.agent.bridge
Interface CloudApi
-
- All Superinterfaces:
com.newrelic.api.agent.Cloud
- All Known Implementing Classes:
NoOpCloud
public interface CloudApi extends com.newrelic.api.agent.CloudInternal Cloud API. This extends the public Cloud API and adds methods for retrieving the data set by the public API methods.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getAccountInfo
java.lang.String getAccountInfo(com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo)
Return the general account information of the provided type. This data is either set byCloud.setAccountInfo(CloudAccountInfo, String)or the agent config.
-
getAccountInfo
java.lang.String getAccountInfo(java.lang.Object sdkClient, com.newrelic.api.agent.CloudAccountInfo cloudAccountInfo)Retrieves 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.
-
decodeAwsAccountId
java.lang.String decodeAwsAccountId(java.lang.String accessKey)
Decode 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.
-
-