Class: Azure::ARM::Network::Models::PacketCaptureQueryStatusResult

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/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.



23
24
25
# File 'lib/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 23

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.



20
21
22
# File 'lib/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 20

def id
  @id
end

#nameString

Returns The name of the packet capture resource.

Returns:

  • (String)

    The name of the packet capture resource.



17
18
19
# File 'lib/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 17

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.



34
35
36
# File 'lib/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 34

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



27
28
29
# File 'lib/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 27

def packet_capture_status
  @packet_capture_status
end

#stop_reasonString

stopped.

Returns:

  • (String)

    The reason the current packet capture session was



31
32
33
# File 'lib/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb', line 31

def stop_reason
  @stop_reason
end

Class Method Details

.mapperObject

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



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

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