risc.models
Define the RISC models module.
AbstractRiscModel
AbstractRiscModel(
self, uuid: UUID = UUID('9d146b8f-b0ad-498e-900e-db78c46564bf'))
Abstract resource model for all RISC models.
to_dict
Get the dictionary representation of the model's attributes.
to_dict_items
Get the dictionary items of the model's attributes.
uuid
to_list_factory
AbstractRiscModel.to_list_factory(
class_type: typing.Any, factory_objects: typing.List[typing.Any])
Handle the casting of lists to a list of the provided object type.
to_obj_factory
AbstractRiscModel.to_obj_factory(class_type: typing.Any,
factory_object: typing.Any)
Handle the casting of an object to the provided object type.
RiscResponse
RiscResponse(
self,
uuid: UUID = UUID('9d146b8f-b0ad-498e-900e-db78c46564bf'),
response: Response = <Response [None]>,
session: Session = <requests.sessions.Session object at 0x7fb85bb6c2b0>,
items: typing.List[typing.Any] = <factory>,
return_status: str = '',
return_status_detail: str = '',
json: typing.Dict[str, str] = <factory>,
page: int = 0)
Abstract resource model for all RISC models.
page
response
return_status
return_status_detail
session
RiscResourceModel
RiscResourceModel(
self,
uuid: UUID = UUID('9d146b8f-b0ad-498e-900e-db78c46564bf'),
response: Response = <Response [None]>)
Abstract resource model for all RISC models.
response
RiscAssessment
RiscAssessment(self,
uuid: UUID = UUID('9d146b8f-b0ad-498e-900e-db78c46564bf'),
response: Response = <Response [None]>,
address: str = '',
appliance_public_ip: str = '',
assessment_code: str = '',
assessment_stage_description: str = '',
assessment_stage_name: str = '',
city: str = '',
company_name: str = '',
country: str = '',
end_date: str = '',
start_date: str = '',
state: str = '',
zip: str = '',
json: typing.Dict[str, str] = <factory>)
Define the Assessment resource model schema.
address
appliance_public_ip
assessment_code
assessment_stage_description
assessment_stage_name
city
company_name
country
end_date
is_demo
Determine whether or not the Assessment is a demo.
start_date
state
zip
RiscAssessments
RiscAssessments(
self,
uuid: UUID = UUID('9d146b8f-b0ad-498e-900e-db78c46564bf'),
response: Response = <Response [None]>,
session: Session = <requests.sessions.Session object at 0x7fb85bb6c2b0>,
items: typing.List[typing.Any] = <factory>,
return_status: str = '',
return_status_detail: str = '',
json: typing.Dict[str, str] = <factory>,
page: int = 0,
assessments: typing.List[typing.Any] = <factory>)
Define the Assessments resource model schema.
RiscStacks
RiscStacks(
self,
uuid: UUID = UUID('9d146b8f-b0ad-498e-900e-db78c46564bf'),
response: Response = <Response [None]>,
session: Session = <requests.sessions.Session object at 0x7fb85bb6c2b0>,
items: typing.List[typing.Any] = <factory>,
return_status: str = '',
return_status_detail: str = '',
json: typing.Dict[str, str] = <factory>,
page: int = 0,
stacks: typing.List[typing.Any] = <factory>)
Define the Stacks resource model schema.
RiscStackConnectivity
RiscStackConnectivity(
self,
uuid: UUID = UUID('9d146b8f-b0ad-498e-900e-db78c46564bf'),
response: Response = <Response [None]>,
avg_duration_per_connection: float = 0.0,
avg_kbps_per_connection: float = 0.0,
avg_rtt_per_connection: float = 0.0,
connections_seen_via_netstat: int = 0,
dest_location: int = 0,
dest_location_name: str = '',
max_kbps_per_connection: float = 0.0,
max_rtt_per_connection: float = 0.0,
min_rtt_per_connection: float = 0.0,
number_of_distinct_protocols: int = 0,
number_of_distinct_source_ip_dest_ip_pairs: int = 0,
source_location_name: str = '',
source_locationid: int = 0,
total_bytes: int = 0,
total_duration_per_connection: float = 0.0,
total_flows: int = 0)
Define the Connectivity resource model schema.
avg_duration_per_connection
avg_kbps_per_connection
avg_rtt_per_connection
connections_seen_via_netstat
dest_location
dest_location_name
max_kbps_per_connection
max_rtt_per_connection
min_rtt_per_connection
number_of_distinct_protocols
number_of_distinct_source_ip_dest_ip_pairs
source_location_name
source_locationid
total_bytes
total_duration_per_connection
total_flows
RiscStackConnectivityParent
RiscStackConnectivityParent(
self,
uuid: UUID = UUID('9d146b8f-b0ad-498e-900e-db78c46564bf'),
response: Response = <Response [None]>,
connectivity: typing.List[typing.Any] = <factory>,
returnStatus: str = '',
returnStatusDetail: str = '')
Define the parent Stack Connectivity resource model schema.
dataframe
Handle converting the connectivity list of objects to a pandas DataFrame.
returnStatus
returnStatusDetail
RiscDeviceConnectivity
RiscDeviceConnectivity(
self,
uuid: UUID = UUID('9d146b8f-b0ad-498e-900e-db78c46564bf'),
response: Response = <Response [None]>,
avg_duration: float = 0.0,
avg_kbps: float = 0.0,
avg_rtt: float = 0.0,
dest_application: str = '',
dest_application_context: str = '',
dest_application_instance: str = '',
dest_bytes: int = 0,
dest_deviceid: int = 0,
dest_ip: str = '',
dest_packet_count: int = 0,
dest_packet_loss: int = 0,
dest_port: int = 0,
dest_process: str = '',
max_kbps: float = 0.0,
max_rtt: float = 0.0,
min_rtt: float = 0.0,
netstat_count: int = 0,
source_application: str = '',
source_application_context: str = '',
source_application_instance: str = '',
source_bytes: int = 0,
source_deviceid: int = 0,
source_packet_count: int = 0,
source_packet_loss: int = 0,
source_process: str = '',
src_ip: str = '',
total_bytes: int = 0,
total_duration: float = 0.0,
total_packets: int = 0)
Define the Device Connectivity resource model schema.
avg_duration
avg_kbps
avg_rtt
dest_application
dest_application_context
dest_application_instance
dest_bytes
dest_deviceid
dest_ip
dest_packet_count
dest_packet_loss
dest_port
dest_process
max_kbps
max_rtt
min_rtt
netstat_count
source_application
source_application_context
source_application_instance
source_bytes
source_deviceid
source_packet_count
source_packet_loss
source_process
src_ip
total_bytes
total_duration
total_packets
RiscDeviceConnectivityParent
RiscDeviceConnectivityParent(
self,
uuid: UUID = UUID('9d146b8f-b0ad-498e-900e-db78c46564bf'),
response: Response = <Response [None]>,
connectivity: typing.List[typing.Any] = <factory>,
returnStatus: str = '',
returnStatusDetail: str = '')
Define the parent Device Connectivity resource model schema.
returnStatus
returnStatusDetail
RiscTag
RiscTag(self,
uuid: UUID = UUID('9d146b8f-b0ad-498e-900e-db78c46564bf'),
response: Response = <Response [None]>,
tagid: int = 0,
tagkey: str = '',
tagvalue: str = '')
Define the Tag resource model schema.
tagid
tagkey
tagvalue
RiscStack
RiscStack(self,
uuid: UUID = UUID('9d146b8f-b0ad-498e-900e-db78c46564bf'),
response: Response = <Response [None]>,
confirmed: str = '',
confirmedby: str = 'not set',
licensed: int = 0,
num_members_with_failed_checks: int = 0,
num_stack_members: int = 0,
stack_name: str = '',
stackid: int = 0,
tags: typing.List[typing.Any] = <factory>)
Define the Stack resource model schema.