actions/get_schedule_who_is_on_call.py
def run(self, scheduleIdentifier=None, scheduleIdentifierType=None, flat=None, date=None):
        """
        List current oncall participants of schedule.

        Returns:
        - dict: Data from OpsGenie.
        """

        payload = {}
        if scheduleIdentifier:
            identifier = pathname2url(scheduleIdentifier)

        if scheduleIdentifierType:
            payload["scheduleIdentifierType"] = scheduleIdentifierType

        if flat:
            payload["flat"] = flat

        if date:
            payload["date"] = date

        data = self._req("GET", "v2/schedules/" + identifier + "/on-calls", payload=payload)

        return data

        List current oncall participants of schedule.

        Returns:
        - dict: Data from OpsGenie.
        
List current oncall participants of schedule.
List current oncall participants of schedule .
def run(self, scheduleIdentifier=None, scheduleIdentifierType=None, flat=None, date=None):
        payload = {}
        if scheduleIdentifier:
            identifier = pathname2url(scheduleIdentifier)
        if scheduleIdentifierType:
            payload["scheduleIdentifierType"] = scheduleIdentifierType
        if flat:
            payload["flat"] = flat
        if date:
            payload["date"] = date
        data = self._req("GET", "v2/schedules/" + identifier + "/on-calls", payload=payload)
        return data
def run ( self , scheduleIdentifier = None , scheduleIdentifierType = None , flat = None , date = None ) : payload = { } if scheduleIdentifier : identifier = pathname2url ( scheduleIdentifier ) if scheduleIdentifierType : payload [ "scheduleIdentifierType" ] = scheduleIdentifierType if flat : payload [ "flat" ] = flat if date : payload [ "date" ] = date data = self . _req ( "GET" , "v2/schedules/" + identifier + "/on-calls" , payload = payload ) return data
List current oncall participants of schedule.
List current oncall participants of schedule .
"""
        List current oncall participants of schedule.

        Returns:
        - dict: Data from OpsGenie.
        """
None
self
scheduleIdentifier
scheduleIdentifierType
flat
date