Class: Azure::ARM::Monitor::Models::ServiceDiagnosticSettingsResourcePatch

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb

Overview

Service diagnostic setting resource for patch operations

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#event_hub_authorization_rule_idString

authorization rule.



31
32
33
# File 'lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb', line 31

def event_hub_authorization_rule_id
  @event_hub_authorization_rule_id
end

#logsArray<LogSettings>



37
38
39
# File 'lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb', line 37

def logs
  @logs
end

#metricsArray<MetricSettings>



34
35
36
# File 'lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb', line 34

def metrics
  @metrics
end

#service_bus_rule_idString

in which you would like to have Event Hubs created for streaming Diagnostic Logs. The rule ID is of the format: ‘bus resource ID/authorizationrules/name’.



27
28
29
# File 'lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb', line 27

def service_bus_rule_id
  @service_bus_rule_id
end

#storage_account_idString

would like to send Diagnostic Logs.



21
22
23
# File 'lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb', line 21

def 
  
end

#tagsHash{String => String}



17
18
19
# File 'lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb', line 17

def tags
  @tags
end

#workspace_idString

workspace) for a Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2



43
44
45
# File 'lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb', line 43

def workspace_id
  @workspace_id
end

Class Method Details

.mapperObject

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



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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# File 'lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb', line 50

def self.mapper()
  {
    required: false,
    serialized_name: 'ServiceDiagnosticSettingsResourcePatch',
    type: {
      name: 'Composite',
      class_name: 'ServiceDiagnosticSettingsResourcePatch',
      model_properties: {
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        storage_account_id: {
          required: false,
          serialized_name: 'properties.storageAccountId',
          type: {
            name: 'String'
          }
        },
        service_bus_rule_id: {
          required: false,
          serialized_name: 'properties.serviceBusRuleId',
          type: {
            name: 'String'
          }
        },
        event_hub_authorization_rule_id: {
          required: false,
          serialized_name: 'properties.eventHubAuthorizationRuleId',
          type: {
            name: 'String'
          }
        },
        metrics: {
          required: false,
          serialized_name: 'properties.metrics',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'MetricSettingsElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MetricSettings'
                }
            }
          }
        },
        logs: {
          required: false,
          serialized_name: 'properties.logs',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'LogSettingsElementType',
                type: {
                  name: 'Composite',
                  class_name: 'LogSettings'
                }
            }
          }
        },
        workspace_id: {
          required: false,
          serialized_name: 'properties.workspaceId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end