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
25 changes: 24 additions & 1 deletion lib/datadog_api_client/v2/models/process_summary_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@ class ProcessSummaryAttributes
# Process command line.
attr_accessor :cmdline

# Path to the process executable.
attr_accessor :executable

# Host running the process.
attr_accessor :host

# 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.
attr_accessor :identifying_tags

# Process ID.
attr_accessor :pid

Expand All @@ -52,7 +59,9 @@ class ProcessSummaryAttributes
def self.attribute_map
{
:'cmdline' => :'cmdline',
:'executable' => :'executable',
:'host' => :'host',
:'identifying_tags' => :'identifying_tags',
:'pid' => :'pid',
:'ppid' => :'ppid',
:'start' => :'start',
Expand All @@ -67,7 +76,9 @@ def self.attribute_map
def self.openapi_types
{
:'cmdline' => :'String',
:'executable' => :'String',
:'host' => :'String',
:'identifying_tags' => :'Array<String>',
:'pid' => :'Integer',
:'ppid' => :'Integer',
:'start' => :'String',
Expand Down Expand Up @@ -99,10 +110,20 @@ def initialize(attributes = {})
self.cmdline = attributes[:'cmdline']
end

if attributes.key?(:'executable')
self.executable = attributes[:'executable']
end

if attributes.key?(:'host')
self.host = attributes[:'host']
end

if attributes.key?(:'identifying_tags')
if (value = attributes[:'identifying_tags']).is_a?(Array)
self.identifying_tags = value
end
end

if attributes.key?(:'pid')
self.pid = attributes[:'pid']
end
Expand Down Expand Up @@ -157,7 +178,9 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
cmdline == o.cmdline &&
executable == o.executable &&
host == o.host &&
identifying_tags == o.identifying_tags &&
pid == o.pid &&
ppid == o.ppid &&
start == o.start &&
Expand All @@ -171,7 +194,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[cmdline, host, pid, ppid, start, tags, timestamp, user, additional_properties].hash
[cmdline, executable, host, identifying_tags, pid, ppid, start, tags, timestamp, user, additional_properties].hash
end
end
end
Loading