How to refresh UDCard text

#1

Hello guys,

I’m building a dashboard to monitor the status of Windows services. And I’m displaying their status on a UDCard, like so:

$status = Get-Service -Name Jenkins | ForEach-Object { $_.Status }
New-UDCard -Title "Jenkins Status" -Text $status

However this does not seem to update according to the service status.
It feels like the “Get-Service” cmdlet only runs once I start the dashboard and then never updates again.

How can I make it so that the status updates on a given interval? Or at least every time I refresh the page?

Thank you in advance.
José

0 Likes

#2

Hi @jcoelho93,

have a look at this:

You have to use an endpoint with a refresh inverval

0 Likes