class_docstr: An app that collects events from the ActionTrail feature of Aliyun.
  
  Results are paginated, with a NextToken field provided that is used in subsequent queries.
  The result of a successful api call is json whose outermost schema is
  
  {
    "EndTime": <end of the time range of events>,
    "NextToken": <the token to use to request the next page of data>,
    "RequestId": <the ID of the request>,
    "StartTime": <start of the time range of events>,
    "Events": [entries],
  }
  
  If there are no more events in the queried range, the 'NextToken' element is not present.
  
  Resource:
      https://www.alibabacloud.com/help/doc-detail/28849.htm
code: def __init__(self, event, context):
      super(AliyunApp, self).__init__(event, context)
      auth = self._config.auth
      self.client = AcsClient(
          auth["access_key_id"],
          auth["access_key_secret"],
          auth["region_id"],
      )
  
      self.request = LookupEventsRequest.LookupEventsRequest()
      self.request.set_MaxResults(self._MAX_RESULTS)
      self.request.set_StartTime(self._config.last_timestamp)
  
      # Source code can be found here https://github.com/aliyun/aliyun-openapi-python-sdk/
      # blob/master/aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/
      # LookupEventsRequest.py
      self.request.set_EndTime(
          datetime.utcnow().strftime(self.date_formatter())
      )
  
      self.request.set_connect_timeout(self._CONNECT_TIMEOUT)
      self.request.set_read_timeout(self._READ_TIMEOUT)
  
file_path: streamalert/streamalert/apps/_apps/aliyun.py
imports: from datetime import datetime
  import json
  import re
  from aliyunsdkcore.client import AcsClient
  from aliyunsdkcore.acs_exception.exceptions import ServerException, ClientException
  from aliyunsdkactiontrail.request.v20171204 import LookupEventsRequest
  from .None import AppIntegration, StreamAlertApp, get_logger
label_desc: Use image node_id 1 to create a new AliyunApp object from inherited base classes: AppIntegration with example: obj = AliyunApp(event, context)