ManagedInstanceUsage

class oci.jms.models.ManagedInstanceUsage(**kwargs)

Bases: object

Managed instance usage during a specified time period. An entity that emits usage events to Java Management Service (JMS) is represented as a managed instance. A managed instance has a unique identity which is used by JMS to distinguish it from other managed instances. Currently, JMS supports only one kind of managed instance, a Management Agent.

Attributes

DRS_FILE_STATUS_ABSENT A constant which can be used with the drs_file_status property of a ManagedInstanceUsage.
DRS_FILE_STATUS_MISMATCH A constant which can be used with the drs_file_status property of a ManagedInstanceUsage.
DRS_FILE_STATUS_NOT_CONFIGURED A constant which can be used with the drs_file_status property of a ManagedInstanceUsage.
DRS_FILE_STATUS_PRESENT A constant which can be used with the drs_file_status property of a ManagedInstanceUsage.
MANAGED_INSTANCE_TYPE_ORACLE_MANAGEMENT_AGENT A constant which can be used with the managed_instance_type property of a ManagedInstanceUsage.
agent Gets the agent of this ManagedInstanceUsage.
approximate_application_count Gets the approximate_application_count of this ManagedInstanceUsage.
approximate_installation_count Gets the approximate_installation_count of this ManagedInstanceUsage.
approximate_jre_count Gets the approximate_jre_count of this ManagedInstanceUsage.
drs_file_status Gets the drs_file_status of this ManagedInstanceUsage.
host_id Gets the host_id of this ManagedInstanceUsage.
hostname Gets the hostname of this ManagedInstanceUsage.
managed_instance_id [Required] Gets the managed_instance_id of this ManagedInstanceUsage.
managed_instance_type [Required] Gets the managed_instance_type of this ManagedInstanceUsage.
operating_system Gets the operating_system of this ManagedInstanceUsage.
time_end Gets the time_end of this ManagedInstanceUsage.
time_first_seen Gets the time_first_seen of this ManagedInstanceUsage.
time_last_seen Gets the time_last_seen of this ManagedInstanceUsage.
time_start Gets the time_start of this ManagedInstanceUsage.

Methods

__init__(**kwargs) Initializes a new ManagedInstanceUsage object with values from keyword arguments.
DRS_FILE_STATUS_ABSENT = 'ABSENT'

A constant which can be used with the drs_file_status property of a ManagedInstanceUsage. This constant has a value of “ABSENT”

DRS_FILE_STATUS_MISMATCH = 'MISMATCH'

A constant which can be used with the drs_file_status property of a ManagedInstanceUsage. This constant has a value of “MISMATCH”

DRS_FILE_STATUS_NOT_CONFIGURED = 'NOT_CONFIGURED'

A constant which can be used with the drs_file_status property of a ManagedInstanceUsage. This constant has a value of “NOT_CONFIGURED”

DRS_FILE_STATUS_PRESENT = 'PRESENT'

A constant which can be used with the drs_file_status property of a ManagedInstanceUsage. This constant has a value of “PRESENT”

MANAGED_INSTANCE_TYPE_ORACLE_MANAGEMENT_AGENT = 'ORACLE_MANAGEMENT_AGENT'

A constant which can be used with the managed_instance_type property of a ManagedInstanceUsage. This constant has a value of “ORACLE_MANAGEMENT_AGENT”

__init__(**kwargs)

Initializes a new ManagedInstanceUsage object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • managed_instance_id (str) – The value to assign to the managed_instance_id property of this ManagedInstanceUsage.
  • managed_instance_type (str) – The value to assign to the managed_instance_type property of this ManagedInstanceUsage. Allowed values for this property are: “ORACLE_MANAGEMENT_AGENT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • hostname (str) – The value to assign to the hostname property of this ManagedInstanceUsage.
  • host_id (str) – The value to assign to the host_id property of this ManagedInstanceUsage.
  • operating_system (oci.jms.models.OperatingSystem) – The value to assign to the operating_system property of this ManagedInstanceUsage.
  • agent (oci.jms.models.Agent) – The value to assign to the agent property of this ManagedInstanceUsage.
  • approximate_application_count (int) – The value to assign to the approximate_application_count property of this ManagedInstanceUsage.
  • approximate_installation_count (int) – The value to assign to the approximate_installation_count property of this ManagedInstanceUsage.
  • approximate_jre_count (int) – The value to assign to the approximate_jre_count property of this ManagedInstanceUsage.
  • drs_file_status (str) – The value to assign to the drs_file_status property of this ManagedInstanceUsage. Allowed values for this property are: “PRESENT”, “ABSENT”, “MISMATCH”, “NOT_CONFIGURED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_start (datetime) – The value to assign to the time_start property of this ManagedInstanceUsage.
  • time_end (datetime) – The value to assign to the time_end property of this ManagedInstanceUsage.
  • time_first_seen (datetime) – The value to assign to the time_first_seen property of this ManagedInstanceUsage.
  • time_last_seen (datetime) – The value to assign to the time_last_seen property of this ManagedInstanceUsage.
agent

Gets the agent of this ManagedInstanceUsage.

Returns:The agent of this ManagedInstanceUsage.
Return type:oci.jms.models.Agent
approximate_application_count

Gets the approximate_application_count of this ManagedInstanceUsage. The approximate count of applications reported by this managed instance.

Returns:The approximate_application_count of this ManagedInstanceUsage.
Return type:int
approximate_installation_count

Gets the approximate_installation_count of this ManagedInstanceUsage. The approximate count of installations reported by this managed instance.

Returns:The approximate_installation_count of this ManagedInstanceUsage.
Return type:int
approximate_jre_count

Gets the approximate_jre_count of this ManagedInstanceUsage. The approximate count of Java Runtimes reported by this managed instance.

Returns:The approximate_jre_count of this ManagedInstanceUsage.
Return type:int
drs_file_status

Gets the drs_file_status of this ManagedInstanceUsage. DRS file status

Allowed values for this property are: “PRESENT”, “ABSENT”, “MISMATCH”, “NOT_CONFIGURED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The drs_file_status of this ManagedInstanceUsage.
Return type:str
host_id

Gets the host_id of this ManagedInstanceUsage. The host OCID of the related managed instance.

Returns:The host_id of this ManagedInstanceUsage.
Return type:str
hostname

Gets the hostname of this ManagedInstanceUsage. The hostname of the managed instance (if applicable).

Returns:The hostname of this ManagedInstanceUsage.
Return type:str
managed_instance_id

[Required] Gets the managed_instance_id of this ManagedInstanceUsage. The OCID of the related managed instance.

Returns:The managed_instance_id of this ManagedInstanceUsage.
Return type:str
managed_instance_type

[Required] Gets the managed_instance_type of this ManagedInstanceUsage. The type of the source of events.

Allowed values for this property are: “ORACLE_MANAGEMENT_AGENT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The managed_instance_type of this ManagedInstanceUsage.
Return type:str
operating_system

Gets the operating_system of this ManagedInstanceUsage.

Returns:The operating_system of this ManagedInstanceUsage.
Return type:oci.jms.models.OperatingSystem
time_end

Gets the time_end of this ManagedInstanceUsage. Upper bound of the specified time period filter. JMS provides a view of the data that is _per day_. The query uses only the date element of the parameter.

Returns:The time_end of this ManagedInstanceUsage.
Return type:datetime
time_first_seen

Gets the time_first_seen of this ManagedInstanceUsage. The date and time the resource was _first_ reported to JMS. This is potentially _before_ the specified time period provided by the filters. For example, a resource can be first reported to JMS before the start of a specified time period, if it is also reported during the time period.

Returns:The time_first_seen of this ManagedInstanceUsage.
Return type:datetime
time_last_seen

Gets the time_last_seen of this ManagedInstanceUsage. The date and time the resource was _last_ reported to JMS. This is potentially _after_ the specified time period provided by the filters. For example, a resource can be last reported to JMS before the start of a specified time period, if it is also reported during the time period.

Returns:The time_last_seen of this ManagedInstanceUsage.
Return type:datetime
time_start

Gets the time_start of this ManagedInstanceUsage. Lower bound of the specified time period filter. JMS provides a view of the data that is _per day_. The query uses only the date element of the parameter.

Returns:The time_start of this ManagedInstanceUsage.
Return type:datetime