Skip to content

Commit

Permalink
add KPI history table
Browse files Browse the repository at this point in the history
  • Loading branch information
vletoux committed Mar 18, 2023
1 parent 463f42b commit 991669b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
31 changes: 29 additions & 2 deletions PingCastlePowerBIConnector.pq
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ PingCastleEntepriseType = type function (

Test = (url as text) =>
let
t = CallFunction(url, "GetReport", 26617)
//t = GetEntity(url, "Report")
//t = CallFunction(url, "GetReport", 26617)
t = GetEntity(url, "KPIHistory")
//t=PingCastleEnteprise.CallAPIAllDomains(url, "Reports")
in
t;
Expand Down Expand Up @@ -274,6 +274,32 @@ AADEventType= type table [
identity = text
];

KPIHistoryType = type table [
id = number,
day = datetime,
ownerID = number,
kpI111Measure = number,
kpI112Measure = number,
kpI113Measure = number,
kpI114Measure = number,
kpI121Measure = number,
kpI122Measure = number,
kpI123Measure = number,
kpI124Measure = number,
kpI131Measure = number,
kpI132Measure = number,
kpI133Measure = number,
kpI134Measure = number,
kpI211Measure = number,
kpI212Measure = number,
kpI213Measure = number,
kpI214Measure = number,
kpI221Measure = number,
kpI222Measure = number,
kpI223Measure = number,
kpI224Measure = number
];

SchemaTable = #table({"Entity", "Type", "ApiEndpoint"}, {
{"Domains", DomainType , "Domains"},
{"ActionPlans", ActionPlanType, "ActionPlan" },
Expand All @@ -292,6 +318,7 @@ SchemaTable = #table({"Entity", "Type", "ApiEndpoint"}, {
{"AADReports", AADReportType , "AADReports"},
{"LastAADReports", AADReportType , "AADReports/OnlyLastReports"},
{"AzureADs", AzureADType , "AzureADs"},
{"KPIHistory", KPIHistoryType , "KPIHistory"},

{"GetReport", 0 , "Reports/{id}"},
{"GetAADReport", 0 , "AADReports/{id}"}
Expand Down
1 change: 1 addition & 0 deletions PingCastlePowerBIConnector.query.pq
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Use this file to write queries to test your data connector
let
result = PingCastleEnteprise.Contents("https://demo.pingcastle.com")
//result = PingCastleEnteprise.Contents("https://localhost:5003")
in
result

0 comments on commit 991669b

Please sign in to comment.