Class: Google::Apis::HealthcareV1::Hl7V2StoreMetric

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/representations.rb

Overview

Count of messages and total storage size by type for a given HL7 store.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Hl7V2StoreMetric

Returns a new instance of Hl7V2StoreMetric.



2811
2812
2813
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2811

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#countFixnum

The total count of HL7v2 messages in the store for the given message type. Corresponds to the JSON property count

Returns:

  • (Fixnum)


2798
2799
2800
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2798

def count
  @count
end

#message_typeString

The Hl7v2 message type this metric applies to, such as ADT or ORU. Corresponds to the JSON property messageType

Returns:

  • (String)


2803
2804
2805
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2803

def message_type
  @message_type
end

#structured_storage_size_bytesFixnum

The total amount of structured storage used by HL7v2 messages of this message type in the store. Corresponds to the JSON property structuredStorageSizeBytes

Returns:

  • (Fixnum)


2809
2810
2811
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2809

def structured_storage_size_bytes
  @structured_storage_size_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2816
2817
2818
2819
2820
# File 'lib/google/apis/healthcare_v1/classes.rb', line 2816

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @message_type = args[:message_type] if args.key?(:message_type)
  @structured_storage_size_bytes = args[:structured_storage_size_bytes] if args.key?(:structured_storage_size_bytes)
end