agent_service.proto 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Copyright 2016 Google Inc.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.monitoring.v3;
  16. import "google/api/annotations.proto";
  17. import "google/api/monitored_resource.proto";
  18. import "google/monitoring/v3/agent.proto";
  19. import "google/protobuf/empty.proto";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "AgentServiceProto";
  22. option java_package = "com.google.monitoring.v3";
  23. // The AgentTranslation API allows `collectd`-based agents to
  24. // write time series data to Cloud Monitoring.
  25. // See [google.monitoring.v3.MetricService.CreateTimeSeries] instead.
  26. service AgentTranslationService {
  27. // **Stackdriver Monitoring Agent only:** Creates a new time series.
  28. //
  29. // <aside class="caution">This method is only for use by the Google Monitoring Agent.
  30. // Use [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries]
  31. // instead.</aside>
  32. rpc CreateCollectdTimeSeries(CreateCollectdTimeSeriesRequest) returns (google.protobuf.Empty) {
  33. option (google.api.http) = { post: "/v3/{name=projects/*}/collectdTimeSeries", body: "*" };
  34. }
  35. }
  36. // The `CreateCollectdTimeSeries` request.
  37. message CreateCollectdTimeSeriesRequest {
  38. // The project in which to create the time series. The format is
  39. // `"projects/PROJECT_ID_OR_NUMBER"`.
  40. string name = 5;
  41. // The monitored resource associated with the time series.
  42. google.api.MonitoredResource resource = 2;
  43. // The version of `collectd` that collected the data. Example: `"5.3.0-192.el6"`.
  44. string collectd_version = 3;
  45. // The `collectd` payloads representing the time series data.
  46. // You must not include more than a single point for each
  47. // time series, so no two payloads can have the same values
  48. // for all of the fields `plugin`, `plugin_instance`, `type`, and `type_instance`.
  49. repeated CollectdPayload collectd_payloads = 4;
  50. }