Class SystemInfo
- java.lang.Object
-
- co.elastic.apm.agent.impl.payload.SystemInfo
-
public class SystemInfo extends java.lang.ObjectInformation about the system the agent is running on.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSystemInfo.Containerstatic classSystemInfo.Kubernetes
-
Constructor Summary
Constructors Constructor Description SystemInfo(java.lang.String architecture, java.lang.String hostname, java.lang.String platform)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SystemInfocreate()static SystemInfocreate(java.lang.String hostname)java.lang.StringgetArchitecture()Architecture of the system the agent is running on.SystemInfo.ContainergetContainerInfo()Info about the container this agent is running on, where appliesjava.lang.StringgetHostname()Hostname of the system the agent is running on.SystemInfo.KubernetesgetKubernetesInfo()Info about the kubernetes Pod and Node this agent is running on, where appliesstatic java.lang.StringgetNameOfLocalHost()java.lang.StringgetPlatform()Name of the system platform the agent is running on.
-
-
-
Method Detail
-
create
public static SystemInfo create(@Nullable java.lang.String hostname)
-
create
public static SystemInfo create()
-
getNameOfLocalHost
public static java.lang.String getNameOfLocalHost()
-
getArchitecture
public java.lang.String getArchitecture()
Architecture of the system the agent is running on.
-
getHostname
public java.lang.String getHostname()
Hostname of the system the agent is running on.
-
getPlatform
public java.lang.String getPlatform()
Name of the system platform the agent is running on.
-
getContainerInfo
@Nullable public SystemInfo.Container getContainerInfo()
Info about the container this agent is running on, where applies- Returns:
- container info
-
getKubernetesInfo
@Nullable public SystemInfo.Kubernetes getKubernetesInfo()
Info about the kubernetes Pod and Node this agent is running on, where applies- Returns:
- container info
-
-