Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Alarm endpoint: curl -v http://localhost:8081/odr-operations/odr-send-digitalpost-notifikation/alarm

 HealthIndicator Fremgangsmåde
DBHealthIndicator

Start compose

docker stop development-odrdb-1

Kald alarm endpoint

Resultat: Der er ingen forbindelse til databasen med JNDI navnet java:jboss/datasources/ODR-DS.

PersonInformationHealthIndicator

Ændre property personinformation.url til f.eks http://test3-cnsp.ekstern-test.nspop.dk:8080/stamdata-personinformation/2024/08/01

Start compose

Kør integrationstest OrganDonorNotificationIT

Kald alarm endpoint

Resultat: Person Information servicen har fejlet flere gange end tilladt i en given periode.

DigitalPostHealthIndicator

Ændre property digitalpost.service.url til f.eks http://test3-cnsp.ekstern-test.nspop.dk:8080/digitalpost/2024/05/29/send

Start compose

Kør integrationstest OrganDonorNotificationIT

Kald alarm endpoint

Resultat: Digital Post Adapter servicen har fejlet flere gange end tilladt i en given periode.

StackedOperationsService
(organDonorNotificationService)

Start compose

docker stop development-stamdata_db-1

Kald alarm endpoint

NewestNotificationHealthIndicator

Sæt en kombination af digitalpost.notification.odr.startdate og digitalpost.notification.odr.alarm.date.period, der gør at startdate ligger længere tilbage end period
F.eks. 2025-01-22 og P3D

Start compose

Kald alarm endpoint

Resultat: Der er ikke færdigbehandlet en dato den: 22-01-2025. Den er ældre end 3 dage gammel.

ErrorNotificationHealthIndicator

Som for DigitalPostHealthIndicator

Resultat: Der ligger totalt 3 notifikationer med status Error.

StatusNotificationHealthIndicator

Sæt en kombination af digitalpost.notification.odr.startdate og digitalpost.notification.odr.alarm.date.period, der gør at startdate ligger længere tilbage end period
F.eks. 2025-01-22 og P3D

Start compose

Kør integrationstest OrganDonorNotificationIT

Opdater database:

  • docker exec -it development-odrdb-1  mysql -uroot organDonor
  • Update NotificationPerson set Status = "Pending" where NotificationPersonPID = 1;

Kald alarm endpoint

Resultat: Der ligger 1 notifikationer fra den 22-01-2025 med status Pending.