Skip to content

Commit

Permalink
Feature/original 123 hostname agent matrix (#126)
Browse files Browse the repository at this point in the history
* add hostId to agent matrix-machine agent report, addresses #123

* fix ppt stat error. see bug #99
  • Loading branch information
alexafshar committed Sep 12, 2023
1 parent ef56018 commit ddb28b2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.5.9.8
v1.5.9.9
2 changes: 1 addition & 1 deletion backend/output/presentations/cxPpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def createCxPpt(folder: str):
folder,
str(
format(
(len([x for x in successPercentageOfWorstTransaction if x == 100]) / totalApplications if totalApplications > 0 else 0) * 100,
(len([x for x in successPercentageOfWorstTransaction if x == 0]) / totalApplications if totalApplications > 0 else 0) * 100,
".0f",
)
)
Expand Down
9 changes: 9 additions & 0 deletions backend/output/reports/AgentMatrixReport.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def createWorkbook(self, jobs, controllerData, jobFileName):

machineAgentCols.extend(
[
"hostId",
"simEnabled",
"historical",
"reportingData",
Expand Down Expand Up @@ -152,6 +153,12 @@ def createWorkbook(self, jobs, controllerData, jobFileName):
if agent["hostName"] in hostInfo["servers"]:
server = hostInfo["servers"][agent["hostName"]]

# Windows hostName is different than hostId by default, make consistent with how it shows on UI
if server["name"] != server["hostId"]:
data[cols.index("hostName")] = server["name"]

data.append(server["hostId"] if "hostId" in server else "")

# use id shown in UI
data[cols.index("machineId")] = server["id"]

Expand All @@ -171,6 +178,8 @@ def createWorkbook(self, jobs, controllerData, jobFileName):

data.append(json.dumps(server["tags"]) if "tags" in server else "")
else:
# hostId
data.append(None)
# simEnabled
data.append(False)
# historical
Expand Down
2 changes: 1 addition & 1 deletion input/thresholds/DefaultThresholds.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v1.5.9.8",
"version": "v1.5.9.9",
"apm": {
"AppAgentsAPM": {
"platinum": {
Expand Down

0 comments on commit ddb28b2

Please sign in to comment.