librato 0.0.1 librato: ^0.0.1 copied to clipboard
A library to upload metrics data to librato.com.
// Copyright (c) 2015, Devon Carew. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
library librato.example;
import 'package:librato/librato.dart';
void main(List<String> args) {
if (args.length == 3) {
Librato librato = new Librato(args[0], args[1]);
librato.postStats(
{'startupTime': num.parse(args[2])}, groupName: 'example');
} else {
print('usage: librato <username> <token> <stat-to-record>');
}
}