laceworksdk.api.v2.events

Lacework Events API wrapper.

 1# -*- coding: utf-8 -*-
 2"""
 3Lacework Events API wrapper.
 4"""
 5
 6from laceworksdk.api.search_endpoint import SearchEndpoint
 7from laceworksdk.api.v1.events import EventsAPIv1
 8
 9
10class EventsAPIv2(EventsAPIv1, SearchEndpoint):
11
12    def __init__(self, session):
13        """
14        Initializes the EventsAPI object.
15
16        :param session: An instance of the HttpSession class
17
18        :return EventsAPI object.
19        """
20
21        # The need to pass "Events" into the v1 init() is tied
22        # to the super() call within the v1 init()
23        super(EventsAPIv1, self).__init__(session, "Events")
24        super(SearchEndpoint, self).__init__(session, "Events")
11class EventsAPIv2(EventsAPIv1, SearchEndpoint):
12
13    def __init__(self, session):
14        """
15        Initializes the EventsAPI object.
16
17        :param session: An instance of the HttpSession class
18
19        :return EventsAPI object.
20        """
21
22        # The need to pass "Events" into the v1 init() is tied
23        # to the super() call within the v1 init()
24        super(EventsAPIv1, self).__init__(session, "Events")
25        super(SearchEndpoint, self).__init__(session, "Events")

Lacework Events API.

EventsAPIv2(session)
13    def __init__(self, session):
14        """
15        Initializes the EventsAPI object.
16
17        :param session: An instance of the HttpSession class
18
19        :return EventsAPI object.
20        """
21
22        # The need to pass "Events" into the v1 init() is tied
23        # to the super() call within the v1 init()
24        super(EventsAPIv1, self).__init__(session, "Events")
25        super(SearchEndpoint, self).__init__(session, "Events")

Initializes the EventsAPI object.

Parameters
  • session: An instance of the HttpSession class

:return EventsAPI object.