Skip to content

Commit f8d3106

Browse files
committed
feat: add queries and update default layout
1 parent 1056778 commit f8d3106

File tree

4 files changed

+82
-16
lines changed

4 files changed

+82
-16
lines changed

default_layout.json

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
{
22
"layout_config": [
3+
{
4+
"id": "kpi-2",
5+
"data": {
6+
"componentId": "kpi",
7+
"title": "OpenSecurity Compliance and Security KPIs",
8+
"description": "A collection of Key Performance Indicators for monitoring compliance status, security posture, and operational health within the OpenSecurity framework. Queries are referenced by name.",
9+
"props": {
10+
"kpis": [
11+
{
12+
"info": "Entra Id Users",
13+
"count_kpi": "entraid_users",
14+
"list_kpi": "entraid_users"
15+
},
16+
{
17+
"info": "Github repositories",
18+
"count_kpi": "github_repositories",
19+
"list_kpi": "github_repositories"
20+
},
21+
{
22+
"info": "Package vulnerabilities",
23+
"count_kpi": "package_vulnerabilities",
24+
"list_kpi": "package_vulnerabilities"
25+
}
26+
27+
]
28+
}
29+
},
30+
"rowSpan": 2,
31+
"columnSpan": 3,
32+
"columnOffset": { "4": 0 }
33+
},
334
{
435
"id": "table1-1",
536
"data": {
@@ -14,23 +45,8 @@
1445
"rowSpan": 4,
1546
"columnSpan": 4,
1647
"columnOffset": { "4": 0 }
17-
},
18-
{
19-
"id": "table1-2",
20-
"data": {
21-
"title": "Table1",
22-
"componentId": "table",
23-
"description": "This is a table component1",
24-
25-
"props": {
26-
"query_id": "all_docker_base_images",
27-
"display_rows": 10
28-
}
29-
},
30-
"rowSpan": 4,
31-
"columnSpan": 4,
32-
"columnOffset": { "4": 0 }
3348
}
49+
3450
],
3551
"name": "default_layout",
3652
"is_private": false

queries/entraid_users.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
id: entraid_users
2+
title: All Users from entraid
3+
description: This query retrieves all users from entraid.
4+
type: query
5+
integration_type:
6+
- entraid_directory
7+
query: |
8+
SELECT COUNT(*) from entraid_user;
9+
tags:
10+
cloud_provider:
11+
- entraid
12+
cloud_service:
13+
- DevOps
14+
platform_queries_bookmark:
15+
- 'true'
16+

queries/github_repositories.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
id: github_repositories
2+
title: All Github Repositories
3+
description: This query retrieves all Github repositories.
4+
type: query
5+
integration_type:
6+
- github_account
7+
query: |
8+
SELECT COUNT(*) from github_repository;
9+
tags:
10+
cloud_provider:
11+
- github_account
12+
cloud_service:
13+
- DevOps
14+
platform_queries_bookmark:
15+
- 'true'
16+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
id: package_vulnerabilities
2+
title: All Package Vulnerabilities
3+
description: This query retrieves all package vulnerabilities.
4+
type: query
5+
integration_type:
6+
- github_account
7+
query: |
8+
SELECT COUNT(*)
9+
FROM packages_with_vulnerabilities
10+
WHERE jsonb_array_length(vulnerabilities) > 0;
11+
tags:
12+
cloud_provider:
13+
- github_account
14+
cloud_service:
15+
- DevOps
16+
platform_queries_bookmark:
17+
- 'true'
18+

0 commit comments

Comments
 (0)