次の方法で共有


OEWExperimentAssignmentSummary テーブルのクエリ

これらのクエリを Azure ポータルで使用する方法については、Log Analytics チュートリアルをご参照ください。 REST API については、「 Query」を参照してください。

特徴別のバリアント割り当て数

機能割り当ての各バリアントの割り当ての合計数を一覧表示します。

// Variant assignment counts by features
OEWExperimentAssignmentSummary
| summarize
    IsControlVariant = take_any(IsControlVariant),
    AllocationPercentage = take_any(AllocationPercentage),
    AssignmentEventCount = sum(AssignmentEventCount),
    FirstAssignmentTimestamp = min(FirstAssignmentTimestamp),
    LastAssignmentTimestamp = max(LastAssignmentTimestamp)
    by FeatureName, AllocationId, Variant
| order by FeatureName asc, LatestAssignment desc, Variant asc

特定の機能の最新のスコアカード メタデータ

特定の機能の最新の実験コアカード メタデータに対してクエリを実行します。

// Latest scorecard metadata for a given feature
// set the feature flag name to query
let QueryFeature = "MyFeatureFlag";
OEWExperimentAssignmentSummary
| where FeatureName == QueryFeature
| summarize LastAssignmentTimestamp=max(LastAssignmentTimestamp), Variants=make_set(Variant, 1000) by AllocationId
| summarize arg_max(LastAssignmentTimestamp, *)
| join kind=inner OEWExperimentScorecards on AllocationId
| summarize arg_max(TimeGenerated, ScorecardId)
| project
    FeatureName, AllocationId, Variants,
    ScorecardId, AnalysisStartTime, AnalysisEndTime, Insights

特定の機能の最新のスコアカード結果

特定の特徴に対して最新の実験スコアカードの結果を照会します。

// Latest scorecard results for a given feature
// set the feature flag name to query
let QueryFeature = "MyFeatureFlag";
OEWExperimentAssignmentSummary
| where FeatureName == QueryFeature
| summarize arg_max(LastAssignmentTimestamp, AllocationId)
| join kind=inner OEWExperimentScorecards on AllocationId
| summarize arg_max(TimeGenerated, ScorecardId)
| join kind=inner OEWExperimentScorecardMetricPairs on ScorecardId
| project
    ScorecardId, MetricId, MetricDisplayName, MetricKind, MetricTags,
    TreatmentVariant, TreatmentCount, TreatmentMetricValue,
    ControlVariant, ControlCount, ControlMetricValue,
    TreatmentEffect, RelativeDifference, PValue, Insights