class Azure::Monitor::Mgmt::V2016_09_01::Models::ServiceDiagnosticSettingsResource

Description of a service diagnostic setting

Attributes

event_hub_authorization_rule_id[RW]

@return [String] The resource Id for the event hub namespace authorization rule.

logs[RW]

@return [Array<LogSettings>] the list of logs settings.

metrics[RW]

@return [Array<MetricSettings>] the list of metric settings.

service_bus_rule_id[RW]

@return [String] The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming Diagnostic Logs. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'.

storage_account_id[RW]

@return [String] The resource ID of the storage account to which you would like to send Diagnostic Logs.

workspace_id[RW]

@return [String] The workspace ID (resource ID of a Log Analytics 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

Public Class Methods

mapper() click to toggle source

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

# File lib/2016-09-01/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource.rb, line 46
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServiceDiagnosticSettingsResource',
    type: {
      name: 'Composite',
      class_name: 'ServiceDiagnosticSettingsResource',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        storage_account_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.storageAccountId',
          type: {
            name: 'String'
          }
        },
        service_bus_rule_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.serviceBusRuleId',
          type: {
            name: 'String'
          }
        },
        event_hub_authorization_rule_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.eventHubAuthorizationRuleId',
          type: {
            name: 'String'
          }
        },
        metrics: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.metrics',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MetricSettingsElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MetricSettings'
                }
            }
          }
        },
        logs: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.logs',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'LogSettingsElementType',
                type: {
                  name: 'Composite',
                  class_name: 'LogSettings'
                }
            }
          }
        },
        workspace_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.workspaceId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end