Class: Azure::ARM::Insights::Models::MetricSettings
- Inherits:
-
Object
- Object
- Azure::ARM::Insights::Models::MetricSettings
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_insights/models/metric_settings.rb
Overview
Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
A value indicating whether this timegrain is enabled.
-
#retention_policy ⇒ RetentionPolicy
The retention policy for this timegrain.
-
#time_grain ⇒ Duration
The timegrain of the metric in ISO8601 format.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MetricSettings class as Ruby Hash.
Instance Attribute Details
#enabled ⇒ Boolean
Returns a value indicating whether this timegrain is enabled.
20 21 22 |
# File 'lib/generated/azure_mgmt_insights/models/metric_settings.rb', line 20 def enabled @enabled end |
#retention_policy ⇒ RetentionPolicy
Returns the retention policy for this timegrain.
23 24 25 |
# File 'lib/generated/azure_mgmt_insights/models/metric_settings.rb', line 23 def retention_policy @retention_policy end |
#time_grain ⇒ Duration
Returns the timegrain of the metric in ISO8601 format.
17 18 19 |
# File 'lib/generated/azure_mgmt_insights/models/metric_settings.rb', line 17 def time_grain @time_grain end |
Class Method Details
.mapper ⇒ Object
Mapper for MetricSettings class as Ruby Hash. This will be used for serialization/deserialization.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/generated/azure_mgmt_insights/models/metric_settings.rb', line 30 def self.mapper() { required: false, serialized_name: 'MetricSettings', type: { name: 'Composite', class_name: 'MetricSettings', model_properties: { time_grain: { required: true, serialized_name: 'timeGrain', type: { name: 'TimeSpan' } }, enabled: { required: true, serialized_name: 'enabled', type: { name: 'Boolean' } }, retention_policy: { required: false, serialized_name: 'retentionPolicy', type: { name: 'Composite', class_name: 'RetentionPolicy' } } } } } end |