Skip to content

Commit

Permalink
Reuse metrics for Mer veiledning.
Browse files Browse the repository at this point in the history
  • Loading branch information
MalazAlkoj committed Nov 4, 2024
1 parent 6bd9878 commit 4ef16a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/no/nav/syfo/metrics/AppMetrics.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ val COUNT_CALL_PDL_FAIL: Counter = Counter.builder(CALL_PDL_FAIL)
.description("Counts the number of failed calls to pdl")
.register(METRICS_REGISTRY)

fun tellMerVeiledningVarselSendt(varslerSendt: Int) {
COUNT_ALL_NOTICE_SENT.increment(varslerSendt.toDouble())
COUNT_MER_VEILEDNING_NOTICE_SENT.increment(varslerSendt.toDouble())
fun tellMerVeiledningVarselSendt() {
COUNT_ALL_NOTICE_SENT.increment()
COUNT_MER_VEILEDNING_NOTICE_SENT.increment()
}

fun tellSvarMotebehovVarselSendt(varslerSendt: Int) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import no.nav.syfo.kafka.producers.dittsykefravaer.domain.DittSykefravaerMelding
import no.nav.syfo.kafka.producers.dittsykefravaer.domain.DittSykefravaerVarsel
import no.nav.syfo.kafka.producers.dittsykefravaer.domain.OpprettMelding
import no.nav.syfo.kafka.producers.dittsykefravaer.domain.Variant
import no.nav.syfo.metrics.tellMerVeiledningVarselSendt
import no.nav.syfo.service.SenderFacade.InternalBrukernotifikasjonType.OPPGAVE
import no.nav.syfo.utils.dataToVarselData
import java.net.URL
Expand Down Expand Up @@ -48,6 +49,7 @@ class MerVeiledningVarselService(
UUID.randomUUID().toString(),
arbeidstakerHendelse
)
tellMerVeiledningVarselSendt()
}

private fun sendDigitaltVarselTilArbeidstaker(arbeidstakerHendelse: ArbeidstakerHendelse) {
Expand Down

0 comments on commit 4ef16a8

Please sign in to comment.