@main.command()<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.INT,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.STRING,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.STRING,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.STRING,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.STRING,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.STRING, multiple=True,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.FLOAT,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', type=Pair(), multiple=True,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', type=click.FLOAT,<EOL>help="<STR_LIT>")<EOL>@click.option('<STR_LIT>', default=True,<EOL>help="<STR_LIT>")<EOL>@click.pass_obj<EOL>def send(transport, time, state, host, description, service, tag, attribute,<EOL>ttl, metric_f, echo):
client = CommandLineClient(transport)<EOL>event = client.create_event({<EOL>'<STR_LIT:time>': time,<EOL>'<STR_LIT:state>': state,<EOL>'<STR_LIT:host>': host,<EOL>'<STR_LIT:description>': description,<EOL>'<STR_LIT>': service,<EOL>'<STR_LIT>': tag,<EOL>'<STR_LIT>': dict(attribute),<EOL>'<STR_LIT>': ttl,<EOL>'<STR_LIT>': metric_f<EOL>})<EOL>with client:<EOL><INDENT>client.send_event(event)<EOL><DEDENT>if echo:<EOL><INDENT>echo_event(client.create_dict(event))<EOL><DEDENT>
Send a single event to Riemann