Class: DatadogAPIClient::V2::RemediationGroupImageUpdate

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/remediation_group_image_update.rb

Overview

An image or package to upgrade, for a group of host and container vulnerabilities (cloudvm.image_update). The group gathers the open vulnerabilities of running production images that have a fix available, and groups them by grouping_location, remediation_kind, and action.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#action ⇒ Object

Name of the container image, base image, or package to upgrade. The value comes from the first of these attributes that the findings have: @remediation.container_image.latest_major.name, @remediation.base_image.latest_major.name, or @remediation.recommended.name.



29
30
31
# File 'lib/datadog_api_client/v2/models/remediation_group_image_update.rb', line 29

def action
  @action
end

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



59
60
61
# File 'lib/datadog_api_client/v2/models/remediation_group_image_update.rb', line 59

def additional_properties
  @additional_properties
end

#advisory_count ⇒ Object

Number of distinct values of @advisory.id across the group's findings.



32
33
34
# File 'lib/datadog_api_client/v2/models/remediation_group_image_update.rb', line 32

def advisory_count
  @advisory_count
end

#exploitable_cve_count ⇒ Object

Number of distinct values of @advisory.id across the group's findings that have @risk.has_exploit_available set to true.



36
37
38
# File 'lib/datadog_api_client/v2/models/remediation_group_image_update.rb', line 36

def exploitable_cve_count
  @exploitable_cve_count
end

#file_count ⇒ Object

Number of distinct values of @code_location.filename across the group's findings.



39
40
41
# File 'lib/datadog_api_client/v2/models/remediation_group_image_update.rb', line 39

def file_count
  @file_count
end

#grouping_location ⇒ Object

File that contains the findings, from their @code_location.filename attribute. When no file is known, the value is the findings' @container_image.name.



43
44
45
# File 'lib/datadog_api_client/v2/models/remediation_group_image_update.rb', line 43

def grouping_location
  @grouping_location
end

#location_is_filename ⇒ Object

Whether grouping_location is a @code_location.filename rather than a @container_image.name.



46
47
48
# File 'lib/datadog_api_client/v2/models/remediation_group_image_update.rb', line 46

def location_is_filename
  @location_is_filename
end

#remediation_kind ⇒ Object

Kind of upgrade: image_update when the findings have a @remediation.container_image.latest_major.name, base_image_bump when they have @vulnerability.is_inherited_from_base_image set to true, and package_update otherwise.



51
52
53
# File 'lib/datadog_api_client/v2/models/remediation_group_image_update.rb', line 51

def remediation_kind
  @remediation_kind
end

#target_version ⇒ Object

Version to upgrade to: the @remediation.container_image.latest_major.tag or @remediation.base_image.latest_major.tag of the image in action, or else the highest @remediation.recommended.version across the group's findings. Omitted when no version is recommended or when the recommended versions can't be ordered.



57
58
59
# File 'lib/datadog_api_client/v2/models/remediation_group_image_update.rb', line 57

def target_version
  @target_version
end