Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96580,9 +96580,20 @@ components:
cmdline:
description: Process command line.
type: string
executable:
description: Path to the process executable.
type: string
host:
description: Host running the process.
type: string
identifying_tags:
description: |-
Tags that uniquely identify the process: a host identity tag (`host`, `task_arn`,
or `eks_fargate_node`) and a `pid` tag. Omitted if either tag is unavailable.
items:
description: A tag identifying the process.
type: string
type: array
pid:
description: Process ID.
format: int64
Expand Down Expand Up @@ -210393,7 +210404,11 @@ paths:
data:
- attributes:
cmdline: /usr/bin/python3
executable: /usr/bin/python3
host: my-host
identifying_tags:
- host:my-host
- pid:123
pid: 123
id: abc-123
type: process
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
/** Attributes for a process summary. */
@JsonPropertyOrder({
ProcessSummaryAttributes.JSON_PROPERTY_CMDLINE,
ProcessSummaryAttributes.JSON_PROPERTY_EXECUTABLE,
ProcessSummaryAttributes.JSON_PROPERTY_HOST,
ProcessSummaryAttributes.JSON_PROPERTY_IDENTIFYING_TAGS,
ProcessSummaryAttributes.JSON_PROPERTY_PID,
ProcessSummaryAttributes.JSON_PROPERTY_PPID,
ProcessSummaryAttributes.JSON_PROPERTY_START,
Expand All @@ -36,9 +38,15 @@ public class ProcessSummaryAttributes {
public static final String JSON_PROPERTY_CMDLINE = "cmdline";
private String cmdline;

public static final String JSON_PROPERTY_EXECUTABLE = "executable";
private String executable;

public static final String JSON_PROPERTY_HOST = "host";
private String host;

public static final String JSON_PROPERTY_IDENTIFYING_TAGS = "identifying_tags";
private List<String> identifyingTags = null;

public static final String JSON_PROPERTY_PID = "pid";
private Long pid;

Expand Down Expand Up @@ -78,6 +86,27 @@ public void setCmdline(String cmdline) {
this.cmdline = cmdline;
}

public ProcessSummaryAttributes executable(String executable) {
this.executable = executable;
return this;
}

/**
* Path to the process executable.
*
* @return executable
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EXECUTABLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getExecutable() {
return executable;
}

public void setExecutable(String executable) {
this.executable = executable;
}

public ProcessSummaryAttributes host(String host) {
this.host = host;
return this;
Expand All @@ -99,6 +128,37 @@ public void setHost(String host) {
this.host = host;
}

public ProcessSummaryAttributes identifyingTags(List<String> identifyingTags) {
this.identifyingTags = identifyingTags;
return this;
}

public ProcessSummaryAttributes addIdentifyingTagsItem(String identifyingTagsItem) {
if (this.identifyingTags == null) {
this.identifyingTags = new ArrayList<>();
}
this.identifyingTags.add(identifyingTagsItem);
return this;
}

/**
* Tags that uniquely identify the process: a host identity tag (<code>host</code>, <code>task_arn
* </code>, or <code>eks_fargate_node</code>) and a <code>pid</code> tag. Omitted if either tag is
* unavailable.
*
* @return identifyingTags
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_IDENTIFYING_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getIdentifyingTags() {
return identifyingTags;
}

public void setIdentifyingTags(List<String> identifyingTags) {
this.identifyingTags = identifyingTags;
}

public ProcessSummaryAttributes pid(Long pid) {
this.pid = pid;
return this;
Expand Down Expand Up @@ -290,7 +350,9 @@ public boolean equals(Object o) {
}
ProcessSummaryAttributes processSummaryAttributes = (ProcessSummaryAttributes) o;
return Objects.equals(this.cmdline, processSummaryAttributes.cmdline)
&& Objects.equals(this.executable, processSummaryAttributes.executable)
&& Objects.equals(this.host, processSummaryAttributes.host)
&& Objects.equals(this.identifyingTags, processSummaryAttributes.identifyingTags)
&& Objects.equals(this.pid, processSummaryAttributes.pid)
&& Objects.equals(this.ppid, processSummaryAttributes.ppid)
&& Objects.equals(this.start, processSummaryAttributes.start)
Expand All @@ -303,15 +365,27 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
cmdline, host, pid, ppid, start, tags, timestamp, user, additionalProperties);
cmdline,
executable,
host,
identifyingTags,
pid,
ppid,
start,
tags,
timestamp,
user,
additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ProcessSummaryAttributes {\n");
sb.append(" cmdline: ").append(toIndentedString(cmdline)).append("\n");
sb.append(" executable: ").append(toIndentedString(executable)).append("\n");
sb.append(" host: ").append(toIndentedString(host)).append("\n");
sb.append(" identifyingTags: ").append(toIndentedString(identifyingTags)).append("\n");
sb.append(" pid: ").append(toIndentedString(pid)).append("\n");
sb.append(" ppid: ").append(toIndentedString(ppid)).append("\n");
sb.append(" start: ").append(toIndentedString(start)).append("\n");
Expand Down
Loading