Microsoft Graph API Sensors

MSGraphSensor

Use the MSGraphSensor to poll a Power BI API.

Below is an example of using this sensor to poll the status of a PowerBI workspace.

tests/system/microsoft/azure/example_powerbi.py[source]

    check_workspace_status_task = MSGraphSensor.partial(
        task_id="check_workspaces_status",
        conn_id="powerbi_api",
        url="myorg/admin/workspaces/scanStatus/{scanId}",
        timeout=350.0,
    ).expand(path_parameters=workspaces_info_task.output)

Reference

For further information, look at:

Was this entry helpful?