-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Fix findings and PR comments
- Loading branch information
1 parent
b7651fc
commit bf183ea
Showing
12 changed files
with
51 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 8 additions & 9 deletions
17
backend/src/main/java/rocks/inspectit/gepard/agentmanager/agent/model/Agent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
/* (C) 2024 */ | ||
package rocks.inspectit.gepard.agentmanager.agent.model; | ||
|
||
import jakarta.annotation.Nonnull; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.time.Instant; | ||
import lombok.*; | ||
|
||
/** Represents an agent which is connected to the config server. */ | ||
@RequiredArgsConstructor | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
@ToString | ||
@Getter | ||
public class Agent { | ||
/** The name of the service which is running the agent. */ | ||
@Nonnull private String serviceName; | ||
@NotNull private String serviceName; | ||
|
||
/** The process id of the JVM which carries the agent. */ | ||
@Nonnull private Long pid; | ||
@NotNull private Long pid; | ||
|
||
/** The Gepard-Version. */ | ||
@Nonnull private String gepardVersion; | ||
@NotNull private String gepardVersion; | ||
|
||
/** The OpenTelemetry-Java-Instrumentation-Version. */ | ||
@Nonnull private String otelVersion; | ||
@NotNull private String otelVersion; | ||
|
||
/** The start time of the JVM which carries the agent. */ | ||
@Nonnull private Instant startTime; | ||
@NotNull private Instant startTime; | ||
|
||
/** The Java version of the JVM which carries the agent. */ | ||
@Nonnull private String javaVersion; | ||
@NotNull private String javaVersion; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters