Class: Azure::ApiManagement::Mgmt::V2019_01_01::Models::DiagnosticContract

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-01-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-01-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-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 31

def backend
  @backend
end

#enable_http_correlation_headersBoolean

Management Service. Only applicable to Application Insights diagnostics. Default is true.

Returns:

  • (Boolean)

    Whether to process Correlation Headers coming to Api



36
37
38
# File 'lib/2019-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 36

def enable_http_correlation_headers
  @enable_http_correlation_headers
end

#frontendPipelineDiagnosticSettings

incoming/outgoing HTTP messages to the Gateway.

Returns:



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

def frontend
  @frontend
end

#logger_idString

Returns Resource Id of a target logger.

Returns:

  • (String)

    Resource Id of a target logger.



20
21
22
# File 'lib/2019-01-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-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 23

def sampling
  @sampling
end

Class Method Details

.mapperObject

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



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
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/2019-01-01/generated/azure_mgmt_api_management/models/diagnostic_contract.rb', line 43

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'
          }
        },
        enable_http_correlation_headers: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.enableHttpCorrelationHeaders',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end