Class AgentBasedEnvironment
- java.lang.Object
-
- software.amazon.cloudwatchlogs.emf.environment.AgentBasedEnvironment
-
- All Implemented Interfaces:
Environment
- Direct Known Subclasses:
DefaultEnvironment,EC2Environment,ECSEnvironment
public abstract class AgentBasedEnvironment extends java.lang.Object implements Environment
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAgentBasedEnvironment(Configuration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLogGroupName()Get log group name.java.lang.StringgetLogStreamName()java.lang.StringgetName()Get the environment name.ISinkgetSink()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.cloudwatchlogs.emf.environment.Environment
configureContext, getType, probe
-
-
-
-
Constructor Detail
-
AgentBasedEnvironment
protected AgentBasedEnvironment(Configuration config)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:EnvironmentGet the environment name. This will be used to set the ServiceName dimension.- Specified by:
getNamein interfaceEnvironment- Returns:
- the name of the environment
-
getLogGroupName
public java.lang.String getLogGroupName()
Description copied from interface:EnvironmentGet log group name. This will be used to set the LogGroup dimension.- Specified by:
getLogGroupNamein interfaceEnvironment- Returns:
- the log group name
-
getLogStreamName
public java.lang.String getLogStreamName()
-
getSink
public ISink getSink()
- Specified by:
getSinkin interfaceEnvironment- Returns:
- an appropriate sink for this environment
-
-