Skip to content

Commit 79038b0

Browse files
authored
Create README.md
1 parent 27f1db0 commit 79038b0

File tree

1 file changed

+23
-0
lines changed
  • Client-Side Components/UX Client Script Include/CI health badges component

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# CI health badges component (Now Experience)
2+
3+
## What this solves
4+
Platform engineers want a quick visual of CI health. This Now Experience component fetches a CI’s health score and renders a compact badge: Good, Warning, or Critical.
5+
6+
## Where to use
7+
- Now Experience / UI Builder component
8+
- Include `CiHealthApi` Script Include for server calls from an Action or Data Resource
9+
10+
## How it works
11+
- Client component requests CI health via a simple server API (Script Include)
12+
- Displays a coloured badge with score and last evaluated time
13+
- Props: `ciSysId`
14+
15+
## Configure
16+
- Ensure a health source exists for the CI class you test
17+
- Replace `CiHealthApi` logic if you use a custom health table
18+
19+
## References
20+
- Now Experience framework
21+
https://www.servicenow.com/docs/bundle/zurich-employee-service/page/build/workspace-components/concept/now-experience.html
22+
- GlideAjax (if calling Script Include from client)
23+
https://www.servicenow.com/docs/bundle/zurich-api-reference/page/app-store/dev_portal/API_reference/GlideAjax/concept/c_GlideAjaxAPI.html

0 commit comments

Comments
 (0)