47 lines
1.7 KiB
Markdown
47 lines
1.7 KiB
Markdown
# Metrics
|
|
|
|
**Konzept Verworfen!**
|
|
|
|
## Background:
|
|
|
|
https://blog.imixs.org/2025/02/02/business-intelligence-built-on-metrics-part-ii/
|
|
|
|
**Die Implementierung war Teil von Version 1.3.1!**
|
|
|
|
## Testing
|
|
|
|
Curl
|
|
|
|
$ curl -s http://localhost:9990/metrics
|
|
|
|
|
|
$ curl -s http://localhost:9990/metrics | grep BP4218
|
|
|
|
```
|
|
|
|
application_dbtr_balance{country="", currency="EUR",department="Import Zellulose/Holz",id="BP4218",name="Rayonier Advanced Materials",type="dbtr"} 60911.28
|
|
application_dbtr_balance{country="US",currency="EUR",department="Import Zellulose/Holz",id="BP4218",name="Rayonier Advanced Materials",type="dbtr"} 257955.41
|
|
|
|
|
|
application_dbtr_sales{country="", currency="EUR",department="Import Zellulose/Holz",id="BP4218",name="Rayonier Advanced Materials",type="dbtr"} 60911.28
|
|
application_dbtr_sales{country="US", currency="EUR",department="Import Zellulose/Holz",id="BP4218",name="Rayonier Advanced Materials",type="dbtr"} 279028.91
|
|
|
|
|
|
```
|
|
|
|
Rayonier Advanced Materials
|
|
|
|
Debitor 74218
|
|
|
|
293.535,19 EUR
|
|
|
|
Metric saldo: 318866.69
|
|
|
|
# Jetzt berechnen wir neu...
|
|
|
|
https://alexander-logistics.office-workflow.de/api/metrics/dbtr/rebuild
|
|
|
|
application_dbtr_balance{country="", currency="EUR",department="Import Zellulose/Holz",id="BP4218",name="Rayonier Advanced Materials",type="dbtr"} 60911.28
|
|
application_dbtr_balance{country="US",currency="EUR",department="Import Zellulose/Holz",id="BP4218",name="Rayonier Advanced Materials",type="dbtr"} 364457.85
|
|
application_dbtr_sales{country="", currency="EUR",department="Import Zellulose/Holz",id="BP4218",name="Rayonier Advanced Materials",type="dbtr"} 60911.28
|
|
application_dbtr_sales{country="US", currency="EUR",department="Import Zellulose/Holz",id="BP4218",name="Rayonier Advanced Materials",type="dbtr"} 364457.85
|