Skip to content

Commit

Permalink
Vil legge til statusendepunkt for at statusplattform skal kunne hente…
Browse files Browse the repository at this point in the history
… info om mottak.
  • Loading branch information
ma10s committed Feb 9, 2024
1 parent ef14987 commit dd1f181
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .deploy/nais-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ spec:
- application: familie-prosessering
namespace: teamfamilie
cluster: dev-gcp
- application: statuspoll
namespace: navdig
outbound:
rules:
- application: familie-ef-maler
Expand Down
2 changes: 2 additions & 0 deletions .deploy/nais-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ spec:
- application: familie-prosessering
namespace: teamfamilie
cluster: prod-gcp
- application: statuspoll
namespace: navdig
outbound:
rules:
- application: familie-ef-maler
Expand Down
14 changes: 14 additions & 0 deletions src/main/kotlin/no/nav/familie/ef/mottak/api/PingController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,18 @@ class PingController {
fun ping(): String {
return "Ack - vi har kontakt"
}

@GetMapping("/status")
@Unprotected
fun status(): StatusDto {
return StatusDto(status = Plattformstatus.OK, description = "Alt er bra", logLink = null)
}

}

const val LOG_URL = "https://logs.adeo.no/app/discover#/view/a3e93b80-c1a5-11ee-a029-75a0ed43c092?_g=()"
data class StatusDto(val status: Plattformstatus, val description: String? = null, val logLink: String? = LOG_URL)

enum class Plattformstatus {
OK, ISSUE, DOWN
}

0 comments on commit dd1f181

Please sign in to comment.