Class: Azure::Network::Mgmt::V2019_11_01::Models::PacketCaptureQueryStatusResult

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb

Overview

Status of packet capture session.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#capture_start_timeDateTime

Returns The start time of the packet capture session.

Returns:

  • (DateTime)

    The start time of the packet capture session.


22
23
24
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 22

def capture_start_time
  @capture_start_time
end

#idString

Returns The ID of the packet capture resource.

Returns:

  • (String)

    The ID of the packet capture resource.


19
20
21
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 19

def id
  @id
end

#nameString

Returns The name of the packet capture resource.

Returns:

  • (String)

    The name of the packet capture resource.


16
17
18
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 16

def name
  @name
end

#packet_capture_errorArray<PcError>

Returns List of errors of packet capture session.

Returns:

  • (Array<PcError>)

    List of errors of packet capture session.


33
34
35
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 33

def packet_capture_error
  @packet_capture_error
end

#packet_capture_statusPcStatus

values include: 'NotStarted', 'Running', 'Stopped', 'Error', 'Unknown'

Returns:

  • (PcStatus)

    The status of the packet capture session. Possible


26
27
28
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 26

def packet_capture_status
  @packet_capture_status
end

#stop_reasonString

stopped.

Returns:

  • (String)

    The reason the current packet capture session was


30
31
32
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 30

def stop_reason
  @stop_reason
end

Class Method Details

.mapperObject

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


40
41
42
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
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PacketCaptureQueryStatusResult',
    type: {
      name: 'Composite',
      class_name: 'PacketCaptureQueryStatusResult',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        capture_start_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'captureStartTime',
          type: {
            name: 'DateTime'
          }
        },
        packet_capture_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'packetCaptureStatus',
          type: {
            name: 'String'
          }
        },
        stop_reason: {
          client_side_validation: true,
          required: false,
          serialized_name: 'stopReason',
          type: {
            name: 'String'
          }
        },
        packet_capture_error: {
          client_side_validation: true,
          required: false,
          serialized_name: 'packetCaptureError',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'PcErrorElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end