async def METHOD_NAME(self, search_id, page=None):
    """get the response from Datadog endpoints
    :param search_id: dict, filter parameters
    :param page: int,length value
    :return: response, json object"""
    return_obj = {"code": 200}
    if page:
        search_id.update({"exclude_aggregate": True, "page": page})
    if "source" in search_id:
        search_id["sources"] = search_id.pop("source")
    async with datadog_api_client.v1.AsyncApiClient(self.configuration) as api_client:
        api_instance = events_api.EventsApi(api_client)
        try:
            api_response = await api_instance.list_events(**search_id)
            return_obj.update({"data": api_response})
        except datadog_api_client.v1.ApiException as e:
            return_obj.update({"code": e.status, "message": e.reason})
    return return_obj