Exemplo n.º 1
0
 def put_instance_monitor_rule(self): 
     """ For multiple datasets."""
     self.logger.append("Setting up monitoring on all instances.") 
     ruledata,rulename = utilsparamevents.put_instances_rule(self.instances,self.jobname)
     arn = ruledata['RuleArn']
     ## Now attach it to the given target
     targetdata = utilsparamevents.put_instance_target(rulename) 
Exemplo n.º 2
0
 def put_instance_monitor_rule(self): 
     """ For multiple datasets."""
     for instance in self.instances:
         self.logger.append('Setting up monitoring on instance '+str(instance))
         ## First declare a monitoring rule for this instance: 
         ruledata,rulename = utilsparamevents.put_instance_rule(instance.instance_id)
         arn = ruledata['RuleArn']
         ## Now attach it to the given target
         targetdata = utilsparamevents.put_instance_target(rulename)