Documentation
¶
Overview ¶
Package metricsscopepb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMetricsScopesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMetricsScopesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MetricsScopesClient) error
- func RegisterMetricsScopesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMetricsScopesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MetricsScopesServer) error
- func RegisterMetricsScopesServer(s grpc.ServiceRegistrar, srv MetricsScopesServer)
- type CreateMonitoredProjectRequest
- func (*CreateMonitoredProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMonitoredProjectRequest) GetMonitoredProject() *MonitoredProject
- func (x *CreateMonitoredProjectRequest) GetParent() string
- func (*CreateMonitoredProjectRequest) ProtoMessage()
- func (x *CreateMonitoredProjectRequest) ProtoReflect() protoreflect.Message
- func (x *CreateMonitoredProjectRequest) Reset()
- func (x *CreateMonitoredProjectRequest) String() string
- type DeleteMonitoredProjectRequest
- func (*DeleteMonitoredProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMonitoredProjectRequest) GetName() string
- func (*DeleteMonitoredProjectRequest) ProtoMessage()
- func (x *DeleteMonitoredProjectRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteMonitoredProjectRequest) Reset()
- func (x *DeleteMonitoredProjectRequest) String() string
- type GetMetricsScopeRequest
- func (*GetMetricsScopeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMetricsScopeRequest) GetName() string
- func (*GetMetricsScopeRequest) ProtoMessage()
- func (x *GetMetricsScopeRequest) ProtoReflect() protoreflect.Message
- func (x *GetMetricsScopeRequest) Reset()
- func (x *GetMetricsScopeRequest) String() string
- type ListMetricsScopesByMonitoredProjectRequest
- func (*ListMetricsScopesByMonitoredProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMetricsScopesByMonitoredProjectRequest) GetMonitoredResourceContainer() string
- func (*ListMetricsScopesByMonitoredProjectRequest) ProtoMessage()
- func (x *ListMetricsScopesByMonitoredProjectRequest) ProtoReflect() protoreflect.Message
- func (x *ListMetricsScopesByMonitoredProjectRequest) Reset()
- func (x *ListMetricsScopesByMonitoredProjectRequest) String() string
- type ListMetricsScopesByMonitoredProjectResponse
- func (*ListMetricsScopesByMonitoredProjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListMetricsScopesByMonitoredProjectResponse) GetMetricsScopes() []*MetricsScope
- func (*ListMetricsScopesByMonitoredProjectResponse) ProtoMessage()
- func (x *ListMetricsScopesByMonitoredProjectResponse) ProtoReflect() protoreflect.Message
- func (x *ListMetricsScopesByMonitoredProjectResponse) Reset()
- func (x *ListMetricsScopesByMonitoredProjectResponse) String() string
- type MetricsScope
- func (*MetricsScope) Descriptor() ([]byte, []int)deprecated
- func (x *MetricsScope) GetCreateTime() *timestamp.Timestamp
- func (x *MetricsScope) GetMonitoredProjects() []*MonitoredProject
- func (x *MetricsScope) GetName() string
- func (x *MetricsScope) GetUpdateTime() *timestamp.Timestamp
- func (*MetricsScope) ProtoMessage()
- func (x *MetricsScope) ProtoReflect() protoreflect.Message
- func (x *MetricsScope) Reset()
- func (x *MetricsScope) String() string
- type MetricsScopesClient
- type MetricsScopesServer
- type MonitoredProject
- func (*MonitoredProject) Descriptor() ([]byte, []int)deprecated
- func (x *MonitoredProject) GetCreateTime() *timestamp.Timestamp
- func (x *MonitoredProject) GetName() string
- func (*MonitoredProject) ProtoMessage()
- func (x *MonitoredProject) ProtoReflect() protoreflect.Message
- func (x *MonitoredProject) Reset()
- func (x *MonitoredProject) String() string
- type OperationMetadata
- func (*OperationMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp
- func (x *OperationMetadata) GetState() OperationMetadata_State
- func (x *OperationMetadata) GetUpdateTime() *timestamp.Timestamp
- func (*OperationMetadata) ProtoMessage()
- func (x *OperationMetadata) ProtoReflect() protoreflect.Message
- func (x *OperationMetadata) Reset()
- func (x *OperationMetadata) String() string
- type OperationMetadata_State
- func (OperationMetadata_State) Descriptor() protoreflect.EnumDescriptor
- func (x OperationMetadata_State) Enum() *OperationMetadata_State
- func (OperationMetadata_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperationMetadata_State) Number() protoreflect.EnumNumber
- func (x OperationMetadata_State) String() string
- func (OperationMetadata_State) Type() protoreflect.EnumType
- type UnimplementedMetricsScopesServer
- func (UnimplementedMetricsScopesServer) CreateMonitoredProject(context.Context, *CreateMonitoredProjectRequest) (*longrunningpb.Operation, error)
- func (UnimplementedMetricsScopesServer) DeleteMonitoredProject(context.Context, *DeleteMonitoredProjectRequest) (*longrunningpb.Operation, error)
- func (UnimplementedMetricsScopesServer) GetMetricsScope(context.Context, *GetMetricsScopeRequest) (*MetricsScope, error)
- func (UnimplementedMetricsScopesServer) ListMetricsScopesByMonitoredProject(context.Context, *ListMetricsScopesByMonitoredProjectRequest) (*ListMetricsScopesByMonitoredProjectResponse, error)
- type UnsafeMetricsScopesServer
Constants ¶
This section is empty.
Variables ¶
var ( OperationMetadata_State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "CREATED", 2: "RUNNING", 3: "DONE", 4: "CANCELLED", } OperationMetadata_State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "CREATED": 1, "RUNNING": 2, "DONE": 3, "CANCELLED": 4, } )
Enum value maps for OperationMetadata_State.
var File_mockgcp_monitoring_metricsscope_v1_metrics_scope_proto protoreflect.FileDescriptor
var File_mockgcp_monitoring_metricsscope_v1_metrics_scopes_proto protoreflect.FileDescriptor
var MetricsScopes_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mockgcp.monitoring.metricsscope.v1.MetricsScopes", HandlerType: (*MetricsScopesServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetMetricsScope", Handler: _MetricsScopes_GetMetricsScope_Handler, }, { MethodName: "ListMetricsScopesByMonitoredProject", Handler: _MetricsScopes_ListMetricsScopesByMonitoredProject_Handler, }, { MethodName: "CreateMonitoredProject", Handler: _MetricsScopes_CreateMonitoredProject_Handler, }, { MethodName: "DeleteMonitoredProject", Handler: _MetricsScopes_DeleteMonitoredProject_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "mockgcp/monitoring/metricsscope/v1/metrics_scopes.proto", }
MetricsScopes_ServiceDesc is the grpc.ServiceDesc for MetricsScopes service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMetricsScopesHandler ¶
func RegisterMetricsScopesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMetricsScopesHandler registers the http handlers for service MetricsScopes to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMetricsScopesHandlerClient ¶
func RegisterMetricsScopesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MetricsScopesClient) error
RegisterMetricsScopesHandlerClient registers the http handlers for service MetricsScopes to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MetricsScopesClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MetricsScopesClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MetricsScopesClient" to call the correct interceptors.
func RegisterMetricsScopesHandlerFromEndpoint ¶
func RegisterMetricsScopesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMetricsScopesHandlerFromEndpoint is same as RegisterMetricsScopesHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMetricsScopesHandlerServer ¶
func RegisterMetricsScopesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MetricsScopesServer) error
RegisterMetricsScopesHandlerServer registers the http handlers for service MetricsScopes to "mux". UnaryRPC :call MetricsScopesServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMetricsScopesHandlerFromEndpoint instead.
func RegisterMetricsScopesServer ¶
func RegisterMetricsScopesServer(s grpc.ServiceRegistrar, srv MetricsScopesServer)
Types ¶
type CreateMonitoredProjectRequest ¶
type CreateMonitoredProjectRequest struct { // Required. The resource name of the existing `Metrics Scope` that will monitor this // project. // Example: // `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}` Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The initial `MonitoredProject` configuration. // Specify only the `monitored_project.name` field. All other fields are // ignored. The `monitored_project.name` must be in the format: // `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}` MonitoredProject *MonitoredProject `protobuf:"bytes,2,opt,name=monitored_project,json=monitoredProject,proto3" json:"monitored_project,omitempty"` // contains filtered or unexported fields }
Request for the `CreateMonitoredProject` method.
func (*CreateMonitoredProjectRequest) Descriptor
deprecated
func (*CreateMonitoredProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMonitoredProjectRequest.ProtoReflect.Descriptor instead.
func (*CreateMonitoredProjectRequest) GetMonitoredProject ¶
func (x *CreateMonitoredProjectRequest) GetMonitoredProject() *MonitoredProject
func (*CreateMonitoredProjectRequest) GetParent ¶
func (x *CreateMonitoredProjectRequest) GetParent() string
func (*CreateMonitoredProjectRequest) ProtoMessage ¶
func (*CreateMonitoredProjectRequest) ProtoMessage()
func (*CreateMonitoredProjectRequest) ProtoReflect ¶
func (x *CreateMonitoredProjectRequest) ProtoReflect() protoreflect.Message
func (*CreateMonitoredProjectRequest) Reset ¶
func (x *CreateMonitoredProjectRequest) Reset()
func (*CreateMonitoredProjectRequest) String ¶
func (x *CreateMonitoredProjectRequest) String() string
type DeleteMonitoredProjectRequest ¶
type DeleteMonitoredProjectRequest struct { // Required. The resource name of the `MonitoredProject`. // Example: // `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}` // // Authorization requires the following [Google // IAM](https://cloud.google.com/iam) permissions on both the `Metrics Scope` // and on the `MonitoredProject`: `monitoring.metricsScopes.link` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for the `DeleteMonitoredProject` method.
func (*DeleteMonitoredProjectRequest) Descriptor
deprecated
func (*DeleteMonitoredProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMonitoredProjectRequest.ProtoReflect.Descriptor instead.
func (*DeleteMonitoredProjectRequest) GetName ¶
func (x *DeleteMonitoredProjectRequest) GetName() string
func (*DeleteMonitoredProjectRequest) ProtoMessage ¶
func (*DeleteMonitoredProjectRequest) ProtoMessage()
func (*DeleteMonitoredProjectRequest) ProtoReflect ¶
func (x *DeleteMonitoredProjectRequest) ProtoReflect() protoreflect.Message
func (*DeleteMonitoredProjectRequest) Reset ¶
func (x *DeleteMonitoredProjectRequest) Reset()
func (*DeleteMonitoredProjectRequest) String ¶
func (x *DeleteMonitoredProjectRequest) String() string
type GetMetricsScopeRequest ¶
type GetMetricsScopeRequest struct { // Required. The resource name of the `Metrics Scope`. // Example: // `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request for the `GetMetricsScope` method.
func (*GetMetricsScopeRequest) Descriptor
deprecated
func (*GetMetricsScopeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMetricsScopeRequest.ProtoReflect.Descriptor instead.
func (*GetMetricsScopeRequest) GetName ¶
func (x *GetMetricsScopeRequest) GetName() string
func (*GetMetricsScopeRequest) ProtoMessage ¶
func (*GetMetricsScopeRequest) ProtoMessage()
func (*GetMetricsScopeRequest) ProtoReflect ¶
func (x *GetMetricsScopeRequest) ProtoReflect() protoreflect.Message
func (*GetMetricsScopeRequest) Reset ¶
func (x *GetMetricsScopeRequest) Reset()
func (*GetMetricsScopeRequest) String ¶
func (x *GetMetricsScopeRequest) String() string
type ListMetricsScopesByMonitoredProjectRequest ¶
type ListMetricsScopesByMonitoredProjectRequest struct { // Required. The resource name of the `Monitored Project` being requested. // Example: // `projects/{MONITORED_PROJECT_ID_OR_NUMBER}` MonitoredResourceContainer string `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
Request for the `ListMetricsScopesByMonitoredProject` method.
func (*ListMetricsScopesByMonitoredProjectRequest) Descriptor
deprecated
func (*ListMetricsScopesByMonitoredProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMetricsScopesByMonitoredProjectRequest.ProtoReflect.Descriptor instead.
func (*ListMetricsScopesByMonitoredProjectRequest) GetMonitoredResourceContainer ¶
func (x *ListMetricsScopesByMonitoredProjectRequest) GetMonitoredResourceContainer() string
func (*ListMetricsScopesByMonitoredProjectRequest) ProtoMessage ¶
func (*ListMetricsScopesByMonitoredProjectRequest) ProtoMessage()
func (*ListMetricsScopesByMonitoredProjectRequest) ProtoReflect ¶
func (x *ListMetricsScopesByMonitoredProjectRequest) ProtoReflect() protoreflect.Message
func (*ListMetricsScopesByMonitoredProjectRequest) Reset ¶
func (x *ListMetricsScopesByMonitoredProjectRequest) Reset()
func (*ListMetricsScopesByMonitoredProjectRequest) String ¶
func (x *ListMetricsScopesByMonitoredProjectRequest) String() string
type ListMetricsScopesByMonitoredProjectResponse ¶
type ListMetricsScopesByMonitoredProjectResponse struct { // A set of all metrics scopes that the specified monitored project has been // added to. MetricsScopes []*MetricsScope `protobuf:"bytes,1,rep,name=metrics_scopes,json=metricsScopes,proto3" json:"metrics_scopes,omitempty"` // contains filtered or unexported fields }
Response for the `ListMetricsScopesByMonitoredProject` method.
func (*ListMetricsScopesByMonitoredProjectResponse) Descriptor
deprecated
func (*ListMetricsScopesByMonitoredProjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMetricsScopesByMonitoredProjectResponse.ProtoReflect.Descriptor instead.
func (*ListMetricsScopesByMonitoredProjectResponse) GetMetricsScopes ¶
func (x *ListMetricsScopesByMonitoredProjectResponse) GetMetricsScopes() []*MetricsScope
func (*ListMetricsScopesByMonitoredProjectResponse) ProtoMessage ¶
func (*ListMetricsScopesByMonitoredProjectResponse) ProtoMessage()
func (*ListMetricsScopesByMonitoredProjectResponse) ProtoReflect ¶
func (x *ListMetricsScopesByMonitoredProjectResponse) ProtoReflect() protoreflect.Message
func (*ListMetricsScopesByMonitoredProjectResponse) Reset ¶
func (x *ListMetricsScopesByMonitoredProjectResponse) Reset()
func (*ListMetricsScopesByMonitoredProjectResponse) String ¶
func (x *ListMetricsScopesByMonitoredProjectResponse) String() string
type MetricsScope ¶
type MetricsScope struct { // Immutable. The resource name of the Monitoring Metrics Scope. // On input, the resource name can be specified with the // scoping project ID or number. On output, the resource name is // specified with the scoping project number. // Example: // `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time when this `Metrics Scope` was created. CreateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time when this `Metrics Scope` record was last updated. UpdateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The list of projects monitored by this `Metrics Scope`. MonitoredProjects []*MonitoredProject `protobuf:"bytes,4,rep,name=monitored_projects,json=monitoredProjects,proto3" json:"monitored_projects,omitempty"` // contains filtered or unexported fields }
Represents a [Metrics Scope](https://cloud.google.com/monitoring/settings#concept-scope) in Cloud Monitoring, which specifies one or more Google projects and zero or more AWS accounts to monitor together.
func (*MetricsScope) Descriptor
deprecated
func (*MetricsScope) Descriptor() ([]byte, []int)
Deprecated: Use MetricsScope.ProtoReflect.Descriptor instead.
func (*MetricsScope) GetCreateTime ¶
func (x *MetricsScope) GetCreateTime() *timestamp.Timestamp
func (*MetricsScope) GetMonitoredProjects ¶
func (x *MetricsScope) GetMonitoredProjects() []*MonitoredProject
func (*MetricsScope) GetName ¶
func (x *MetricsScope) GetName() string
func (*MetricsScope) GetUpdateTime ¶
func (x *MetricsScope) GetUpdateTime() *timestamp.Timestamp
func (*MetricsScope) ProtoMessage ¶
func (*MetricsScope) ProtoMessage()
func (*MetricsScope) ProtoReflect ¶
func (x *MetricsScope) ProtoReflect() protoreflect.Message
func (*MetricsScope) Reset ¶
func (x *MetricsScope) Reset()
func (*MetricsScope) String ¶
func (x *MetricsScope) String() string
type MetricsScopesClient ¶
type MetricsScopesClient interface { // Returns a specific `Metrics Scope`. GetMetricsScope(ctx context.Context, in *GetMetricsScopeRequest, opts ...grpc.CallOption) (*MetricsScope, error) // Returns a list of every `Metrics Scope` that a specific `MonitoredProject` // has been added to. The metrics scope representing the specified monitored // project will always be the first entry in the response. ListMetricsScopesByMonitoredProject(ctx context.Context, in *ListMetricsScopesByMonitoredProjectRequest, opts ...grpc.CallOption) (*ListMetricsScopesByMonitoredProjectResponse, error) // Adds a `MonitoredProject` with the given project ID // to the specified `Metrics Scope`. CreateMonitoredProject(ctx context.Context, in *CreateMonitoredProjectRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) // Deletes a `MonitoredProject` from the specified `Metrics Scope`. DeleteMonitoredProject(ctx context.Context, in *DeleteMonitoredProjectRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) }
MetricsScopesClient is the client API for MetricsScopes service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMetricsScopesClient ¶
func NewMetricsScopesClient(cc grpc.ClientConnInterface) MetricsScopesClient
type MetricsScopesServer ¶
type MetricsScopesServer interface { // Returns a specific `Metrics Scope`. GetMetricsScope(context.Context, *GetMetricsScopeRequest) (*MetricsScope, error) // Returns a list of every `Metrics Scope` that a specific `MonitoredProject` // has been added to. The metrics scope representing the specified monitored // project will always be the first entry in the response. ListMetricsScopesByMonitoredProject(context.Context, *ListMetricsScopesByMonitoredProjectRequest) (*ListMetricsScopesByMonitoredProjectResponse, error) // Adds a `MonitoredProject` with the given project ID // to the specified `Metrics Scope`. CreateMonitoredProject(context.Context, *CreateMonitoredProjectRequest) (*longrunningpb.Operation, error) // Deletes a `MonitoredProject` from the specified `Metrics Scope`. DeleteMonitoredProject(context.Context, *DeleteMonitoredProjectRequest) (*longrunningpb.Operation, error) // contains filtered or unexported methods }
MetricsScopesServer is the server API for MetricsScopes service. All implementations must embed UnimplementedMetricsScopesServer for forward compatibility
type MonitoredProject ¶
type MonitoredProject struct { // Immutable. The resource name of the `MonitoredProject`. On input, the resource name // includes the scoping project ID and monitored project ID. On output, it // contains the equivalent project numbers. // Example: // `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. The time when this `MonitoredProject` was created. CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // contains filtered or unexported fields }
A [project being monitored](https://cloud.google.com/monitoring/settings/multiple-projects#create-multi) by a `Metrics Scope`.
func (*MonitoredProject) Descriptor
deprecated
func (*MonitoredProject) Descriptor() ([]byte, []int)
Deprecated: Use MonitoredProject.ProtoReflect.Descriptor instead.
func (*MonitoredProject) GetCreateTime ¶
func (x *MonitoredProject) GetCreateTime() *timestamp.Timestamp
func (*MonitoredProject) GetName ¶
func (x *MonitoredProject) GetName() string
func (*MonitoredProject) ProtoMessage ¶
func (*MonitoredProject) ProtoMessage()
func (*MonitoredProject) ProtoReflect ¶
func (x *MonitoredProject) ProtoReflect() protoreflect.Message
func (*MonitoredProject) Reset ¶
func (x *MonitoredProject) Reset()
func (*MonitoredProject) String ¶
func (x *MonitoredProject) String() string
type OperationMetadata ¶
type OperationMetadata struct { // Current state of the batch operation. State OperationMetadata_State `` /* 128-byte string literal not displayed */ // The time when the batch request was received. CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // The time when the operation result was last updated. UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // contains filtered or unexported fields }
Contains metadata for longrunning operation for the edit Metrics Scope endpoints.
func (*OperationMetadata) Descriptor
deprecated
func (*OperationMetadata) Descriptor() ([]byte, []int)
Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetCreateTime ¶
func (x *OperationMetadata) GetCreateTime() *timestamp.Timestamp
func (*OperationMetadata) GetState ¶
func (x *OperationMetadata) GetState() OperationMetadata_State
func (*OperationMetadata) GetUpdateTime ¶
func (x *OperationMetadata) GetUpdateTime() *timestamp.Timestamp
func (*OperationMetadata) ProtoMessage ¶
func (*OperationMetadata) ProtoMessage()
func (*OperationMetadata) ProtoReflect ¶
func (x *OperationMetadata) ProtoReflect() protoreflect.Message
func (*OperationMetadata) Reset ¶
func (x *OperationMetadata) Reset()
func (*OperationMetadata) String ¶
func (x *OperationMetadata) String() string
type OperationMetadata_State ¶
type OperationMetadata_State int32
Batch operation states.
const ( // Invalid. OperationMetadata_STATE_UNSPECIFIED OperationMetadata_State = 0 // Request has been received. OperationMetadata_CREATED OperationMetadata_State = 1 // Request is actively being processed. OperationMetadata_RUNNING OperationMetadata_State = 2 // The batch processing is done. OperationMetadata_DONE OperationMetadata_State = 3 // The batch processing was cancelled. OperationMetadata_CANCELLED OperationMetadata_State = 4 )
func (OperationMetadata_State) Descriptor ¶
func (OperationMetadata_State) Descriptor() protoreflect.EnumDescriptor
func (OperationMetadata_State) Enum ¶
func (x OperationMetadata_State) Enum() *OperationMetadata_State
func (OperationMetadata_State) EnumDescriptor
deprecated
func (OperationMetadata_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperationMetadata_State.Descriptor instead.
func (OperationMetadata_State) Number ¶
func (x OperationMetadata_State) Number() protoreflect.EnumNumber
func (OperationMetadata_State) String ¶
func (x OperationMetadata_State) String() string
func (OperationMetadata_State) Type ¶
func (OperationMetadata_State) Type() protoreflect.EnumType
type UnimplementedMetricsScopesServer ¶
type UnimplementedMetricsScopesServer struct { }
UnimplementedMetricsScopesServer must be embedded to have forward compatible implementations.
func (UnimplementedMetricsScopesServer) CreateMonitoredProject ¶
func (UnimplementedMetricsScopesServer) CreateMonitoredProject(context.Context, *CreateMonitoredProjectRequest) (*longrunningpb.Operation, error)
func (UnimplementedMetricsScopesServer) DeleteMonitoredProject ¶
func (UnimplementedMetricsScopesServer) DeleteMonitoredProject(context.Context, *DeleteMonitoredProjectRequest) (*longrunningpb.Operation, error)
func (UnimplementedMetricsScopesServer) GetMetricsScope ¶
func (UnimplementedMetricsScopesServer) GetMetricsScope(context.Context, *GetMetricsScopeRequest) (*MetricsScope, error)
func (UnimplementedMetricsScopesServer) ListMetricsScopesByMonitoredProject ¶
func (UnimplementedMetricsScopesServer) ListMetricsScopesByMonitoredProject(context.Context, *ListMetricsScopesByMonitoredProjectRequest) (*ListMetricsScopesByMonitoredProjectResponse, error)
type UnsafeMetricsScopesServer ¶
type UnsafeMetricsScopesServer interface {
// contains filtered or unexported methods
}
UnsafeMetricsScopesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetricsScopesServer will result in compilation errors.