適用対象: ✅Microsoft Fabric✅Azure データ エクスプローラー✅Azure Monitor✅Microsoft Sentinel
invokeのソースを表形式の引数として受け取るラムダ式を呼び出します。
Note
表形式の引数を受け取ることができるラムダ式を宣言する方法の詳細については、 let ステートメントを参照してください。
構文
T| invokefunction([param1,param2])
構文規則について詳しく知る。
パラメーター
| 件名 | タイプ | Required | 説明 |
|---|---|---|---|
| T | string |
✔️ | 表形式のソース。 |
| function | string |
✔️ | 評価するラムダ let 式または格納されている関数名の名前。 |
| param1, param2 ... | string |
関数に渡す追加のラムダ引数。 |
返品
評価された式の結果を返します。
例
この例では、invoke 演算子を使用してラムダ let 式を呼び出す方法を示します。
// clipped_average(): calculates percentiles limits, and then makes another
// pass over the data to calculate average with values inside the percentiles
let clipped_average = (T:(x: long), lowPercentile:double, upPercentile:double)
{
let high = toscalar(T | summarize percentiles(x, upPercentile));
let low = toscalar(T | summarize percentiles(x, lowPercentile));
T
| where x > low and x < high
| summarize avg(x)
};
range x from 1 to 100 step 1
| invoke clipped_average(5, 99)
出力
| avg_x |
|---|
| 52 |