Class: Azure::Storage::Common::Service::Metrics

Inherits:
Object
  • Object
show all
Defined in:
lib/azure/storage/common/service/metrics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Metrics

Returns a new instance of Metrics.

Yields:

  • (_self)

Yield Parameters:



31
32
33
34
35
36
37
# File 'lib/azure/storage/common/service/metrics.rb', line 31

def initialize
  @version = "1.0"
  @enabled = false
  @include_apis = false
  @retention_policy = RetentionPolicy.new
  yield self if block_given?
end

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled.



40
41
42
# File 'lib/azure/storage/common/service/metrics.rb', line 40

def enabled
  @enabled
end

#include_apisObject

Returns the value of attribute include_apis.



41
42
43
# File 'lib/azure/storage/common/service/metrics.rb', line 41

def include_apis
  @include_apis
end

#retention_policyObject

Returns the value of attribute retention_policy.



42
43
44
# File 'lib/azure/storage/common/service/metrics.rb', line 42

def retention_policy
  @retention_policy
end

#versionObject

Returns the value of attribute version.



39
40
41
# File 'lib/azure/storage/common/service/metrics.rb', line 39

def version
  @version
end