Class: Azure::ApiManagement::Mgmt::V2019_12_01::Models::DiagnosticContract

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb

Overview

Diagnostic details.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#always_logAlwaysLog

settings should not apply. Possible values include: ‘allErrors’

Returns:

  • (AlwaysLog)

    Specifies for what type of messages sampling



17
18
19
# File 'lib/2019-12-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 17

def always_log
  @always_log
end

#backendPipelineDiagnosticSettings

incoming/outgoing HTTP messages to the Backend

Returns:



31
32
33
# File 'lib/2019-12-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 31

def backend
  @backend
end

#frontendPipelineDiagnosticSettings

incoming/outgoing HTTP messages to the Gateway.

Returns:



27
28
29
# File 'lib/2019-12-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 27

def frontend
  @frontend
end

#http_correlation_protocolHttpCorrelationProtocol

Application Insights diagnostics. Possible values include: ‘None’, ‘Legacy’, ‘W3C’

Returns:



39
40
41
# File 'lib/2019-12-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 39

def http_correlation_protocol
  @http_correlation_protocol
end

#log_client_ipBoolean

Returns Log the ClientIP. Default is false.

Returns:

  • (Boolean)

    Log the ClientIP. Default is false.



34
35
36
# File 'lib/2019-12-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 34

def log_client_ip
  @log_client_ip
end

#logger_idString

Returns Resource Id of a target logger.

Returns:

  • (String)

    Resource Id of a target logger.



20
21
22
# File 'lib/2019-12-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 20

def logger_id
  @logger_id
end

#samplingSamplingSettings

Returns Sampling settings for Diagnostic.

Returns:



23
24
25
# File 'lib/2019-12-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 23

def sampling
  @sampling
end

#verbosityVerbosity

trace policies. Possible values include: ‘verbose’, ‘information’, ‘error’

Returns:

  • (Verbosity)

    The verbosity level applied to traces emitted by



44
45
46
# File 'lib/2019-12-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 44

def verbosity
  @verbosity
end

Class Method Details

.mapperObject

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



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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# File 'lib/2019-12-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 51

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DiagnosticContract',
    type: {
      name: 'Composite',
      class_name: 'DiagnosticContract',
      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'
          }
        },
        always_log: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.alwaysLog',
          type: {
            name: 'String'
          }
        },
        logger_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.loggerId',
          type: {
            name: 'String'
          }
        },
        sampling: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.sampling',
          type: {
            name: 'Composite',
            class_name: 'SamplingSettings'
          }
        },
        frontend: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.frontend',
          type: {
            name: 'Composite',
            class_name: 'PipelineDiagnosticSettings'
          }
        },
        backend: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.backend',
          type: {
            name: 'Composite',
            class_name: 'PipelineDiagnosticSettings'
          }
        },
        log_client_ip: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.logClientIp',
          type: {
            name: 'Boolean'
          }
        },
        http_correlation_protocol: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.httpCorrelationProtocol',
          type: {
            name: 'String'
          }
        },
        verbosity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.verbosity',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end