// Minimal subset of
// opentelemetry/proto/collector/metrics/v1/metrics_service.proto.
syntax = "proto3";
package opentelemetry.proto.collector.metrics.v1;

import "opentelemetry/proto/metrics/v1/metrics.proto";

service MetricsService {
  rpc Export(ExportMetricsServiceRequest) returns (ExportMetricsServiceResponse) {}
}

message ExportMetricsServiceRequest {
  repeated opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;
}

message ExportMetricsServiceResponse {
  ExportMetricsServicePartialSuccess partial_success = 1;
}

message ExportMetricsServicePartialSuccess {
  int64 rejected_data_points = 1;
  string error_message = 2;
}
