首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >应用洞察分析中的分离apdex阈值

应用洞察分析中的分离apdex阈值
EN

Stack Overflow用户
提问于 2018-05-18 14:27:08
回答 1查看 1.1K关注 0票数 1

使用应用程序洞察的默认Apdex工作簿,我尝试按查询名称分隔apdex阈值,因为不同的查询有不同的满意请求持续时间。我添加了两个参数,每个参数用于特定的查询名称。我通过apdexThresholdByName列扩展了分析查询,每个查询名称都不同。然后,我修改了这一行:扩展UserExperience = case(AverageDuration <= apdexThresholdByName,‘满意度’,AverageDuration <= 4* apdexThreshhold,‘容忍度’,‘受挫’)将我的apdexThresholdByName列名放在那里,而不是以前的静态单参数。

但这不管用。

语法错误:“未能解决实体'apdexThresholdByName'”

代码语言:javascript
复制
let apdexData = {Type}
| where timestamp {TimeRange}
| where name in ({Operations}) or '*' in ({Operations})
{OperationsFilter}
| extend success = columnifexists('success', true)
| extend Failure = iff('{Calculations}' == 'ConsiderFailures' and success == false, 1, 0)
| extend InterestingDimension = iff(isempty({SegmentBy})== true, 'Unknown', {SegmentBy})
| extend apdexThresholdByName = iff('POST Insurance/PostModel [actionName/elementid/widgetname/workspace]' == ["name"], {Insurance_PostModel_actionName_elementid_widgetname_workspace_threshold}, iff('POST Insurance/PostModel [actionName/elementid/widgetname/workspace]' == ["name"], {Insurance_PostModel_widgetname_workspace_threshold}, 0))
| where InterestingDimension in ({SegmentFilters}) or '*' in ({SegmentFilters})
| summarize AverageDuration = avg(duration), Failures = sum(Failure) by user_Id, InterestingDimension
| extend UserExperience = case(AverageDuration <= apdexThresholdByName, 'Satisfied', AverageDuration <= 4 * apdexThreshhold, 'Tolerating', 'Frustrated')
| extend UserExperience = case(Failures > 0, "Frustrated", UserExperience)
| summarize Satisfied = countif(UserExperience == 'Satisfied'), Tolerating = countif(UserExperience == 'Tolerating'), Frustrated = countif(UserExperience == 'Frustrated'), Total = count() by InterestingDimension
| project InterestingDimension, ["Satisfied Users"] = Satisfied, ["Tolerating Users"] = Tolerating, ["Frustrated Users"] = Frustrated, ["Apdex Score"] = round((Satisfied + (Tolerating / 2.0)) / Total, 2), Total
| extend Relevance = iff(["Apdex Score"] == 0, pow(Total, 1.6), Total / ["Apdex Score"])
| project-rename Users = Total
| order by {ShowSegmentsBy}
| project-away Users, Relevance;
apdexData
| extend ["Apdex Interpretation"] = case(["Apdex Score"] <= 0.5, '⛔ Unacceptable', ["Apdex Score"] <= 0.7, '⚠️ Poor', ["Apdex Score"] <= 0.85, '⚠️ Fair', ["Apdex Score"] <= 0.94, '✔️ Good', '✔️ Excellent')
| project Values = InterestingDimension, ["Apdex Score"], ["Apdex Interpretation"], ["Satisfied Users"], ["Tolerating Users"], ["Frustrated Users"]
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-05-22 08:20:54

字段apdexThresholdByName不传递它后面的总结子句。

此总结子句在by部分中既不包含“名称”,也不包含"apdexThresholdByName“:

代码语言:javascript
复制
| summarize AverageDuration = avg(duration), Failures = sum(Failure) by user_Id, InterestingDimension

这样分割就不会继续传播。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50413564

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档