def sitemonitor(registry, xml_parent, data):
 mon = XML.SubElement(xml_parent, 'hudson.plugins.sitemonitor.SiteMonitorRecorder')
 if data.get('sites'):
  sites = XML.SubElement(mon, 'mSites')
  for siteurl in data.get('sites'):
   site = XML.SubElement(sites, 'hudson.plugins.sitemonitor.model.Site')
   XML.SubElement(site, 'mUrl').text = siteurl['url']

def sitemonitor ( registry , xml_parent , data ) : mon = XML . SubElement ( xml_parent , 'hudson.plugins.sitemonitor.SiteMonitorRecorder' ) if data . get ( 'sites' ) : sites = XML . SubElement ( mon , 'mSites' ) for siteurl in data . get ( 'sites' ) : site = XML . SubElement ( sites , 'hudson.plugins.sitemonitor.model.Site' ) XML . SubElement ( site , 'mUrl' ) . text = siteurl [ 'url' ]
yaml: sitemonitor this plugin checks the availability of an url .