你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
有关在 Azure 门户中使用这些查询的信息,请参阅 Log Analytics 教程。 有关 REST API,请参阅查询。
给定功能的最新记分卡元数据
查询给定功能的最新试验分数卡元数据。
// 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