Class: Azure::ARM::Monitor::Models::LogProfileResourcePatch

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

Overview

The log profile resource for patch operations.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#categoriesArray<String>

are created as is convenient to the user. Some values are: ‘Write’, ‘Delete’, and/or ‘Action.’

Returns:

  • (Array<String>)

    the categories of the logs. These categories



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

def categories
  @categories
end

#locationsArray<String>

should be stored or streamed. It is a comma separated list of valid ARM locations including the ‘global’ location.

Returns:

  • (Array<String>)

    List of regions for which Activity Log events



32
33
34
# File 'lib/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb', line 32

def locations
  @locations
end

#retention_policyRetentionPolicy

log.

Returns:



41
42
43
# File 'lib/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb', line 41

def retention_policy
  @retention_policy
end

#service_bus_rule_idString

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

Returns:

  • (String)

    The service bus rule ID of the service bus namespace



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

def service_bus_rule_id
  @service_bus_rule_id
end

#storage_account_idString

would like to send the Activity Log.

Returns:

  • (String)

    the resource id of the storage account to which you



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

def 
  @storage_account_id
end

#tagsHash{String => String}

Returns Resource tags.

Returns:

  • (Hash{String => String})

    Resource tags



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

def tags
  @tags
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb', line 48

def self.mapper()
  {
    required: false,
    serialized_name: 'LogProfileResourcePatch',
    type: {
      name: 'Composite',
      class_name: 'LogProfileResourcePatch',
      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'
          }
        },
        locations: {
          required: true,
          serialized_name: 'properties.locations',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        categories: {
          required: true,
          serialized_name: 'properties.categories',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        retention_policy: {
          required: true,
          serialized_name: 'properties.retentionPolicy',
          type: {
            name: 'Composite',
            class_name: 'RetentionPolicy'
          }
        }
      }
    }
  }
end