account metrics endpoint (#319)

This commit is contained in:
Michael Quigley
2023-05-09 14:16:01 -04:00
parent 21fdaf8e3c
commit 6b078abcd7
27 changed files with 2498 additions and 145 deletions

View File

@ -47,6 +47,9 @@ func Run(inCfg *config.Config) error {
api.EnvironmentEnableHandler = newEnableHandler()
api.EnvironmentDisableHandler = newDisableHandler()
api.MetadataConfigurationHandler = newConfigurationHandler(cfg)
if cfg.Metrics != nil && cfg.Metrics.Influx != nil {
api.MetadataGetAccountMetricsHandler = newGetAccountMetricsHandler(cfg.Metrics.Influx)
}
api.MetadataGetEnvironmentDetailHandler = newEnvironmentDetailHandler()
api.MetadataGetShareDetailHandler = newShareDetailHandler()
api.MetadataOverviewHandler = metadata.OverviewHandlerFunc(overviewHandler)