Class: Azure::MediaServices::Mgmt::V2020_05_01::Models::EdgeUsageDataCollectionPolicy

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-05-01/generated/azure_mgmt_media_services/models/edge_usage_data_collection_policy.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#data_collection_frequencyString

format e.g. PT10M , PT5H.

Returns:

  • (String)

    Usage data collection frequency in ISO 8601 duration



18
19
20
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/edge_usage_data_collection_policy.rb', line 18

def data_collection_frequency
  @data_collection_frequency
end

#data_reporting_frequencyString

format e.g. PT10M , PT5H.

Returns:

  • (String)

    Usage data reporting frequency in ISO 8601 duration



22
23
24
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/edge_usage_data_collection_policy.rb', line 22

def data_reporting_frequency
  @data_reporting_frequency
end

#event_hub_detailsEdgeUsageDataEventHub

will be reported.

Returns:



30
31
32
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/edge_usage_data_collection_policy.rb', line 30

def event_hub_details
  @event_hub_details
end

#max_allowed_unreported_usage_durationString

will not be hampered for not reporting the usage data.

Returns:

  • (String)

    Maximum time for which the functionality of the device



26
27
28
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/edge_usage_data_collection_policy.rb', line 26

def max_allowed_unreported_usage_duration
  @max_allowed_unreported_usage_duration
end

Class Method Details

.mapperObject

Mapper for EdgeUsageDataCollectionPolicy class as Ruby Hash. This will be used for serialization/deserialization.



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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/edge_usage_data_collection_policy.rb', line 37

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EdgeUsageDataCollectionPolicy',
    type: {
      name: 'Composite',
      class_name: 'EdgeUsageDataCollectionPolicy',
      model_properties: {
        data_collection_frequency: {
          client_side_validation: true,
          required: false,
          serialized_name: 'dataCollectionFrequency',
          type: {
            name: 'String'
          }
        },
        data_reporting_frequency: {
          client_side_validation: true,
          required: false,
          serialized_name: 'dataReportingFrequency',
          type: {
            name: 'String'
          }
        },
        max_allowed_unreported_usage_duration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'maxAllowedUnreportedUsageDuration',
          type: {
            name: 'String'
          }
        },
        event_hub_details: {
          client_side_validation: true,
          required: false,
          serialized_name: 'eventHubDetails',
          type: {
            name: 'Composite',
            class_name: 'EdgeUsageDataEventHub'
          }
        }
      }
    }
  }
end