blob: 9cd5d310b3dc8b54b85b987011906c2d8a19cfdf [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine import recipe_api
class SwarmingHeartbeatApi(recipe_api.RecipeApi):
"""Defines support to run automated heartbeat."""
def run(self):
"""Runs to run an heartbeat check."""
args = []
if'target_environment') == 'staging':
args = ['--staging']
'', script=self.resource(''), args=args)