Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous improvements #8

Merged
merged 9 commits into from
Sep 19, 2024
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from exn import core
from runtime.operational_status.EsPredictorState import EsPredictorState


class PredictionPublisher(core.publisher.Publisher):
metric_name = ""
def __init__(self,application_name,metric_name):
super().__init__('publisher_'+application_name+'-'+metric_name, 'eu.nebulouscloud.preliminary_predicted.'+metric_name, True,True)
super().__init__('publisher_'+application_name+'-'+metric_name, 'eu.nebulouscloud.preliminary_predicted.'+EsPredictorState.forecaster_name+"."+metric_name, True,True)
self.metric_name = metric_name

def send(self, body={}, application=""):
super(PredictionPublisher, self).send(body)
super(PredictionPublisher, self).send(body, application)