Update protos for bigtable and monitoring APIs.

pull/175/head
Ethan Bao 9 years ago
parent b87a5da3ac
commit ad2ea5e10b
  1. 10
      google/bigtable/v2/bigtable.proto
  2. 4
      google/bigtable/v2/data.proto
  3. 15
      google/monitoring/v3/common.proto
  4. 4
      google/monitoring/v3/group.proto
  5. 20
      google/monitoring/v3/group_service.proto
  6. 54
      google/monitoring/v3/metric.proto
  7. 14
      google/monitoring/v3/metric_service.proto

@ -77,7 +77,7 @@ service Bigtable {
message ReadRowsRequest {
// The unique name of the table from which to read.
// Values are of the form
// projects/<project>/instances/<instance>/tables/<table>
// `projects/<project>/instances/<instance>/tables/<table>`.
string table_name = 1;
// The row keys and/or ranges to read. If not specified, reads from all rows.
@ -173,7 +173,7 @@ message ReadRowsResponse {
message SampleRowKeysRequest {
// The unique name of the table from which to sample row keys.
// Values are of the form
// projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/&lt;table&gt;
// `projects/<project>/instances/<instance>/tables/<table>`.
string table_name = 1;
}
@ -199,7 +199,7 @@ message SampleRowKeysResponse {
message MutateRowRequest {
// The unique name of the table to which the mutation should be applied.
// Values are of the form
// projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/&lt;table&gt;
// `projects/<project>/instances/<instance>/tables/<table>`.
string table_name = 1;
// The key of the row to which the mutation should be applied.
@ -263,7 +263,7 @@ message CheckAndMutateRowRequest {
// The unique name of the table to which the conditional mutation should be
// applied.
// Values are of the form
// projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/&lt;table&gt;
// `projects/<project>/instances/<instance>/tables/<table>`.
string table_name = 1;
// The key of the row to which the conditional mutation should be applied.
@ -302,7 +302,7 @@ message ReadModifyWriteRowRequest {
// The unique name of the table to which the read/modify/write rules should be
// applied.
// Values are of the form
// projects/&lt;project&gt;/instances/&lt;instance&gt;/tables/&lt;table&gt;
// `projects/<project>/instances/<instance>/tables/<table>`.
string table_name = 1;
// The key of the row to which the read/modify/write rules should be applied.

@ -97,10 +97,10 @@ message RowRange {
// The row key at which to end the range.
// If neither field is set, interpreted as the infinite row key, exclusive.
oneof end_key {
// Used when giving an inclusive upper bound for the range.
// Used when giving an exclusive upper bound for the range.
bytes end_key_open = 3;
// Used when giving an exclusive upper bound for the range.
// Used when giving an inclusive upper bound for the range.
bytes end_key_closed = 4;
}
}

@ -48,17 +48,16 @@ message TypedValue {
}
}
// A time interval extending from after `startTime` through `endTime`. If
// `startTime` is omitted, the interval is the single point in time, `endTime`.
// A time interval extending just after a start time through an end time.
// If the start time is the same as the end time, then the interval
// represents a single point in time.
message TimeInterval {
// Required. The end of the interval. The interval includes this
// time.
// Required. The end of the time interval.
google.protobuf.Timestamp end_time = 2;
// If this value is omitted, the interval is a point in time,
// `endTime`. If `startTime` is present, it must be earlier than
// (less than) `endTime`. The interval begins after
// `startTime`&mdash;it does not include `startTime`.
// Optional. The beginning of the time interval. The default value
// for the start time is the end time. The start time must not be
// later than the end time.
google.protobuf.Timestamp start_time = 1;
}

@ -48,13 +48,11 @@ option java_package = "com.google.monitoring.v3";
// depending on what resources exist and what filters are associated with the
// group and its ancestors.
message Group {
// The name of this group.
// The format is
// Output only. The name of this group. The format is
// `"projects/{project_id_or_number}/groups/{group_id}"`.
// When creating a group, this field is ignored and a new name is created
// consisting of the project specified in the call to `CreateGroup`
// and a unique `{group_id}` that is generated automatically.
// @OutputOnly
string name = 1;
// A user-assigned name for this group, used only for display purposes.

@ -40,39 +40,33 @@ option java_package = "com.google.monitoring.v3";
// updated automatically as monitored resources are added and removed
// from the infrastructure.
service GroupService {
// Lists the existing groups. The project ID in the URL path must refer
// to a Stackdriver account.
// Lists the existing groups.
rpc ListGroups(ListGroupsRequest) returns (ListGroupsResponse) {
option (google.api.http) = { get: "/v3/{name=projects/*}/groups" };
}
// Gets a single group. The project ID in the URL path must refer to a
// Stackdriver account.
// Gets a single group.
rpc GetGroup(GetGroupRequest) returns (Group) {
option (google.api.http) = { get: "/v3/{name=projects/*/groups/*}" };
}
// Creates a new group. The project ID in the URL path must refer to a
// Stackdriver account.
// Creates a new group.
rpc CreateGroup(CreateGroupRequest) returns (Group) {
option (google.api.http) = { post: "/v3/{name=projects/*}/groups", body: "group" };
option (google.api.http) = { post: "/v3/{name=projects/*}/groups" body: "group" };
}
// Updates an existing group.
// You can change any group attributes except `name`.
// The project ID in the URL path must refer to a Stackdriver account.
rpc UpdateGroup(UpdateGroupRequest) returns (Group) {
option (google.api.http) = { put: "/v3/{group.name=projects/*/groups/*}", body: "group" };
option (google.api.http) = { put: "/v3/{group.name=projects/*/groups/*}" body: "group" };
}
// Deletes an existing group. The project ID in the URL path must refer to a
// Stackdriver account.
// Deletes an existing group.
rpc DeleteGroup(DeleteGroupRequest) returns (google.protobuf.Empty) {
option (google.api.http) = { delete: "/v3/{name=projects/*/groups/*}" };
}
// Lists the monitored resources that are members of a group. The project ID
// in the URL path must refer to a Stackdriver account.
// Lists the monitored resources that are members of a group.
rpc ListGroupMembers(ListGroupMembersRequest) returns (ListGroupMembersResponse) {
option (google.api.http) = { get: "/v3/{name=projects/*/groups/*}/members" };
}

@ -27,39 +27,59 @@ option java_package = "com.google.monitoring.v3";
// A single data point in a time series.
message Point {
// The time interval to which the value applies.
// The time interval to which the data point applies. For GAUGE metrics, only
// the end time of the interval is used. For DELTA metrics, the start and end
// time should specify a non-zero interval, with subsequent points specifying
// contiguous and non-overlapping intervals. For CUMULATIVE metrics, the
// start and end time should specify a non-zero interval, with subsequent
// points specifying the same start time and increasing end times, until an
// event resets the cumulative value to zero and sets a new start time for the
// following points.
TimeInterval interval = 1;
// The value of the data point.
TypedValue value = 2;
}
// A collection of data points that describes the time-varying nature
// A collection of data points that describes the time-varying values
// of a metric. A time series is identified by a combination of a
// fully-specified monitored resource and a fully-specified metric.
// This type is used for both listing and creating time series.
message TimeSeries {
// The fully-specified metric used to identify the time series.
// The associated metric. A fully-specified metric used to identify the time
// series.
google.api.Metric metric = 1;
// The fully-specified monitored resource used to identify the time series.
// The associated resource. A fully-specified monitored resource used to
// identify the time series.
google.api.MonitoredResource resource = 2;
// The metric kind of the time series. This can be different than the metric
// kind specified in [google.api.MetricDescriptor] because of alignment and
// reduction operations on the data. This field is ignored when writing data;
// the value specified in the descriptor is used instead.
// @OutputOnly
// The metric kind of the time series. When listing time series, this metric
// kind might be different from the metric kind of the associated metric if
// this time series is an alignment or reduction of other time series.
//
// When creating a time series, this field is optional. If present, it must be
// the same as the metric kind of the associated metric. If the associated
// metric's descriptor must be auto-created, then this field specifies the
// metric kind of the new descriptor and must be either `GAUGE` (the default)
// or `CUMULATIVE`.
google.api.MetricDescriptor.MetricKind metric_kind = 3;
// The value type of the time series. This can be different than the value
// type specified in [google.api.MetricDescriptor] because of alignment and
// reduction operations on the data. This field is ignored when writing data;
// the value specified in the descriptor is used instead.
// @OutputOnly
// The value type of the time series. When listing time series, this value
// type might be different from the value type of the associated metric if
// this time series is an alignment or reduction of other time series.
//
// When creating a time series, this field is optional. If present, it must be
// the same as the type of the data in the `points` field.
google.api.MetricDescriptor.ValueType value_type = 4;
// The data points of this time series. When used as output, points will be
// sorted by decreasing time order. When used as input, points could be
// written in any orders.
// The data points of this time series. When listing time series, the order of
// the points is specified by the list method.
//
// When creating a time series, this field must contain exactly one point and
// the point's type must be the same as the value type of the associated
// metric. If the associated metric's descriptor must be auto-created, then
// the value type of the descriptor is determined by the point's type, which
// must be `BOOL`, `INT64`, `DOUBLE`, or `DISTRIBUTION`.
repeated Point points = 5;
}

@ -32,22 +32,22 @@ option java_package = "com.google.monitoring.v3";
// Manages metric descriptors, monitored resource descriptors, and
// time series data.
service MetricService {
// Lists monitored resource descriptors that match a filter.
// Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.
rpc ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest) returns (ListMonitoredResourceDescriptorsResponse) {
option (google.api.http) = { get: "/v3/{name=projects/*}/monitoredResourceDescriptors" };
}
// Gets a single monitored resource descriptor.
// Gets a single monitored resource descriptor. This method does not require a Stackdriver account.
rpc GetMonitoredResourceDescriptor(GetMonitoredResourceDescriptorRequest) returns (google.api.MonitoredResourceDescriptor) {
option (google.api.http) = { get: "/v3/{name=projects/*/monitoredResourceDescriptors/*}" };
}
// Lists metric descriptors that match a filter.
// Lists metric descriptors that match a filter. This method does not require a Stackdriver account.
rpc ListMetricDescriptors(ListMetricDescriptorsRequest) returns (ListMetricDescriptorsResponse) {
option (google.api.http) = { get: "/v3/{name=projects/*}/metricDescriptors" };
}
// Gets a single metric descriptor.
// Gets a single metric descriptor. This method does not require a Stackdriver account.
rpc GetMetricDescriptor(GetMetricDescriptorRequest) returns (google.api.MetricDescriptor) {
option (google.api.http) = { get: "/v3/{name=projects/*/metricDescriptors/**}" };
}
@ -56,7 +56,7 @@ service MetricService {
// User-created metric descriptors define
// [custom metrics](/monitoring/custom-metrics).
rpc CreateMetricDescriptor(CreateMetricDescriptorRequest) returns (google.api.MetricDescriptor) {
option (google.api.http) = { post: "/v3/{name=projects/*}/metricDescriptors", body: "metric_descriptor" };
option (google.api.http) = { post: "/v3/{name=projects/*}/metricDescriptors" body: "metric_descriptor" };
}
// Deletes a metric descriptor. Only user-created
@ -65,7 +65,7 @@ service MetricService {
option (google.api.http) = { delete: "/v3/{name=projects/*/metricDescriptors/**}" };
}
// Lists time series that match a filter.
// Lists time series that match a filter. This method does not require a Stackdriver account.
rpc ListTimeSeries(ListTimeSeriesRequest) returns (ListTimeSeriesResponse) {
option (google.api.http) = { get: "/v3/{name=projects/*}/timeSeries" };
}
@ -75,7 +75,7 @@ service MetricService {
// If any time series could not be written, a corresponding failure message is
// included in the error response.
rpc CreateTimeSeries(CreateTimeSeriesRequest) returns (google.protobuf.Empty) {
option (google.api.http) = { post: "/v3/{name=projects/*}/timeSeries", body: "*" };
option (google.api.http) = { post: "/v3/{name=projects/*}/timeSeries" body: "*" };
}
}

Loading…
Cancel
Save