X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=proto%2Ftypes.proto;fp=proto%2Ftypes.proto;h=7f3d329d4f63404d3c28cd0a0043a82253006708;hp=0000000000000000000000000000000000000000;hb=408b3fc30cabf109333b2b86caf5edf47f5b82f5;hpb=9e718fa4673df0ebef245a600feafaab3fcb09c4 diff --git a/proto/types.proto b/proto/types.proto new file mode 100644 index 00000000..7f3d329d --- /dev/null +++ b/proto/types.proto @@ -0,0 +1,52 @@ +// collectd - proto/types.proto +// Copyright (C) 2015 Sebastian Harl +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the "Software"), +// to deal in the Software without restriction, including without limitation +// the rights to use, copy, modify, merge, publish, distribute, sublicense, +// and/or sell copies of the Software, and to permit persons to whom the +// Software is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +// DEALINGS IN THE SOFTWARE. +// +// Authors: +// Sebastian Harl + +syntax = "proto3"; + +package collectd.types; + +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +message Value { + oneof value { + uint64 counter = 1; + double gauge = 2; + int64 derive = 3; + uint64 absolute = 4; + }; +} + +message ValueList { + repeated Value value = 1; + + google.protobuf.Timestamp time = 2; + google.protobuf.Duration interval = 3; + + string host = 4; + string plugin = 5; + string plugin_instance = 6; + string type = 7; + string type_instance = 8; +}