ADCList class

Syntax

ADCList("<name>", <type>[, "<description>")

Description

Python class for an Analytics Data Collections (ADC) list. Creates and returns the ADC list.

Parameters

<name>

Specifies the name of the list. The format of <name> is a Python text string.

<type>

Specifies the type of ADC.

Valid values are the following:

  • ADCList.Type.IPV4

  • ADCList.Type.IPV6

<description>

Description of the ADC list. The format of <description> is a Python text string.

Methods

add_entry(<seq>, <adc_entry>)

Adds the ADC entry object <adc_entry> to the ADC list at sequence number <seq>.

The sequence number is a positive integer that is unique within the ADC list. If the sequence number exists in the ADC list, an agent error is generated. Range: 0 through 4294967295

Example:

self.adc.add_entry(10, entry1)
get_entries()

Returns a Python list of all ADC entries in the ADC list.

Example:

self.adc.get_entries()

Example

self.adc_outgress = ADCList("office365_outgress", ADCList.Type.IPV4, "Traffic from Office365")