Ejemplo n.º 1
0
    def __init__(self, connector):
        """
        Users' constructor.

        @param connector: The connector through which Splunk is reached.
        @type connector: Connector
        """
        Manager.__init__(self, connector)
        Collection.__init__(self)
Ejemplo n.º 2
0
    def __init__(self, connector):
        """
        Constructor for SavedSearches.

        @param connector: The connector through which Splunk is reached.
        @type connector: Connector
        """
        Manager.__init__(self, connector)
        Collection.__init__(self)
Ejemplo n.º 3
0
    def __init__(self, connector, conf_name):
        """
        The constructor for Conf.

        @param connector: The connector which is used to talk to Splunk.
        @type connector: L{Connector}
        @param conf_name: The name of the conf file to be created. The suffix
                            .conf does not need to be specified here.
        @type conf_name: String
        """
        ItemFromManager.__init__(self, connector)
        Collection.__init__(self)
        self._name = conf_name
Ejemplo n.º 4
0
    def __init__(self, conf, stanza_name):
        """
        The constructor for Stanza.

        @param conf: The Conf object which contains this Stanza object.
        @type conf: L{Conf}
        @param stanza_name: The name of this stanza.
        @type type: String
        """
        ItemFromManager.__init__(self, conf.connector)
        Collection.__init__(self)

        self._conf = conf
        self._name = stanza_name
Ejemplo n.º 5
0
 def __init__(self, connector):
     Manager.__init__(self, connector)
     Collection.__init__(self)