cosmotech.coal.azure.adx.auth¶
auth
¶
create_ingest_client(ingest_url, client_id=None, client_secret=None, tenant_id=None)
¶
Create a QueuedIngestClient for ingesting data to ADX.
Args: ingest_url: The ingestion URL of the ADX cluster client_id: Azure client ID (optional, will use environment variable if not provided) client_secret: Azure client secret (optional, will use environment variable if not provided) tenant_id: Azure tenant ID (optional, will use environment variable if not provided)
Returns: QueuedIngestClient: A client for ingesting data to ADX
Source code in cosmotech/coal/azure/adx/auth.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
create_kusto_client(cluster_url, client_id=None, client_secret=None, tenant_id=None)
¶
Create a KustoClient for querying ADX.
Args: cluster_url: The URL of the ADX cluster client_id: Azure client ID (optional, will use environment variable if not provided) client_secret: Azure client secret (optional, will use environment variable if not provided) tenant_id: Azure tenant ID (optional, will use environment variable if not provided)
Returns: KustoClient: A client for querying ADX
Source code in cosmotech/coal/azure/adx/auth.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
get_cluster_urls(cluster_name, cluster_region)
¶
Generate cluster and ingest URLs from cluster name and region.
Args: cluster_name: The name of the ADX cluster cluster_region: The region of the ADX cluster
Returns: tuple: (cluster_url, ingest_url)
Source code in cosmotech/coal/azure/adx/auth.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|
initialize_clients(adx_uri, adx_ingest_uri)
¶
Initialize and return the Kusto and ingest clients.
Args: adx_uri: The Azure Data Explorer resource URI adx_ingest_uri: The Azure Data Explorer resource ingest URI
Returns: tuple: (kusto_client, ingest_client)
Source code in cosmotech/coal/azure/adx/auth.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|