parent
8e1aa39924
commit
ce4486fb4a
2 changed files with 0 additions and 150 deletions
@ -1,90 +0,0 @@ |
||||
// Copyright 2016 Google Inc. |
||||
// |
||||
// Licensed under the Apache License, Version 2.0 (the "License"); |
||||
// you may not use this file except in compliance with the License. |
||||
// You may obtain a copy of the License at |
||||
// |
||||
// http://www.apache.org/licenses/LICENSE-2.0 |
||||
// |
||||
// Unless required by applicable law or agreed to in writing, software |
||||
// distributed under the License is distributed on an "AS IS" BASIS, |
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
// See the License for the specific language governing permissions and |
||||
// limitations under the License. |
||||
|
||||
syntax = "proto3"; |
||||
|
||||
package google.monitoring.v3; |
||||
|
||||
import "google/api/annotations.proto"; |
||||
import "google/monitoring/v3/common.proto"; |
||||
import "google/protobuf/timestamp.proto"; |
||||
|
||||
option java_multiple_files = true; |
||||
option java_outer_classname = "AgentProto"; |
||||
option java_package = "com.google.monitoring.v3"; |
||||
|
||||
|
||||
// A single data point from a `collectd`-based plugin. |
||||
message CollectdValue { |
||||
// The type of measurement for the data source. |
||||
enum DataSourceType { |
||||
// An unspecified data source type. |
||||
// This corresponds to [google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED]. |
||||
UNSPECIFIED_DATA_SOURCE_TYPE = 0; |
||||
|
||||
// An instantaneous measurement of a varying quantity. |
||||
// This corresponds to [google.api.MetricDescriptor.MetricKind.GAUGE]. |
||||
GAUGE = 1; |
||||
|
||||
// A cumulative value over time. |
||||
// This corresponds to [google.api.MetricDescriptor.MetricKind.CUMULATIVE]. |
||||
COUNTER = 2; |
||||
|
||||
// A rate of change of the measurement. |
||||
DERIVE = 3; |
||||
|
||||
// An amount of change since the last measurement interval. |
||||
// This corresponds to [google.api.MetricDescriptor.MetricKind.DELTA]. |
||||
ABSOLUTE = 4; |
||||
} |
||||
|
||||
// The data source for the `collectd` value. For example there are |
||||
// two data sources for network measurements: `"rx"` and `"tx"`. |
||||
string data_source_name = 1; |
||||
|
||||
// The type of measurement. |
||||
DataSourceType data_source_type = 2; |
||||
|
||||
// The measurement value. |
||||
TypedValue value = 3; |
||||
} |
||||
|
||||
// A collection of data points sent from a `collectd`-based plugin. |
||||
// See the `collectd` documentation for more information. |
||||
message CollectdPayload { |
||||
// The measured values during this time interval. |
||||
// Each value must have a different `dataSourceName`. |
||||
repeated CollectdValue values = 1; |
||||
|
||||
// The start time of the interval. |
||||
google.protobuf.Timestamp start_time = 2; |
||||
|
||||
// The end time of the interval. |
||||
google.protobuf.Timestamp end_time = 3; |
||||
|
||||
// The name of the plugin. Example: `"disk"`. |
||||
string plugin = 4; |
||||
|
||||
// The instance name of the plugin Example: `"hdcl"`. |
||||
string plugin_instance = 5; |
||||
|
||||
// The measurement type. Example: `"memory"`. |
||||
string type = 6; |
||||
|
||||
// The measurement type instance. Example: `"used"`. |
||||
string type_instance = 7; |
||||
|
||||
// The measurement metadata. Example: `"process_id" -> 12345` |
||||
map<string, TypedValue> metadata = 8; |
||||
} |
@ -1,60 +0,0 @@ |
||||
// Copyright 2016 Google Inc. |
||||
// |
||||
// Licensed under the Apache License, Version 2.0 (the "License"); |
||||
// you may not use this file except in compliance with the License. |
||||
// You may obtain a copy of the License at |
||||
// |
||||
// http://www.apache.org/licenses/LICENSE-2.0 |
||||
// |
||||
// Unless required by applicable law or agreed to in writing, software |
||||
// distributed under the License is distributed on an "AS IS" BASIS, |
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
// See the License for the specific language governing permissions and |
||||
// limitations under the License. |
||||
|
||||
syntax = "proto3"; |
||||
|
||||
package google.monitoring.v3; |
||||
|
||||
import "google/api/annotations.proto"; |
||||
import "google/api/monitored_resource.proto"; |
||||
import "google/monitoring/v3/agent.proto"; |
||||
import "google/protobuf/empty.proto"; |
||||
|
||||
option java_multiple_files = true; |
||||
option java_outer_classname = "AgentServiceProto"; |
||||
option java_package = "com.google.monitoring.v3"; |
||||
|
||||
|
||||
// The AgentTranslation API allows `collectd`-based agents to |
||||
// write time series data to Cloud Monitoring. |
||||
// See [google.monitoring.v3.MetricService.CreateTimeSeries] instead. |
||||
service AgentTranslationService { |
||||
// **Stackdriver Monitoring Agent only:** Creates a new time series. |
||||
// |
||||
// <aside class="caution">This method is only for use by the Google Monitoring Agent. |
||||
// Use [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries] |
||||
// instead.</aside> |
||||
rpc CreateCollectdTimeSeries(CreateCollectdTimeSeriesRequest) returns (google.protobuf.Empty) { |
||||
option (google.api.http) = { post: "/v3/{name=projects/*}/collectdTimeSeries", body: "*" }; |
||||
} |
||||
} |
||||
|
||||
// The `CreateCollectdTimeSeries` request. |
||||
message CreateCollectdTimeSeriesRequest { |
||||
// The project in which to create the time series. The format is |
||||
// `"projects/PROJECT_ID_OR_NUMBER"`. |
||||
string name = 5; |
||||
|
||||
// The monitored resource associated with the time series. |
||||
google.api.MonitoredResource resource = 2; |
||||
|
||||
// The version of `collectd` that collected the data. Example: `"5.3.0-192.el6"`. |
||||
string collectd_version = 3; |
||||
|
||||
// The `collectd` payloads representing the time series data. |
||||
// You must not include more than a single point for each |
||||
// time series, so no two payloads can have the same values |
||||
// for all of the fields `plugin`, `plugin_instance`, `type`, and `type_instance`. |
||||
repeated CollectdPayload collectd_payloads = 4; |
||||
} |
Loading…
Reference in new issue