Package com.newrelic.api.agent
Class DatastoreParameters
- java.lang.Object
-
- com.newrelic.api.agent.DatastoreParameters
-
- All Implemented Interfaces:
ExternalParameters
- Direct Known Subclasses:
SlowQueryDatastoreParameters
public class DatastoreParameters extends java.lang.Object implements ExternalParameters
The input parameters required to report a datastore on theTracedMethod. A fluent builder is provided to allow for easy usage and management of this API.- Since:
- 3.36.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDatastoreParameters.Buildprotected static classDatastoreParameters.Builderstatic interfaceDatastoreParameters.CollectionParameterstatic interfaceDatastoreParameters.DatabaseParameterstatic interfaceDatastoreParameters.InstanceParameterstatic interfaceDatastoreParameters.OperationParameterstatic interfaceDatastoreParameters.SlowQueryParameterstatic interfaceDatastoreParameters.SlowQueryWithInputParameter
-
Constructor Summary
Constructors Modifier Constructor Description protectedDatastoreParameters(DatastoreParameters datastoreParameters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCloudResourceId()java.lang.StringgetCollection()Returns the name of the collection or table.java.lang.StringgetDatabaseName()Return the name of the database where the query was executed.java.lang.StringgetHost()Returns the name of the host where the datastore is located.java.lang.StringgetOperation()Returns the datastore operation.java.lang.StringgetPathOrId()Return the path or id of the instance.java.lang.IntegergetPort()Returns the port for the connection to the datastore.java.lang.StringgetProduct()Returns the name of the vendor.static DatastoreParameters.CollectionParameterproduct(java.lang.String product)Set the name of the vendor.
-
-
-
Constructor Detail
-
DatastoreParameters
protected DatastoreParameters(DatastoreParameters datastoreParameters)
-
-
Method Detail
-
getProduct
public java.lang.String getProduct()
Returns the name of the vendor.- Returns:
- Vendor name
- Since:
- 3.36.0
-
getCollection
public java.lang.String getCollection()
Returns the name of the collection or table.- Returns:
- Table name
- Since:
- 3.36.0
-
getOperation
public java.lang.String getOperation()
Returns the datastore operation. This is the primitive operation type accepted by the datastore itself or the name of the API method in the client library.- Returns:
- Operation performed on the datastore
- Since:
- 3.36.0
-
getHost
public java.lang.String getHost()
Returns the name of the host where the datastore is located.- Returns:
- Host for the external call
- Since:
- 3.36.0
-
getPort
public java.lang.Integer getPort()
Returns the port for the connection to the datastore.- Returns:
- Port for the datastore
- Since:
- 3.36.0
-
getPathOrId
public java.lang.String getPathOrId()
Return the path or id of the instance.- Returns:
- Path or identifier of the datastore
-
getDatabaseName
public java.lang.String getDatabaseName()
Return the name of the database where the query was executed.- Returns:
- Database name
-
getCloudResourceId
public java.lang.String getCloudResourceId()
- Returns:
- the cloud provider's identifier for the message queue. Eg. in AWS, this should be an ARN.
-
product
public static DatastoreParameters.CollectionParameter product(java.lang.String product)
Set the name of the vendor.- Parameters:
product- the name of the product- Returns:
- the next builder interface
-
-