Package codes.grow.packages.datadogapm
Record Class AgentInfo
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.AgentInfo
- Record Components:
version- Agent version, e.g.7.85.4(empty when not reported)gitCommit- Agent build commit (empty when not reported)endpoints- trace intake endpoints the Agent servesconfig- the Agent's reported configurationraw- the whole document
public record AgentInfo(String version, String gitCommit, List<String> endpoints, com.fasterxml.jackson.databind.JsonNode config, com.fasterxml.jackson.databind.JsonNode raw)
extends Record
The Datadog Agent's
GET /info document (fields this package reads).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeconfig()Returns the value of theconfigrecord component.Returns the value of theendpointsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegitCommitrecord component.final inthashCode()Returns a hash code value for this object.com.fasterxml.jackson.databind.JsonNoderaw()Returns the value of therawrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
AgentInfo
public AgentInfo(String version, String gitCommit, List<String> endpoints, com.fasterxml.jackson.databind.JsonNode config, com.fasterxml.jackson.databind.JsonNode raw) Copies the endpoints.- Parameters:
version- versiongitCommit- commitendpoints- endpointsconfig- configraw- document
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
gitCommit
Returns the value of thegitCommitrecord component.- Returns:
- the value of the
gitCommitrecord component
-
endpoints
Returns the value of theendpointsrecord component.- Returns:
- the value of the
endpointsrecord component
-
config
public com.fasterxml.jackson.databind.JsonNode config()Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
raw
public com.fasterxml.jackson.databind.JsonNode raw()Returns the value of therawrecord component.- Returns:
- the value of the
rawrecord component
-