-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sletter ubrukt route, refaktorerer litt og oppdatere readmes.
- Loading branch information
Richard Borge
committed
Feb 12, 2024
1 parent
b5fd70a
commit 35927c0
Showing
10 changed files
with
99 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package api.util | ||
|
||
import org.slf4j.LoggerFactory | ||
|
||
private val secureLog = LoggerFactory.getLogger("secureLog") | ||
|
||
object Consumers { | ||
private const val NAV_ORGNR = "889640782" | ||
private const val AFP_FELLERORDNINGEN_ORGNR = "987414502" | ||
|
||
private val consumerTags = mapOf( | ||
NAV_ORGNR to "NAV", | ||
AFP_FELLERORDNINGEN_ORGNR to "fellesordningen" | ||
) | ||
|
||
fun getConsumerTag(orgnr: String) = consumerTags[orgnr] ?: orgnr.also { | ||
secureLog.warn("Prøver å lage prometheus tag for $orgnr, men den er ikke mappet opp.") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.