Class Service


  • public class Service
    extends java.lang.Object
    Information about the instrumented Service
    • Constructor Summary

      Constructors 
      Constructor Description
      Service()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Agent getAgent()
      Name and version of the Elastic APM agent (Required)
      java.lang.String getEnvironment()
      Environment name of the service, e.g.
      Language getLanguage()
      Name and version of the programming language used
      java.lang.String getName()
      Immutable name of the service emitting this event (Required)
      Node getNode()
      Representation of a service node
      RuntimeInfo getRuntime()
      Name and version of the language runtime running this service
      java.lang.String getVersion()
      Version of the service emitting this event
      Service withAgent​(Agent agent)
      Name and version of the Elastic APM agent (Required)
      Service withEnvironment​(java.lang.String environment)
      Environment name of the service, e.g.
      Service withLanguage​(Language language)
      Name and version of the programming language used
      Service withName​(java.lang.String name)
      Immutable name of the service emitting this event (Required)
      Service withNode​(Node node)
      Representation of a service node
      Service withRuntime​(RuntimeInfo runtime)
      Name and version of the language runtime running this service
      Service withVersion​(java.lang.String version)
      Version of the service emitting this event
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Service

        public Service()
    • 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
      • withNode

        public Service withNode​(Node node)
        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