Class Service
- java.lang.Object
-
- co.elastic.apm.agent.impl.payload.Service
-
public class Service extends java.lang.ObjectInformation about the instrumented Service
-
-
Constructor Summary
Constructors Constructor Description Service()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentgetAgent()Name and version of the Elastic APM agent (Required)java.lang.StringgetEnvironment()Environment name of the service, e.g.LanguagegetLanguage()Name and version of the programming language usedjava.lang.StringgetName()Immutable name of the service emitting this event (Required)NodegetNode()Representation of a service nodeRuntimeInfogetRuntime()Name and version of the language runtime running this servicejava.lang.StringgetVersion()Version of the service emitting this eventServicewithAgent(Agent agent)Name and version of the Elastic APM agent (Required)ServicewithEnvironment(java.lang.String environment)Environment name of the service, e.g.ServicewithLanguage(Language language)Name and version of the programming language usedServicewithName(java.lang.String name)Immutable name of the service emitting this event (Required)ServicewithNode(Node node)Representation of a service nodeServicewithRuntime(RuntimeInfo runtime)Name and version of the language runtime running this serviceServicewithVersion(java.lang.String version)Version of the service emitting this event
-
-
-
Method Detail
-
getAgent
@Nullable public Agent getAgent()
Name and version of the Elastic APM agent (Required)
-
withAgent
public Service withAgent(Agent agent)
Name and version of the Elastic APM agent (Required)
-
getLanguage
@Nullable public Language getLanguage()
Name and version of the programming language used
-
withLanguage
public Service withLanguage(Language language)
Name and version of the programming language used
-
getNode
@Nullable public Node getNode()
Representation of a service node
-
getName
@Nullable public java.lang.String getName()
Immutable name of the service emitting this event (Required)
-
withName
public Service withName(java.lang.String name)
Immutable name of the service emitting this event (Required)
-
getEnvironment
@Nullable public java.lang.String getEnvironment()
Environment name of the service, e.g. "production" or "staging"
-
withEnvironment
public Service withEnvironment(java.lang.String environment)
Environment name of the service, e.g. "production" or "staging"
-
getRuntime
@Nullable public RuntimeInfo getRuntime()
Name and version of the language runtime running this service
-
withRuntime
public Service withRuntime(RuntimeInfo runtime)
Name and version of the language runtime running this service
-
getVersion
@Nullable public java.lang.String getVersion()
Version of the service emitting this event
-
withVersion
public Service withVersion(java.lang.String version)
Version of the service emitting this event
-
-