Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterMetricPluginServer(s grpc.ServiceRegistrar, srv MetricPluginServer)
- type AggregateValue
- func (*AggregateValue) Descriptor() ([]byte, []int)deprecated
- func (x *AggregateValue) GetAvg() float64
- func (x *AggregateValue) GetCount() int64
- func (x *AggregateValue) GetLabels() map[string]string
- func (x *AggregateValue) GetMax() float64
- func (x *AggregateValue) GetMetricId() string
- func (x *AggregateValue) GetMin() float64
- func (x *AggregateValue) GetP50() float64
- func (x *AggregateValue) GetP90() float64
- func (x *AggregateValue) GetP99() float64
- func (x *AggregateValue) GetSum() float64
- func (x *AggregateValue) GetWindow() *durationpb.Duration
- func (*AggregateValue) ProtoMessage()
- func (x *AggregateValue) ProtoReflect() protoreflect.Message
- func (x *AggregateValue) Reset()
- func (x *AggregateValue) String() string
- type CurrentValue
- func (*CurrentValue) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentValue) GetLabels() map[string]string
- func (x *CurrentValue) GetMetricId() string
- func (x *CurrentValue) GetTimestamp() *timestamppb.Timestamp
- func (x *CurrentValue) GetValue() float64
- func (*CurrentValue) ProtoMessage()
- func (x *CurrentValue) ProtoReflect() protoreflect.Message
- func (x *CurrentValue) Reset()
- func (x *CurrentValue) String() string
- type DataPoint
- func (*DataPoint) Descriptor() ([]byte, []int)deprecated
- func (x *DataPoint) GetLabels() map[string]string
- func (x *DataPoint) GetTimestamp() *timestamppb.Timestamp
- func (x *DataPoint) GetValue() float64
- func (*DataPoint) ProtoMessage()
- func (x *DataPoint) ProtoReflect() protoreflect.Message
- func (x *DataPoint) Reset()
- func (x *DataPoint) String() string
- type FiniteMetricCapabilities
- func (*FiniteMetricCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *FiniteMetricCapabilities) GetOwnerCatalog() bool
- func (x *FiniteMetricCapabilities) GetVersion() uint32
- func (*FiniteMetricCapabilities) ProtoMessage()
- func (x *FiniteMetricCapabilities) ProtoReflect() protoreflect.Message
- func (x *FiniteMetricCapabilities) Reset()
- func (x *FiniteMetricCapabilities) String() string
- type FiniteMetricDescriptor
- func (*FiniteMetricDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *FiniteMetricDescriptor) GetDescription() string
- func (x *FiniteMetricDescriptor) GetId() string
- func (x *FiniteMetricDescriptor) GetName() string
- func (x *FiniteMetricDescriptor) GetRangeReuse() bool
- func (x *FiniteMetricDescriptor) GetRangeToCurrent() bool
- func (x *FiniteMetricDescriptor) GetResourceKey() string
- func (x *FiniteMetricDescriptor) GetShapes() []string
- func (x *FiniteMetricDescriptor) GetSource() *MetricSourceRef
- func (x *FiniteMetricDescriptor) GetUnit() string
- func (*FiniteMetricDescriptor) ProtoMessage()
- func (x *FiniteMetricDescriptor) ProtoReflect() protoreflect.Message
- func (x *FiniteMetricDescriptor) Reset()
- func (x *FiniteMetricDescriptor) String() string
- type GetSupportedMetricResourcesResponse
- func (*GetSupportedMetricResourcesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSupportedMetricResourcesResponse) GetHandlers() []*MetricHandler
- func (x *GetSupportedMetricResourcesResponse) GetProvider() *MetricProviderInfo
- func (*GetSupportedMetricResourcesResponse) ProtoMessage()
- func (x *GetSupportedMetricResourcesResponse) ProtoReflect() protoreflect.Message
- func (x *GetSupportedMetricResourcesResponse) Reset()
- func (x *GetSupportedMetricResourcesResponse) String() string
- type MetricColorRange
- func (*MetricColorRange) Descriptor() ([]byte, []int)deprecated
- func (x *MetricColorRange) GetColor() string
- func (x *MetricColorRange) GetMax() float64
- func (x *MetricColorRange) GetMin() float64
- func (*MetricColorRange) ProtoMessage()
- func (x *MetricColorRange) ProtoReflect() protoreflect.Message
- func (x *MetricColorRange) Reset()
- func (x *MetricColorRange) String() string
- type MetricDefinition
- func (*MetricDefinition) Descriptor() ([]byte, []int)deprecated
- func (x *MetricDefinition) GetBatchStrategy() string
- func (x *MetricDefinition) GetDimensions() []string
- func (x *MetricDefinition) GetFieldBindings() []*MetricFieldBinding
- func (x *MetricDefinition) GetId() string
- func (x *MetricDefinition) GetIdentityLabels() []string
- func (x *MetricDefinition) GetName() string
- func (x *MetricDefinition) GetNative() bool
- func (x *MetricDefinition) GetQuery() string
- func (x *MetricDefinition) GetQueryLanguage() string
- func (x *MetricDefinition) GetRangeReuse() bool
- func (x *MetricDefinition) GetReducer() string
- func (x *MetricDefinition) GetResourceKeys() []string
- func (x *MetricDefinition) GetRevision() string
- func (x *MetricDefinition) GetSemantics() string
- func (x *MetricDefinition) GetSupportedShapes() []string
- func (x *MetricDefinition) GetUnit() string
- func (*MetricDefinition) ProtoMessage()
- func (x *MetricDefinition) ProtoReflect() protoreflect.Message
- func (x *MetricDefinition) Reset()
- func (x *MetricDefinition) String() string
- type MetricDescriptor
- func (*MetricDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *MetricDescriptor) GetChartGroup() string
- func (x *MetricDescriptor) GetColorRanges() []*MetricColorRange
- func (x *MetricDescriptor) GetFormatString() string
- func (x *MetricDescriptor) GetIcon() string
- func (x *MetricDescriptor) GetId() string
- func (x *MetricDescriptor) GetName() string
- func (x *MetricDescriptor) GetSupportedShapes() []MetricShape
- func (x *MetricDescriptor) GetUnit() MetricUnit
- func (*MetricDescriptor) ProtoMessage()
- func (x *MetricDescriptor) ProtoReflect() protoreflect.Message
- func (x *MetricDescriptor) Reset()
- func (x *MetricDescriptor) String() string
- type MetricFieldBinding
- func (*MetricFieldBinding) Descriptor() ([]byte, []int)deprecated
- func (x *MetricFieldBinding) GetField() string
- func (x *MetricFieldBinding) GetLabel() string
- func (x *MetricFieldBinding) GetRequired() bool
- func (x *MetricFieldBinding) GetResourcePath() string
- func (x *MetricFieldBinding) GetSource() string
- func (x *MetricFieldBinding) GetTransform() string
- func (*MetricFieldBinding) ProtoMessage()
- func (x *MetricFieldBinding) ProtoReflect() protoreflect.Message
- func (x *MetricFieldBinding) Reset()
- func (x *MetricFieldBinding) String() string
- type MetricHandler
- func (*MetricHandler) Descriptor() ([]byte, []int)deprecated
- func (x *MetricHandler) GetMetrics() []*MetricDescriptor
- func (x *MetricHandler) GetResource() string
- func (*MetricHandler) ProtoMessage()
- func (x *MetricHandler) ProtoReflect() protoreflect.Message
- func (x *MetricHandler) Reset()
- func (x *MetricHandler) String() string
- type MetricOperationError
- func (*MetricOperationError) Descriptor() ([]byte, []int)deprecated
- func (x *MetricOperationError) GetCode() string
- func (x *MetricOperationError) GetMessage() string
- func (x *MetricOperationError) GetSuggestions() []string
- func (x *MetricOperationError) GetTitle() string
- func (*MetricOperationError) ProtoMessage()
- func (x *MetricOperationError) ProtoReflect() protoreflect.Message
- func (x *MetricOperationError) Reset()
- func (x *MetricOperationError) String() string
- type MetricOwnerCatalog
- func (*MetricOwnerCatalog) Descriptor() ([]byte, []int)deprecated
- func (x *MetricOwnerCatalog) GetDefinitions() []*MetricDefinition
- func (x *MetricOwnerCatalog) GetScopeFields() []*MetricScopeField
- func (*MetricOwnerCatalog) ProtoMessage()
- func (x *MetricOwnerCatalog) ProtoReflect() protoreflect.Message
- func (x *MetricOwnerCatalog) Reset()
- func (x *MetricOwnerCatalog) String() string
- type MetricPluginClient
- type MetricPluginServer
- type MetricPlugin_StreamMetricsClient
- type MetricPlugin_StreamMetricsServer
- type MetricPlugin_StreamResourceMetricsClient
- type MetricPlugin_StreamResourceMetricsServer
- type MetricProviderInfo
- func (*MetricProviderInfo) Descriptor() ([]byte, []int)deprecated
- func (x *MetricProviderInfo) GetDescription() string
- func (x *MetricProviderInfo) GetIcon() string
- func (x *MetricProviderInfo) GetId() string
- func (x *MetricProviderInfo) GetName() string
- func (*MetricProviderInfo) ProtoMessage()
- func (x *MetricProviderInfo) ProtoReflect() protoreflect.Message
- func (x *MetricProviderInfo) Reset()
- func (x *MetricProviderInfo) String() string
- type MetricQueryContext
- func (*MetricQueryContext) Descriptor() ([]byte, []int)deprecated
- func (x *MetricQueryContext) GetDefinitions() []*MetricDefinition
- func (x *MetricQueryContext) GetMappingRevision() string
- func (x *MetricQueryContext) GetProjectionRevision() string
- func (x *MetricQueryContext) GetPublicScope() map[string]string
- func (*MetricQueryContext) ProtoMessage()
- func (x *MetricQueryContext) ProtoReflect() protoreflect.Message
- func (x *MetricQueryContext) Reset()
- func (x *MetricQueryContext) String() string
- type MetricResult
- func (*MetricResult) Descriptor() ([]byte, []int)deprecated
- func (x *MetricResult) GetAggregateValue() *AggregateValue
- func (x *MetricResult) GetCurrentValue() *CurrentValue
- func (x *MetricResult) GetResult() isMetricResult_Result
- func (x *MetricResult) GetTimeSeries() *TimeSeries
- func (*MetricResult) ProtoMessage()
- func (x *MetricResult) ProtoReflect() protoreflect.Message
- func (x *MetricResult) Reset()
- func (x *MetricResult) String() string
- type MetricResult_AggregateValue
- type MetricResult_CurrentValue
- type MetricResult_TimeSeries
- type MetricScopeField
- func (*MetricScopeField) Descriptor() ([]byte, []int)deprecated
- func (x *MetricScopeField) GetDescription() string
- func (x *MetricScopeField) GetKey() string
- func (x *MetricScopeField) GetName() string
- func (*MetricScopeField) ProtoMessage()
- func (x *MetricScopeField) ProtoReflect() protoreflect.Message
- func (x *MetricScopeField) Reset()
- func (x *MetricScopeField) String() string
- type MetricShape
- func (MetricShape) Descriptor() protoreflect.EnumDescriptor
- func (x MetricShape) Enum() *MetricShape
- func (MetricShape) EnumDescriptor() ([]byte, []int)deprecated
- func (x MetricShape) Number() protoreflect.EnumNumber
- func (x MetricShape) String() string
- func (MetricShape) Type() protoreflect.EnumType
- type MetricSourceRef
- func (*MetricSourceRef) Descriptor() ([]byte, []int)deprecated
- func (x *MetricSourceRef) GetConnectionId() string
- func (x *MetricSourceRef) GetDatasourceKind() string
- func (x *MetricSourceRef) GetDatasourceUid() string
- func (x *MetricSourceRef) GetNative() bool
- func (x *MetricSourceRef) GetPluginId() string
- func (*MetricSourceRef) ProtoMessage()
- func (x *MetricSourceRef) ProtoReflect() protoreflect.Message
- func (x *MetricSourceRef) Reset()
- func (x *MetricSourceRef) String() string
- type MetricStreamCommand
- func (MetricStreamCommand) Descriptor() protoreflect.EnumDescriptor
- func (x MetricStreamCommand) Enum() *MetricStreamCommand
- func (MetricStreamCommand) EnumDescriptor() ([]byte, []int)deprecated
- func (x MetricStreamCommand) Number() protoreflect.EnumNumber
- func (x MetricStreamCommand) String() string
- func (MetricStreamCommand) Type() protoreflect.EnumType
- type MetricStreamInput
- func (*MetricStreamInput) Descriptor() ([]byte, []int)deprecated
- func (x *MetricStreamInput) GetCatalogRevision() string
- func (x *MetricStreamInput) GetCommand() MetricStreamCommand
- func (x *MetricStreamInput) GetInterval() *durationpb.Duration
- func (x *MetricStreamInput) GetMetricIds() []string
- func (x *MetricStreamInput) GetParams() map[string]string
- func (x *MetricStreamInput) GetReference() *v2.ResourceReference
- func (x *MetricStreamInput) GetResourceData() *v2.Value
- func (x *MetricStreamInput) GetResourceId() string
- func (x *MetricStreamInput) GetResourceKey() string
- func (x *MetricStreamInput) GetResourceNamespace() string
- func (x *MetricStreamInput) GetResourceOpen() bool
- func (x *MetricStreamInput) GetResourceWireVersion() uint32
- func (x *MetricStreamInput) GetRoute() *v2.AccessRoute
- func (x *MetricStreamInput) GetSubscriptionId() string
- func (*MetricStreamInput) ProtoMessage()
- func (x *MetricStreamInput) ProtoReflect() protoreflect.Message
- func (x *MetricStreamInput) Reset()
- func (x *MetricStreamInput) String() string
- type MetricStreamOutput
- func (*MetricStreamOutput) Descriptor() ([]byte, []int)deprecated
- func (x *MetricStreamOutput) GetError() string
- func (x *MetricStreamOutput) GetOperationError() *MetricOperationError
- func (x *MetricStreamOutput) GetResults() []*MetricResult
- func (x *MetricStreamOutput) GetSubscriptionId() string
- func (x *MetricStreamOutput) GetTimestamp() *timestamppb.Timestamp
- func (*MetricStreamOutput) ProtoMessage()
- func (x *MetricStreamOutput) ProtoReflect() protoreflect.Message
- func (x *MetricStreamOutput) Reset()
- func (x *MetricStreamOutput) String() string
- type MetricUnit
- type QueryMetricsRequest
- func (*QueryMetricsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryMetricsRequest) GetEndTime() *timestamppb.Timestamp
- func (x *QueryMetricsRequest) GetMetricIds() []string
- func (x *QueryMetricsRequest) GetParams() map[string]string
- func (x *QueryMetricsRequest) GetReference() *v2.ResourceReference
- func (x *QueryMetricsRequest) GetResourceData() *v2.Value
- func (x *QueryMetricsRequest) GetResourceId() string
- func (x *QueryMetricsRequest) GetResourceKey() string
- func (x *QueryMetricsRequest) GetResourceNamespace() string
- func (x *QueryMetricsRequest) GetResourceWireVersion() uint32
- func (x *QueryMetricsRequest) GetRoute() *v2.AccessRoute
- func (x *QueryMetricsRequest) GetShape() MetricShape
- func (x *QueryMetricsRequest) GetStartTime() *timestamppb.Timestamp
- func (x *QueryMetricsRequest) GetStep() *durationpb.Duration
- func (*QueryMetricsRequest) ProtoMessage()
- func (x *QueryMetricsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryMetricsRequest) Reset()
- func (x *QueryMetricsRequest) String() string
- type QueryMetricsResponse
- func (*QueryMetricsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryMetricsResponse) GetError() string
- func (x *QueryMetricsResponse) GetResults() []*MetricResult
- func (x *QueryMetricsResponse) GetSuccess() bool
- func (*QueryMetricsResponse) ProtoMessage()
- func (x *QueryMetricsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryMetricsResponse) Reset()
- func (x *QueryMetricsResponse) String() string
- type ResourceMetricPoint
- func (*ResourceMetricPoint) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceMetricPoint) GetTime() *timestamppb.Timestamp
- func (x *ResourceMetricPoint) GetValue() float64
- func (*ResourceMetricPoint) ProtoMessage()
- func (x *ResourceMetricPoint) ProtoReflect() protoreflect.Message
- func (x *ResourceMetricPoint) Reset()
- func (x *ResourceMetricPoint) String() string
- type ResourceMetricResult
- func (*ResourceMetricResult) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceMetricResult) GetDimensions() map[string]string
- func (x *ResourceMetricResult) GetIdentityScope() string
- func (x *ResourceMetricResult) GetMessage() string
- func (x *ResourceMetricResult) GetMetricId() string
- func (x *ResourceMetricResult) GetObservedAt() *timestamppb.Timestamp
- func (x *ResourceMetricResult) GetPoints() []*ResourceMetricPoint
- func (x *ResourceMetricResult) GetResourceToken() string
- func (x *ResourceMetricResult) GetSource() *MetricSourceRef
- func (x *ResourceMetricResult) GetStatus() string
- func (x *ResourceMetricResult) GetValue() float64
- func (x *ResourceMetricResult) GetWindow() *durationpb.Duration
- func (*ResourceMetricResult) ProtoMessage()
- func (x *ResourceMetricResult) ProtoReflect() protoreflect.Message
- func (x *ResourceMetricResult) Reset()
- func (x *ResourceMetricResult) String() string
- type ResourceMetricStreamOutput
- func (*ResourceMetricStreamOutput) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceMetricStreamOutput) GetOutput() *MetricStreamOutput
- func (x *ResourceMetricStreamOutput) GetPayload() isResourceMetricStreamOutput_Payload
- func (x *ResourceMetricStreamOutput) GetReady() bool
- func (x *ResourceMetricStreamOutput) GetResourceWireVersion() uint32
- func (*ResourceMetricStreamOutput) ProtoMessage()
- func (x *ResourceMetricStreamOutput) ProtoReflect() protoreflect.Message
- func (x *ResourceMetricStreamOutput) Reset()
- func (x *ResourceMetricStreamOutput) String() string
- type ResourceMetricStreamOutput_Output
- type ResourceMetricStreamOutput_Ready
- type ResourceMetricTarget
- func (*ResourceMetricTarget) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceMetricTarget) GetPublicData() map[string]string
- func (x *ResourceMetricTarget) GetReference() *v2.ResourceReference
- func (x *ResourceMetricTarget) GetRoute() *v2.AccessRoute
- func (x *ResourceMetricTarget) GetToken() string
- func (*ResourceMetricTarget) ProtoMessage()
- func (x *ResourceMetricTarget) ProtoReflect() protoreflect.Message
- func (x *ResourceMetricTarget) Reset()
- func (x *ResourceMetricTarget) String() string
- type ResourceMetricsCatalog
- func (*ResourceMetricsCatalog) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceMetricsCatalog) GetMaxSampleAge() *durationpb.Duration
- func (x *ResourceMetricsCatalog) GetMaxTargets() int32
- func (x *ResourceMetricsCatalog) GetMetrics() []*FiniteMetricDescriptor
- func (x *ResourceMetricsCatalog) GetSource() *MetricSourceRef
- func (*ResourceMetricsCatalog) ProtoMessage()
- func (x *ResourceMetricsCatalog) ProtoReflect() protoreflect.Message
- func (x *ResourceMetricsCatalog) Reset()
- func (x *ResourceMetricsCatalog) String() string
- type ResourceMetricsCatalogRequest
- func (*ResourceMetricsCatalogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceMetricsCatalogRequest) GetContext() *MetricQueryContext
- func (x *ResourceMetricsCatalogRequest) GetResourceKey() string
- func (x *ResourceMetricsCatalogRequest) GetSource() *MetricSourceRef
- func (*ResourceMetricsCatalogRequest) ProtoMessage()
- func (x *ResourceMetricsCatalogRequest) ProtoReflect() protoreflect.Message
- func (x *ResourceMetricsCatalogRequest) Reset()
- func (x *ResourceMetricsCatalogRequest) String() string
- type ResourceMetricsQuery
- func (*ResourceMetricsQuery) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceMetricsQuery) GetContext() *MetricQueryContext
- func (x *ResourceMetricsQuery) GetEndTime() *timestamppb.Timestamp
- func (x *ResourceMetricsQuery) GetMetricIds() []string
- func (x *ResourceMetricsQuery) GetShape() string
- func (x *ResourceMetricsQuery) GetSource() *MetricSourceRef
- func (x *ResourceMetricsQuery) GetStartTime() *timestamppb.Timestamp
- func (x *ResourceMetricsQuery) GetStep() *durationpb.Duration
- func (x *ResourceMetricsQuery) GetTargets() []*ResourceMetricTarget
- func (*ResourceMetricsQuery) ProtoMessage()
- func (x *ResourceMetricsQuery) ProtoReflect() protoreflect.Message
- func (x *ResourceMetricsQuery) Reset()
- func (x *ResourceMetricsQuery) String() string
- type ResourceMetricsResponse
- func (*ResourceMetricsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceMetricsResponse) GetComplete() bool
- func (x *ResourceMetricsResponse) GetResults() []*ResourceMetricResult
- func (x *ResourceMetricsResponse) GetWarnings() []string
- func (*ResourceMetricsResponse) ProtoMessage()
- func (x *ResourceMetricsResponse) ProtoReflect() protoreflect.Message
- func (x *ResourceMetricsResponse) Reset()
- func (x *ResourceMetricsResponse) String() string
- type ResourceQueryMetricsResponse
- func (*ResourceQueryMetricsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceQueryMetricsResponse) GetResourceWireVersion() uint32
- func (x *ResourceQueryMetricsResponse) GetResponse() *QueryMetricsResponse
- func (*ResourceQueryMetricsResponse) ProtoMessage()
- func (x *ResourceQueryMetricsResponse) ProtoReflect() protoreflect.Message
- func (x *ResourceQueryMetricsResponse) Reset()
- func (x *ResourceQueryMetricsResponse) String() string
- type TimeSeries
- func (*TimeSeries) Descriptor() ([]byte, []int)deprecated
- func (x *TimeSeries) GetDataPoints() []*DataPoint
- func (x *TimeSeries) GetLabels() map[string]string
- func (x *TimeSeries) GetMetricId() string
- func (*TimeSeries) ProtoMessage()
- func (x *TimeSeries) ProtoReflect() protoreflect.Message
- func (x *TimeSeries) Reset()
- func (x *TimeSeries) String() string
- type UnimplementedMetricPluginServer
- func (UnimplementedMetricPluginServer) GetFiniteCapabilities(context.Context, *emptypb.Empty) (*FiniteMetricCapabilities, error)
- func (UnimplementedMetricPluginServer) GetMetricOwnerCatalog(context.Context, *emptypb.Empty) (*MetricOwnerCatalog, error)
- func (UnimplementedMetricPluginServer) GetResourceMetricsCatalog(context.Context, *ResourceMetricsCatalogRequest) (*ResourceMetricsCatalog, error)
- func (UnimplementedMetricPluginServer) GetSupportedResources(context.Context, *emptypb.Empty) (*GetSupportedMetricResourcesResponse, error)
- func (UnimplementedMetricPluginServer) Query(context.Context, *QueryMetricsRequest) (*QueryMetricsResponse, error)
- func (UnimplementedMetricPluginServer) QueryResource(context.Context, *QueryMetricsRequest) (*ResourceQueryMetricsResponse, error)
- func (UnimplementedMetricPluginServer) QueryResources(context.Context, *ResourceMetricsQuery) (*ResourceMetricsResponse, error)
- func (UnimplementedMetricPluginServer) StreamMetrics(MetricPlugin_StreamMetricsServer) error
- func (UnimplementedMetricPluginServer) StreamResourceMetrics(MetricPlugin_StreamResourceMetricsServer) error
- type UnsafeMetricPluginServer
Constants ¶
const ( MetricPlugin_GetSupportedResources_FullMethodName = "/omniview.sdk.metric.v1.MetricPlugin/GetSupportedResources" MetricPlugin_Query_FullMethodName = "/omniview.sdk.metric.v1.MetricPlugin/Query" MetricPlugin_StreamMetrics_FullMethodName = "/omniview.sdk.metric.v1.MetricPlugin/StreamMetrics" MetricPlugin_QueryResource_FullMethodName = "/omniview.sdk.metric.v1.MetricPlugin/QueryResource" MetricPlugin_StreamResourceMetrics_FullMethodName = "/omniview.sdk.metric.v1.MetricPlugin/StreamResourceMetrics" MetricPlugin_GetFiniteCapabilities_FullMethodName = "/omniview.sdk.metric.v1.MetricPlugin/GetFiniteCapabilities" MetricPlugin_GetResourceMetricsCatalog_FullMethodName = "/omniview.sdk.metric.v1.MetricPlugin/GetResourceMetricsCatalog" MetricPlugin_QueryResources_FullMethodName = "/omniview.sdk.metric.v1.MetricPlugin/QueryResources" MetricPlugin_GetMetricOwnerCatalog_FullMethodName = "/omniview.sdk.metric.v1.MetricPlugin/GetMetricOwnerCatalog" )
Variables ¶
var ( MetricUnit_name = map[int32]string{ 0: "METRIC_UNIT_NONE", 1: "METRIC_UNIT_BYTES", 2: "METRIC_UNIT_KB", 3: "METRIC_UNIT_MB", 4: "METRIC_UNIT_GB", 5: "METRIC_UNIT_PERCENTAGE", 6: "METRIC_UNIT_MILLISECONDS", 7: "METRIC_UNIT_SECONDS", 8: "METRIC_UNIT_COUNT", 9: "METRIC_UNIT_OPS_PER_SEC", 10: "METRIC_UNIT_BYTES_PER_SEC", 11: "METRIC_UNIT_MILLICORES", 12: "METRIC_UNIT_CORES", } MetricUnit_value = map[string]int32{ "METRIC_UNIT_NONE": 0, "METRIC_UNIT_BYTES": 1, "METRIC_UNIT_KB": 2, "METRIC_UNIT_MB": 3, "METRIC_UNIT_GB": 4, "METRIC_UNIT_PERCENTAGE": 5, "METRIC_UNIT_MILLISECONDS": 6, "METRIC_UNIT_SECONDS": 7, "METRIC_UNIT_COUNT": 8, "METRIC_UNIT_OPS_PER_SEC": 9, "METRIC_UNIT_BYTES_PER_SEC": 10, "METRIC_UNIT_MILLICORES": 11, "METRIC_UNIT_CORES": 12, } )
Enum value maps for MetricUnit.
var ( MetricShape_name = map[int32]string{ 0: "METRIC_SHAPE_CURRENT", 1: "METRIC_SHAPE_TIMESERIES", 2: "METRIC_SHAPE_AGGREGATE", } MetricShape_value = map[string]int32{ "METRIC_SHAPE_CURRENT": 0, "METRIC_SHAPE_TIMESERIES": 1, "METRIC_SHAPE_AGGREGATE": 2, } )
Enum value maps for MetricShape.
var ( MetricStreamCommand_name = map[int32]string{ 0: "METRIC_STREAM_COMMAND_SUBSCRIBE", 1: "METRIC_STREAM_COMMAND_UNSUBSCRIBE", 2: "METRIC_STREAM_COMMAND_CLOSE", } MetricStreamCommand_value = map[string]int32{ "METRIC_STREAM_COMMAND_SUBSCRIBE": 0, "METRIC_STREAM_COMMAND_UNSUBSCRIBE": 1, "METRIC_STREAM_COMMAND_CLOSE": 2, } )
Enum value maps for MetricStreamCommand.
var File_proto_v1_metric_metric_proto protoreflect.FileDescriptor
var MetricPlugin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "omniview.sdk.metric.v1.MetricPlugin", HandlerType: (*MetricPluginServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSupportedResources", Handler: _MetricPlugin_GetSupportedResources_Handler, }, { MethodName: "Query", Handler: _MetricPlugin_Query_Handler, }, { MethodName: "QueryResource", Handler: _MetricPlugin_QueryResource_Handler, }, { MethodName: "GetFiniteCapabilities", Handler: _MetricPlugin_GetFiniteCapabilities_Handler, }, { MethodName: "GetResourceMetricsCatalog", Handler: _MetricPlugin_GetResourceMetricsCatalog_Handler, }, { MethodName: "QueryResources", Handler: _MetricPlugin_QueryResources_Handler, }, { MethodName: "GetMetricOwnerCatalog", Handler: _MetricPlugin_GetMetricOwnerCatalog_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StreamMetrics", Handler: _MetricPlugin_StreamMetrics_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "StreamResourceMetrics", Handler: _MetricPlugin_StreamResourceMetrics_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "proto/v1/metric/metric.proto", }
MetricPlugin_ServiceDesc is the grpc.ServiceDesc for MetricPlugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMetricPluginServer ¶
func RegisterMetricPluginServer(s grpc.ServiceRegistrar, srv MetricPluginServer)
Types ¶
type AggregateValue ¶
type AggregateValue struct {
MetricId string `protobuf:"bytes,1,opt,name=metric_id,json=metricId,proto3" json:"metric_id,omitempty"`
Min float64 `protobuf:"fixed64,2,opt,name=min,proto3" json:"min,omitempty"`
Max float64 `protobuf:"fixed64,3,opt,name=max,proto3" json:"max,omitempty"`
Avg float64 `protobuf:"fixed64,4,opt,name=avg,proto3" json:"avg,omitempty"`
Sum float64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"`
P50 float64 `protobuf:"fixed64,6,opt,name=p50,proto3" json:"p50,omitempty"`
P90 float64 `protobuf:"fixed64,7,opt,name=p90,proto3" json:"p90,omitempty"`
P99 float64 `protobuf:"fixed64,8,opt,name=p99,proto3" json:"p99,omitempty"`
Count int64 `protobuf:"varint,9,opt,name=count,proto3" json:"count,omitempty"`
Window *durationpb.Duration `protobuf:"bytes,10,opt,name=window,proto3" json:"window,omitempty"`
Labels map[string]string `` /* 140-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*AggregateValue) Descriptor
deprecated
func (*AggregateValue) Descriptor() ([]byte, []int)
Deprecated: Use AggregateValue.ProtoReflect.Descriptor instead.
func (*AggregateValue) GetAvg ¶
func (x *AggregateValue) GetAvg() float64
func (*AggregateValue) GetCount ¶
func (x *AggregateValue) GetCount() int64
func (*AggregateValue) GetLabels ¶
func (x *AggregateValue) GetLabels() map[string]string
func (*AggregateValue) GetMax ¶
func (x *AggregateValue) GetMax() float64
func (*AggregateValue) GetMetricId ¶
func (x *AggregateValue) GetMetricId() string
func (*AggregateValue) GetMin ¶
func (x *AggregateValue) GetMin() float64
func (*AggregateValue) GetP50 ¶
func (x *AggregateValue) GetP50() float64
func (*AggregateValue) GetP90 ¶
func (x *AggregateValue) GetP90() float64
func (*AggregateValue) GetP99 ¶
func (x *AggregateValue) GetP99() float64
func (*AggregateValue) GetSum ¶
func (x *AggregateValue) GetSum() float64
func (*AggregateValue) GetWindow ¶
func (x *AggregateValue) GetWindow() *durationpb.Duration
func (*AggregateValue) ProtoMessage ¶
func (*AggregateValue) ProtoMessage()
func (*AggregateValue) ProtoReflect ¶
func (x *AggregateValue) ProtoReflect() protoreflect.Message
func (*AggregateValue) Reset ¶
func (x *AggregateValue) Reset()
func (*AggregateValue) String ¶
func (x *AggregateValue) String() string
type CurrentValue ¶
type CurrentValue struct {
MetricId string `protobuf:"bytes,1,opt,name=metric_id,json=metricId,proto3" json:"metric_id,omitempty"`
Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*CurrentValue) Descriptor
deprecated
func (*CurrentValue) Descriptor() ([]byte, []int)
Deprecated: Use CurrentValue.ProtoReflect.Descriptor instead.
func (*CurrentValue) GetLabels ¶
func (x *CurrentValue) GetLabels() map[string]string
func (*CurrentValue) GetMetricId ¶
func (x *CurrentValue) GetMetricId() string
func (*CurrentValue) GetTimestamp ¶
func (x *CurrentValue) GetTimestamp() *timestamppb.Timestamp
func (*CurrentValue) GetValue ¶
func (x *CurrentValue) GetValue() float64
func (*CurrentValue) ProtoMessage ¶
func (*CurrentValue) ProtoMessage()
func (*CurrentValue) ProtoReflect ¶
func (x *CurrentValue) ProtoReflect() protoreflect.Message
func (*CurrentValue) Reset ¶
func (x *CurrentValue) Reset()
func (*CurrentValue) String ¶
func (x *CurrentValue) String() string
type DataPoint ¶
type DataPoint struct {
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*DataPoint) Descriptor
deprecated
func (*DataPoint) GetTimestamp ¶
func (x *DataPoint) GetTimestamp() *timestamppb.Timestamp
func (*DataPoint) ProtoMessage ¶
func (*DataPoint) ProtoMessage()
func (*DataPoint) ProtoReflect ¶
func (x *DataPoint) ProtoReflect() protoreflect.Message
type FiniteMetricCapabilities ¶ added in v0.16.0
type FiniteMetricCapabilities struct {
Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
OwnerCatalog bool `protobuf:"varint,2,opt,name=owner_catalog,json=ownerCatalog,proto3" json:"owner_catalog,omitempty"`
// contains filtered or unexported fields
}
func (*FiniteMetricCapabilities) Descriptor
deprecated
added in
v0.16.0
func (*FiniteMetricCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use FiniteMetricCapabilities.ProtoReflect.Descriptor instead.
func (*FiniteMetricCapabilities) GetOwnerCatalog ¶ added in v0.16.0
func (x *FiniteMetricCapabilities) GetOwnerCatalog() bool
func (*FiniteMetricCapabilities) GetVersion ¶ added in v0.16.0
func (x *FiniteMetricCapabilities) GetVersion() uint32
func (*FiniteMetricCapabilities) ProtoMessage ¶ added in v0.16.0
func (*FiniteMetricCapabilities) ProtoMessage()
func (*FiniteMetricCapabilities) ProtoReflect ¶ added in v0.16.0
func (x *FiniteMetricCapabilities) ProtoReflect() protoreflect.Message
func (*FiniteMetricCapabilities) Reset ¶ added in v0.16.0
func (x *FiniteMetricCapabilities) Reset()
func (*FiniteMetricCapabilities) String ¶ added in v0.16.0
func (x *FiniteMetricCapabilities) String() string
type FiniteMetricDescriptor ¶ added in v0.16.0
type FiniteMetricDescriptor struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
ResourceKey string `protobuf:"bytes,3,opt,name=resource_key,json=resourceKey,proto3" json:"resource_key,omitempty"`
Unit string `protobuf:"bytes,4,opt,name=unit,proto3" json:"unit,omitempty"`
Shapes []string `protobuf:"bytes,5,rep,name=shapes,proto3" json:"shapes,omitempty"`
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
Source *MetricSourceRef `protobuf:"bytes,7,opt,name=source,proto3" json:"source,omitempty"`
// Provider opt-in for cross-bound range reuse. Valid only with "range".
// Every ok result is a pure point series on start_time + n*step. For the
// same context/step, point value and presence are independent of bounds.
// value and observed_at are unset; window is zero. Identity, source and
// dimensions remain compatible. Non-ok/incomplete results prove no cross-bound
// coverage. This implies neither current equivalence nor immutable history.
RangeReuse bool `protobuf:"varint,8,opt,name=range_reuse,json=rangeReuse,proto3" json:"range_reuse,omitempty"`
// Separate provider opt-in for promoting the latest range point to current.
// Requires both shapes and equivalent value/unit/identity/source/dimensions/
// sampling-window semantics independent of range bounds and step.
// observed_at is the actual source time associated with the last point;
// window is its sampling window, not metadata for the requested range.
// Hosts require complete ok data, a numeric terminal point, positive known
// max_sample_age, fresh nonfuture source/evaluation times and unexpired cache.
// A terminal gap never selects an older point; point time never replaces
// observed_at. Absent/false never permits range-to-current reuse.
RangeToCurrent bool `protobuf:"varint,9,opt,name=range_to_current,json=rangeToCurrent,proto3" json:"range_to_current,omitempty"`
// contains filtered or unexported fields
}
func (*FiniteMetricDescriptor) Descriptor
deprecated
added in
v0.16.0
func (*FiniteMetricDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use FiniteMetricDescriptor.ProtoReflect.Descriptor instead.
func (*FiniteMetricDescriptor) GetDescription ¶ added in v0.16.0
func (x *FiniteMetricDescriptor) GetDescription() string
func (*FiniteMetricDescriptor) GetId ¶ added in v0.16.0
func (x *FiniteMetricDescriptor) GetId() string
func (*FiniteMetricDescriptor) GetName ¶ added in v0.16.0
func (x *FiniteMetricDescriptor) GetName() string
func (*FiniteMetricDescriptor) GetRangeReuse ¶ added in v0.19.0
func (x *FiniteMetricDescriptor) GetRangeReuse() bool
func (*FiniteMetricDescriptor) GetRangeToCurrent ¶ added in v0.19.0
func (x *FiniteMetricDescriptor) GetRangeToCurrent() bool
func (*FiniteMetricDescriptor) GetResourceKey ¶ added in v0.16.0
func (x *FiniteMetricDescriptor) GetResourceKey() string
func (*FiniteMetricDescriptor) GetShapes ¶ added in v0.16.0
func (x *FiniteMetricDescriptor) GetShapes() []string
func (*FiniteMetricDescriptor) GetSource ¶ added in v0.16.0
func (x *FiniteMetricDescriptor) GetSource() *MetricSourceRef
func (*FiniteMetricDescriptor) GetUnit ¶ added in v0.16.0
func (x *FiniteMetricDescriptor) GetUnit() string
func (*FiniteMetricDescriptor) ProtoMessage ¶ added in v0.16.0
func (*FiniteMetricDescriptor) ProtoMessage()
func (*FiniteMetricDescriptor) ProtoReflect ¶ added in v0.16.0
func (x *FiniteMetricDescriptor) ProtoReflect() protoreflect.Message
func (*FiniteMetricDescriptor) Reset ¶ added in v0.16.0
func (x *FiniteMetricDescriptor) Reset()
func (*FiniteMetricDescriptor) String ¶ added in v0.16.0
func (x *FiniteMetricDescriptor) String() string
type GetSupportedMetricResourcesResponse ¶
type GetSupportedMetricResourcesResponse struct {
Provider *MetricProviderInfo `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
Handlers []*MetricHandler `protobuf:"bytes,2,rep,name=handlers,proto3" json:"handlers,omitempty"`
// contains filtered or unexported fields
}
func (*GetSupportedMetricResourcesResponse) Descriptor
deprecated
func (*GetSupportedMetricResourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSupportedMetricResourcesResponse.ProtoReflect.Descriptor instead.
func (*GetSupportedMetricResourcesResponse) GetHandlers ¶
func (x *GetSupportedMetricResourcesResponse) GetHandlers() []*MetricHandler
func (*GetSupportedMetricResourcesResponse) GetProvider ¶
func (x *GetSupportedMetricResourcesResponse) GetProvider() *MetricProviderInfo
func (*GetSupportedMetricResourcesResponse) ProtoMessage ¶
func (*GetSupportedMetricResourcesResponse) ProtoMessage()
func (*GetSupportedMetricResourcesResponse) ProtoReflect ¶
func (x *GetSupportedMetricResourcesResponse) ProtoReflect() protoreflect.Message
func (*GetSupportedMetricResourcesResponse) Reset ¶
func (x *GetSupportedMetricResourcesResponse) Reset()
func (*GetSupportedMetricResourcesResponse) String ¶
func (x *GetSupportedMetricResourcesResponse) String() string
type MetricColorRange ¶
type MetricColorRange struct {
Min float64 `protobuf:"fixed64,1,opt,name=min,proto3" json:"min,omitempty"`
Max float64 `protobuf:"fixed64,2,opt,name=max,proto3" json:"max,omitempty"`
Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"`
// contains filtered or unexported fields
}
func (*MetricColorRange) Descriptor
deprecated
func (*MetricColorRange) Descriptor() ([]byte, []int)
Deprecated: Use MetricColorRange.ProtoReflect.Descriptor instead.
func (*MetricColorRange) GetColor ¶
func (x *MetricColorRange) GetColor() string
func (*MetricColorRange) GetMax ¶
func (x *MetricColorRange) GetMax() float64
func (*MetricColorRange) GetMin ¶
func (x *MetricColorRange) GetMin() float64
func (*MetricColorRange) ProtoMessage ¶
func (*MetricColorRange) ProtoMessage()
func (*MetricColorRange) ProtoReflect ¶
func (x *MetricColorRange) ProtoReflect() protoreflect.Message
func (*MetricColorRange) Reset ¶
func (x *MetricColorRange) Reset()
func (*MetricColorRange) String ¶
func (x *MetricColorRange) String() string
type MetricDefinition ¶ added in v0.16.0
type MetricDefinition struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
ResourceKeys []string `protobuf:"bytes,3,rep,name=resource_keys,json=resourceKeys,proto3" json:"resource_keys,omitempty"`
Unit string `protobuf:"bytes,4,opt,name=unit,proto3" json:"unit,omitempty"`
Semantics string `protobuf:"bytes,5,opt,name=semantics,proto3" json:"semantics,omitempty"`
Dimensions []string `protobuf:"bytes,6,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
SupportedShapes []string `protobuf:"bytes,7,rep,name=supported_shapes,json=supportedShapes,proto3" json:"supported_shapes,omitempty"`
QueryLanguage string `protobuf:"bytes,8,opt,name=query_language,json=queryLanguage,proto3" json:"query_language,omitempty"`
Query string `protobuf:"bytes,9,opt,name=query,proto3" json:"query,omitempty"`
FieldBindings []*MetricFieldBinding `protobuf:"bytes,10,rep,name=field_bindings,json=fieldBindings,proto3" json:"field_bindings,omitempty"`
IdentityLabels []string `protobuf:"bytes,11,rep,name=identity_labels,json=identityLabels,proto3" json:"identity_labels,omitempty"`
Reducer string `protobuf:"bytes,12,opt,name=reducer,proto3" json:"reducer,omitempty"`
BatchStrategy string `protobuf:"bytes,13,opt,name=batch_strategy,json=batchStrategy,proto3" json:"batch_strategy,omitempty"`
Revision string `protobuf:"bytes,14,opt,name=revision,proto3" json:"revision,omitempty"`
Native bool `protobuf:"varint,15,opt,name=native,proto3" json:"native,omitempty"`
// Owner declaration that this authored definition meets the guarantee on
// FiniteMetricDescriptor.range_reuse. It is not an opt-in: the provider's
// descriptor decides, and hosts clear it unless the effective definition is
// exactly the owner-authored one. Valid only when supported_shapes include "range".
RangeReuse bool `protobuf:"varint,16,opt,name=range_reuse,json=rangeReuse,proto3" json:"range_reuse,omitempty"`
// contains filtered or unexported fields
}
func (*MetricDefinition) Descriptor
deprecated
added in
v0.16.0
func (*MetricDefinition) Descriptor() ([]byte, []int)
Deprecated: Use MetricDefinition.ProtoReflect.Descriptor instead.
func (*MetricDefinition) GetBatchStrategy ¶ added in v0.16.0
func (x *MetricDefinition) GetBatchStrategy() string
func (*MetricDefinition) GetDimensions ¶ added in v0.16.0
func (x *MetricDefinition) GetDimensions() []string
func (*MetricDefinition) GetFieldBindings ¶ added in v0.16.0
func (x *MetricDefinition) GetFieldBindings() []*MetricFieldBinding
func (*MetricDefinition) GetId ¶ added in v0.16.0
func (x *MetricDefinition) GetId() string
func (*MetricDefinition) GetIdentityLabels ¶ added in v0.16.0
func (x *MetricDefinition) GetIdentityLabels() []string
func (*MetricDefinition) GetName ¶ added in v0.16.0
func (x *MetricDefinition) GetName() string
func (*MetricDefinition) GetNative ¶ added in v0.16.0
func (x *MetricDefinition) GetNative() bool
func (*MetricDefinition) GetQuery ¶ added in v0.16.0
func (x *MetricDefinition) GetQuery() string
func (*MetricDefinition) GetQueryLanguage ¶ added in v0.16.0
func (x *MetricDefinition) GetQueryLanguage() string
func (*MetricDefinition) GetRangeReuse ¶ added in v0.19.0
func (x *MetricDefinition) GetRangeReuse() bool
func (*MetricDefinition) GetReducer ¶ added in v0.16.0
func (x *MetricDefinition) GetReducer() string
func (*MetricDefinition) GetResourceKeys ¶ added in v0.16.0
func (x *MetricDefinition) GetResourceKeys() []string
func (*MetricDefinition) GetRevision ¶ added in v0.16.0
func (x *MetricDefinition) GetRevision() string
func (*MetricDefinition) GetSemantics ¶ added in v0.16.0
func (x *MetricDefinition) GetSemantics() string
func (*MetricDefinition) GetSupportedShapes ¶ added in v0.16.0
func (x *MetricDefinition) GetSupportedShapes() []string
func (*MetricDefinition) GetUnit ¶ added in v0.16.0
func (x *MetricDefinition) GetUnit() string
func (*MetricDefinition) ProtoMessage ¶ added in v0.16.0
func (*MetricDefinition) ProtoMessage()
func (*MetricDefinition) ProtoReflect ¶ added in v0.16.0
func (x *MetricDefinition) ProtoReflect() protoreflect.Message
func (*MetricDefinition) Reset ¶ added in v0.16.0
func (x *MetricDefinition) Reset()
func (*MetricDefinition) String ¶ added in v0.16.0
func (x *MetricDefinition) String() string
type MetricDescriptor ¶
type MetricDescriptor struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Unit MetricUnit `protobuf:"varint,3,opt,name=unit,proto3,enum=omniview.sdk.metric.v1.MetricUnit" json:"unit,omitempty"`
Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon,omitempty"`
ColorRanges []*MetricColorRange `protobuf:"bytes,5,rep,name=color_ranges,json=colorRanges,proto3" json:"color_ranges,omitempty"`
FormatString string `protobuf:"bytes,6,opt,name=format_string,json=formatString,proto3" json:"format_string,omitempty"`
SupportedShapes []MetricShape `` /* 154-byte string literal not displayed */
ChartGroup string `protobuf:"bytes,8,opt,name=chart_group,json=chartGroup,proto3" json:"chart_group,omitempty"`
// contains filtered or unexported fields
}
func (*MetricDescriptor) Descriptor
deprecated
func (*MetricDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use MetricDescriptor.ProtoReflect.Descriptor instead.
func (*MetricDescriptor) GetChartGroup ¶
func (x *MetricDescriptor) GetChartGroup() string
func (*MetricDescriptor) GetColorRanges ¶
func (x *MetricDescriptor) GetColorRanges() []*MetricColorRange
func (*MetricDescriptor) GetFormatString ¶
func (x *MetricDescriptor) GetFormatString() string
func (*MetricDescriptor) GetIcon ¶
func (x *MetricDescriptor) GetIcon() string
func (*MetricDescriptor) GetId ¶
func (x *MetricDescriptor) GetId() string
func (*MetricDescriptor) GetName ¶
func (x *MetricDescriptor) GetName() string
func (*MetricDescriptor) GetSupportedShapes ¶
func (x *MetricDescriptor) GetSupportedShapes() []MetricShape
func (*MetricDescriptor) GetUnit ¶
func (x *MetricDescriptor) GetUnit() MetricUnit
func (*MetricDescriptor) ProtoMessage ¶
func (*MetricDescriptor) ProtoMessage()
func (*MetricDescriptor) ProtoReflect ¶
func (x *MetricDescriptor) ProtoReflect() protoreflect.Message
func (*MetricDescriptor) Reset ¶
func (x *MetricDescriptor) Reset()
func (*MetricDescriptor) String ¶
func (x *MetricDescriptor) String() string
type MetricFieldBinding ¶ added in v0.16.0
type MetricFieldBinding struct {
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"`
Transform string `protobuf:"bytes,5,opt,name=transform,proto3" json:"transform,omitempty"`
ResourcePath string `protobuf:"bytes,6,opt,name=resource_path,json=resourcePath,proto3" json:"resource_path,omitempty"`
// contains filtered or unexported fields
}
Only the host may derive these fields from admitted owner observations.
func (*MetricFieldBinding) Descriptor
deprecated
added in
v0.16.0
func (*MetricFieldBinding) Descriptor() ([]byte, []int)
Deprecated: Use MetricFieldBinding.ProtoReflect.Descriptor instead.
func (*MetricFieldBinding) GetField ¶ added in v0.16.0
func (x *MetricFieldBinding) GetField() string
func (*MetricFieldBinding) GetLabel ¶ added in v0.16.0
func (x *MetricFieldBinding) GetLabel() string
func (*MetricFieldBinding) GetRequired ¶ added in v0.16.0
func (x *MetricFieldBinding) GetRequired() bool
func (*MetricFieldBinding) GetResourcePath ¶ added in v0.16.0
func (x *MetricFieldBinding) GetResourcePath() string
func (*MetricFieldBinding) GetSource ¶ added in v0.16.0
func (x *MetricFieldBinding) GetSource() string
func (*MetricFieldBinding) GetTransform ¶ added in v0.16.0
func (x *MetricFieldBinding) GetTransform() string
func (*MetricFieldBinding) ProtoMessage ¶ added in v0.16.0
func (*MetricFieldBinding) ProtoMessage()
func (*MetricFieldBinding) ProtoReflect ¶ added in v0.16.0
func (x *MetricFieldBinding) ProtoReflect() protoreflect.Message
func (*MetricFieldBinding) Reset ¶ added in v0.16.0
func (x *MetricFieldBinding) Reset()
func (*MetricFieldBinding) String ¶ added in v0.16.0
func (x *MetricFieldBinding) String() string
type MetricHandler ¶
type MetricHandler struct {
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
Metrics []*MetricDescriptor `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
// contains filtered or unexported fields
}
func (*MetricHandler) Descriptor
deprecated
func (*MetricHandler) Descriptor() ([]byte, []int)
Deprecated: Use MetricHandler.ProtoReflect.Descriptor instead.
func (*MetricHandler) GetMetrics ¶
func (x *MetricHandler) GetMetrics() []*MetricDescriptor
func (*MetricHandler) GetResource ¶
func (x *MetricHandler) GetResource() string
func (*MetricHandler) ProtoMessage ¶
func (*MetricHandler) ProtoMessage()
func (*MetricHandler) ProtoReflect ¶
func (x *MetricHandler) ProtoReflect() protoreflect.Message
func (*MetricHandler) Reset ¶
func (x *MetricHandler) Reset()
func (*MetricHandler) String ¶
func (x *MetricHandler) String() string
type MetricOperationError ¶ added in v0.9.0
type MetricOperationError struct {
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
Suggestions []string `protobuf:"bytes,4,rep,name=suggestions,proto3" json:"suggestions,omitempty"`
// contains filtered or unexported fields
}
func (*MetricOperationError) Descriptor
deprecated
added in
v0.9.0
func (*MetricOperationError) Descriptor() ([]byte, []int)
Deprecated: Use MetricOperationError.ProtoReflect.Descriptor instead.
func (*MetricOperationError) GetCode ¶ added in v0.9.0
func (x *MetricOperationError) GetCode() string
func (*MetricOperationError) GetMessage ¶ added in v0.9.0
func (x *MetricOperationError) GetMessage() string
func (*MetricOperationError) GetSuggestions ¶ added in v0.9.0
func (x *MetricOperationError) GetSuggestions() []string
func (*MetricOperationError) GetTitle ¶ added in v0.9.0
func (x *MetricOperationError) GetTitle() string
func (*MetricOperationError) ProtoMessage ¶ added in v0.9.0
func (*MetricOperationError) ProtoMessage()
func (*MetricOperationError) ProtoReflect ¶ added in v0.9.0
func (x *MetricOperationError) ProtoReflect() protoreflect.Message
func (*MetricOperationError) Reset ¶ added in v0.9.0
func (x *MetricOperationError) Reset()
func (*MetricOperationError) String ¶ added in v0.9.0
func (x *MetricOperationError) String() string
type MetricOwnerCatalog ¶ added in v0.16.0
type MetricOwnerCatalog struct {
Definitions []*MetricDefinition `protobuf:"bytes,1,rep,name=definitions,proto3" json:"definitions,omitempty"`
ScopeFields []*MetricScopeField `protobuf:"bytes,2,rep,name=scope_fields,json=scopeFields,proto3" json:"scope_fields,omitempty"`
// contains filtered or unexported fields
}
func (*MetricOwnerCatalog) Descriptor
deprecated
added in
v0.16.0
func (*MetricOwnerCatalog) Descriptor() ([]byte, []int)
Deprecated: Use MetricOwnerCatalog.ProtoReflect.Descriptor instead.
func (*MetricOwnerCatalog) GetDefinitions ¶ added in v0.16.0
func (x *MetricOwnerCatalog) GetDefinitions() []*MetricDefinition
func (*MetricOwnerCatalog) GetScopeFields ¶ added in v0.16.0
func (x *MetricOwnerCatalog) GetScopeFields() []*MetricScopeField
func (*MetricOwnerCatalog) ProtoMessage ¶ added in v0.16.0
func (*MetricOwnerCatalog) ProtoMessage()
func (*MetricOwnerCatalog) ProtoReflect ¶ added in v0.16.0
func (x *MetricOwnerCatalog) ProtoReflect() protoreflect.Message
func (*MetricOwnerCatalog) Reset ¶ added in v0.16.0
func (x *MetricOwnerCatalog) Reset()
func (*MetricOwnerCatalog) String ¶ added in v0.16.0
func (x *MetricOwnerCatalog) String() string
type MetricPluginClient ¶
type MetricPluginClient interface {
GetSupportedResources(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetSupportedMetricResourcesResponse, error)
Query(ctx context.Context, in *QueryMetricsRequest, opts ...grpc.CallOption) (*QueryMetricsResponse, error)
StreamMetrics(ctx context.Context, opts ...grpc.CallOption) (MetricPlugin_StreamMetricsClient, error)
QueryResource(ctx context.Context, in *QueryMetricsRequest, opts ...grpc.CallOption) (*ResourceQueryMetricsResponse, error)
StreamResourceMetrics(ctx context.Context, opts ...grpc.CallOption) (MetricPlugin_StreamResourceMetricsClient, error)
GetFiniteCapabilities(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FiniteMetricCapabilities, error)
GetResourceMetricsCatalog(ctx context.Context, in *ResourceMetricsCatalogRequest, opts ...grpc.CallOption) (*ResourceMetricsCatalog, error)
QueryResources(ctx context.Context, in *ResourceMetricsQuery, opts ...grpc.CallOption) (*ResourceMetricsResponse, error)
GetMetricOwnerCatalog(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*MetricOwnerCatalog, error)
}
MetricPluginClient is the client API for MetricPlugin 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 NewMetricPluginClient ¶
func NewMetricPluginClient(cc grpc.ClientConnInterface) MetricPluginClient
type MetricPluginServer ¶
type MetricPluginServer interface {
GetSupportedResources(context.Context, *emptypb.Empty) (*GetSupportedMetricResourcesResponse, error)
Query(context.Context, *QueryMetricsRequest) (*QueryMetricsResponse, error)
StreamMetrics(MetricPlugin_StreamMetricsServer) error
QueryResource(context.Context, *QueryMetricsRequest) (*ResourceQueryMetricsResponse, error)
StreamResourceMetrics(MetricPlugin_StreamResourceMetricsServer) error
GetFiniteCapabilities(context.Context, *emptypb.Empty) (*FiniteMetricCapabilities, error)
GetResourceMetricsCatalog(context.Context, *ResourceMetricsCatalogRequest) (*ResourceMetricsCatalog, error)
QueryResources(context.Context, *ResourceMetricsQuery) (*ResourceMetricsResponse, error)
GetMetricOwnerCatalog(context.Context, *emptypb.Empty) (*MetricOwnerCatalog, error)
}
MetricPluginServer is the server API for MetricPlugin service. All implementations should embed UnimplementedMetricPluginServer for forward compatibility
type MetricPlugin_StreamMetricsClient ¶
type MetricPlugin_StreamMetricsClient interface {
Send(*MetricStreamInput) error
Recv() (*MetricStreamOutput, error)
grpc.ClientStream
}
type MetricPlugin_StreamMetricsServer ¶
type MetricPlugin_StreamMetricsServer interface {
Send(*MetricStreamOutput) error
Recv() (*MetricStreamInput, error)
grpc.ServerStream
}
type MetricPlugin_StreamResourceMetricsClient ¶ added in v0.9.0
type MetricPlugin_StreamResourceMetricsClient interface {
Send(*MetricStreamInput) error
Recv() (*ResourceMetricStreamOutput, error)
grpc.ClientStream
}
type MetricPlugin_StreamResourceMetricsServer ¶ added in v0.9.0
type MetricPlugin_StreamResourceMetricsServer interface {
Send(*ResourceMetricStreamOutput) error
Recv() (*MetricStreamInput, error)
grpc.ServerStream
}
type MetricProviderInfo ¶
type MetricProviderInfo struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Icon string `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
func (*MetricProviderInfo) Descriptor
deprecated
func (*MetricProviderInfo) Descriptor() ([]byte, []int)
Deprecated: Use MetricProviderInfo.ProtoReflect.Descriptor instead.
func (*MetricProviderInfo) GetDescription ¶
func (x *MetricProviderInfo) GetDescription() string
func (*MetricProviderInfo) GetIcon ¶
func (x *MetricProviderInfo) GetIcon() string
func (*MetricProviderInfo) GetId ¶
func (x *MetricProviderInfo) GetId() string
func (*MetricProviderInfo) GetName ¶
func (x *MetricProviderInfo) GetName() string
func (*MetricProviderInfo) ProtoMessage ¶
func (*MetricProviderInfo) ProtoMessage()
func (*MetricProviderInfo) ProtoReflect ¶
func (x *MetricProviderInfo) ProtoReflect() protoreflect.Message
func (*MetricProviderInfo) Reset ¶
func (x *MetricProviderInfo) Reset()
func (*MetricProviderInfo) String ¶
func (x *MetricProviderInfo) String() string
type MetricQueryContext ¶ added in v0.16.0
type MetricQueryContext struct {
Definitions []*MetricDefinition `protobuf:"bytes,1,rep,name=definitions,proto3" json:"definitions,omitempty"`
PublicScope map[string]string `` /* 168-byte string literal not displayed */
MappingRevision string `protobuf:"bytes,3,opt,name=mapping_revision,json=mappingRevision,proto3" json:"mapping_revision,omitempty"`
ProjectionRevision string `protobuf:"bytes,4,opt,name=projection_revision,json=projectionRevision,proto3" json:"projection_revision,omitempty"`
// contains filtered or unexported fields
}
func (*MetricQueryContext) Descriptor
deprecated
added in
v0.16.0
func (*MetricQueryContext) Descriptor() ([]byte, []int)
Deprecated: Use MetricQueryContext.ProtoReflect.Descriptor instead.
func (*MetricQueryContext) GetDefinitions ¶ added in v0.16.0
func (x *MetricQueryContext) GetDefinitions() []*MetricDefinition
func (*MetricQueryContext) GetMappingRevision ¶ added in v0.16.0
func (x *MetricQueryContext) GetMappingRevision() string
func (*MetricQueryContext) GetProjectionRevision ¶ added in v0.16.0
func (x *MetricQueryContext) GetProjectionRevision() string
func (*MetricQueryContext) GetPublicScope ¶ added in v0.16.0
func (x *MetricQueryContext) GetPublicScope() map[string]string
func (*MetricQueryContext) ProtoMessage ¶ added in v0.16.0
func (*MetricQueryContext) ProtoMessage()
func (*MetricQueryContext) ProtoReflect ¶ added in v0.16.0
func (x *MetricQueryContext) ProtoReflect() protoreflect.Message
func (*MetricQueryContext) Reset ¶ added in v0.16.0
func (x *MetricQueryContext) Reset()
func (*MetricQueryContext) String ¶ added in v0.16.0
func (x *MetricQueryContext) String() string
type MetricResult ¶
type MetricResult struct {
// Types that are valid to be assigned to Result:
//
// *MetricResult_TimeSeries
// *MetricResult_CurrentValue
// *MetricResult_AggregateValue
Result isMetricResult_Result `protobuf_oneof:"result"`
// contains filtered or unexported fields
}
func (*MetricResult) Descriptor
deprecated
func (*MetricResult) Descriptor() ([]byte, []int)
Deprecated: Use MetricResult.ProtoReflect.Descriptor instead.
func (*MetricResult) GetAggregateValue ¶
func (x *MetricResult) GetAggregateValue() *AggregateValue
func (*MetricResult) GetCurrentValue ¶
func (x *MetricResult) GetCurrentValue() *CurrentValue
func (*MetricResult) GetResult ¶
func (x *MetricResult) GetResult() isMetricResult_Result
func (*MetricResult) GetTimeSeries ¶
func (x *MetricResult) GetTimeSeries() *TimeSeries
func (*MetricResult) ProtoMessage ¶
func (*MetricResult) ProtoMessage()
func (*MetricResult) ProtoReflect ¶
func (x *MetricResult) ProtoReflect() protoreflect.Message
func (*MetricResult) Reset ¶
func (x *MetricResult) Reset()
func (*MetricResult) String ¶
func (x *MetricResult) String() string
type MetricResult_AggregateValue ¶
type MetricResult_AggregateValue struct {
AggregateValue *AggregateValue `protobuf:"bytes,3,opt,name=aggregate_value,json=aggregateValue,proto3,oneof"`
}
type MetricResult_CurrentValue ¶
type MetricResult_CurrentValue struct {
CurrentValue *CurrentValue `protobuf:"bytes,2,opt,name=current_value,json=currentValue,proto3,oneof"`
}
type MetricResult_TimeSeries ¶
type MetricResult_TimeSeries struct {
TimeSeries *TimeSeries `protobuf:"bytes,1,opt,name=time_series,json=timeSeries,proto3,oneof"`
}
type MetricScopeField ¶ added in v0.16.0
type MetricScopeField struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}
func (*MetricScopeField) Descriptor
deprecated
added in
v0.16.0
func (*MetricScopeField) Descriptor() ([]byte, []int)
Deprecated: Use MetricScopeField.ProtoReflect.Descriptor instead.
func (*MetricScopeField) GetDescription ¶ added in v0.16.0
func (x *MetricScopeField) GetDescription() string
func (*MetricScopeField) GetKey ¶ added in v0.16.0
func (x *MetricScopeField) GetKey() string
func (*MetricScopeField) GetName ¶ added in v0.16.0
func (x *MetricScopeField) GetName() string
func (*MetricScopeField) ProtoMessage ¶ added in v0.16.0
func (*MetricScopeField) ProtoMessage()
func (*MetricScopeField) ProtoReflect ¶ added in v0.16.0
func (x *MetricScopeField) ProtoReflect() protoreflect.Message
func (*MetricScopeField) Reset ¶ added in v0.16.0
func (x *MetricScopeField) Reset()
func (*MetricScopeField) String ¶ added in v0.16.0
func (x *MetricScopeField) String() string
type MetricShape ¶
type MetricShape int32
const ( MetricShape_METRIC_SHAPE_CURRENT MetricShape = 0 MetricShape_METRIC_SHAPE_TIMESERIES MetricShape = 1 MetricShape_METRIC_SHAPE_AGGREGATE MetricShape = 2 )
func (MetricShape) Descriptor ¶
func (MetricShape) Descriptor() protoreflect.EnumDescriptor
func (MetricShape) Enum ¶
func (x MetricShape) Enum() *MetricShape
func (MetricShape) EnumDescriptor
deprecated
func (MetricShape) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetricShape.Descriptor instead.
func (MetricShape) Number ¶
func (x MetricShape) Number() protoreflect.EnumNumber
func (MetricShape) String ¶
func (x MetricShape) String() string
func (MetricShape) Type ¶
func (MetricShape) Type() protoreflect.EnumType
type MetricSourceRef ¶ added in v0.16.0
type MetricSourceRef struct {
PluginId string `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
DatasourceUid string `protobuf:"bytes,3,opt,name=datasource_uid,json=datasourceUid,proto3" json:"datasource_uid,omitempty"`
DatasourceKind string `protobuf:"bytes,4,opt,name=datasource_kind,json=datasourceKind,proto3" json:"datasource_kind,omitempty"`
Native bool `protobuf:"varint,5,opt,name=native,proto3" json:"native,omitempty"`
// contains filtered or unexported fields
}
Finite execution is independent of the legacy query/stream protocol.
func (*MetricSourceRef) Descriptor
deprecated
added in
v0.16.0
func (*MetricSourceRef) Descriptor() ([]byte, []int)
Deprecated: Use MetricSourceRef.ProtoReflect.Descriptor instead.
func (*MetricSourceRef) GetConnectionId ¶ added in v0.16.0
func (x *MetricSourceRef) GetConnectionId() string
func (*MetricSourceRef) GetDatasourceKind ¶ added in v0.16.0
func (x *MetricSourceRef) GetDatasourceKind() string
func (*MetricSourceRef) GetDatasourceUid ¶ added in v0.16.0
func (x *MetricSourceRef) GetDatasourceUid() string
func (*MetricSourceRef) GetNative ¶ added in v0.16.0
func (x *MetricSourceRef) GetNative() bool
func (*MetricSourceRef) GetPluginId ¶ added in v0.16.0
func (x *MetricSourceRef) GetPluginId() string
func (*MetricSourceRef) ProtoMessage ¶ added in v0.16.0
func (*MetricSourceRef) ProtoMessage()
func (*MetricSourceRef) ProtoReflect ¶ added in v0.16.0
func (x *MetricSourceRef) ProtoReflect() protoreflect.Message
func (*MetricSourceRef) Reset ¶ added in v0.16.0
func (x *MetricSourceRef) Reset()
func (*MetricSourceRef) String ¶ added in v0.16.0
func (x *MetricSourceRef) String() string
type MetricStreamCommand ¶
type MetricStreamCommand int32
const ( MetricStreamCommand_METRIC_STREAM_COMMAND_SUBSCRIBE MetricStreamCommand = 0 MetricStreamCommand_METRIC_STREAM_COMMAND_UNSUBSCRIBE MetricStreamCommand = 1 MetricStreamCommand_METRIC_STREAM_COMMAND_CLOSE MetricStreamCommand = 2 )
func (MetricStreamCommand) Descriptor ¶
func (MetricStreamCommand) Descriptor() protoreflect.EnumDescriptor
func (MetricStreamCommand) Enum ¶
func (x MetricStreamCommand) Enum() *MetricStreamCommand
func (MetricStreamCommand) EnumDescriptor
deprecated
func (MetricStreamCommand) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetricStreamCommand.Descriptor instead.
func (MetricStreamCommand) Number ¶
func (x MetricStreamCommand) Number() protoreflect.EnumNumber
func (MetricStreamCommand) String ¶
func (x MetricStreamCommand) String() string
func (MetricStreamCommand) Type ¶
func (MetricStreamCommand) Type() protoreflect.EnumType
type MetricStreamInput ¶
type MetricStreamInput struct {
SubscriptionId string `protobuf:"bytes,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
Command MetricStreamCommand `protobuf:"varint,2,opt,name=command,proto3,enum=omniview.sdk.metric.v1.MetricStreamCommand" json:"command,omitempty"`
ResourceKey string `protobuf:"bytes,3,opt,name=resource_key,json=resourceKey,proto3" json:"resource_key,omitempty"`
ResourceId string `protobuf:"bytes,4,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
ResourceNamespace string `protobuf:"bytes,5,opt,name=resource_namespace,json=resourceNamespace,proto3" json:"resource_namespace,omitempty"`
ResourceData *v2.Value `protobuf:"bytes,9,opt,name=resource_data,json=resourceData,proto3" json:"resource_data,omitempty"`
ResourceWireVersion uint32 `protobuf:"varint,10,opt,name=resource_wire_version,json=resourceWireVersion,proto3" json:"resource_wire_version,omitempty"`
Reference *v2.ResourceReference `protobuf:"bytes,11,opt,name=reference,proto3" json:"reference,omitempty"`
Route *v2.AccessRoute `protobuf:"bytes,12,opt,name=route,proto3" json:"route,omitempty"`
ResourceOpen bool `protobuf:"varint,13,opt,name=resource_open,json=resourceOpen,proto3" json:"resource_open,omitempty"`
Params map[string]string `` /* 140-byte string literal not displayed */
CatalogRevision string `protobuf:"bytes,15,opt,name=catalog_revision,json=catalogRevision,proto3" json:"catalog_revision,omitempty"`
MetricIds []string `protobuf:"bytes,7,rep,name=metric_ids,json=metricIds,proto3" json:"metric_ids,omitempty"`
Interval *durationpb.Duration `protobuf:"bytes,8,opt,name=interval,proto3" json:"interval,omitempty"`
// contains filtered or unexported fields
}
func (*MetricStreamInput) Descriptor
deprecated
func (*MetricStreamInput) Descriptor() ([]byte, []int)
Deprecated: Use MetricStreamInput.ProtoReflect.Descriptor instead.
func (*MetricStreamInput) GetCatalogRevision ¶ added in v0.9.0
func (x *MetricStreamInput) GetCatalogRevision() string
func (*MetricStreamInput) GetCommand ¶
func (x *MetricStreamInput) GetCommand() MetricStreamCommand
func (*MetricStreamInput) GetInterval ¶
func (x *MetricStreamInput) GetInterval() *durationpb.Duration
func (*MetricStreamInput) GetMetricIds ¶
func (x *MetricStreamInput) GetMetricIds() []string
func (*MetricStreamInput) GetParams ¶ added in v0.9.0
func (x *MetricStreamInput) GetParams() map[string]string
func (*MetricStreamInput) GetReference ¶ added in v0.9.0
func (x *MetricStreamInput) GetReference() *v2.ResourceReference
func (*MetricStreamInput) GetResourceData ¶
func (x *MetricStreamInput) GetResourceData() *v2.Value
func (*MetricStreamInput) GetResourceId ¶
func (x *MetricStreamInput) GetResourceId() string
func (*MetricStreamInput) GetResourceKey ¶
func (x *MetricStreamInput) GetResourceKey() string
func (*MetricStreamInput) GetResourceNamespace ¶
func (x *MetricStreamInput) GetResourceNamespace() string
func (*MetricStreamInput) GetResourceOpen ¶ added in v0.9.0
func (x *MetricStreamInput) GetResourceOpen() bool
func (*MetricStreamInput) GetResourceWireVersion ¶ added in v0.9.0
func (x *MetricStreamInput) GetResourceWireVersion() uint32
func (*MetricStreamInput) GetRoute ¶ added in v0.9.0
func (x *MetricStreamInput) GetRoute() *v2.AccessRoute
func (*MetricStreamInput) GetSubscriptionId ¶
func (x *MetricStreamInput) GetSubscriptionId() string
func (*MetricStreamInput) ProtoMessage ¶
func (*MetricStreamInput) ProtoMessage()
func (*MetricStreamInput) ProtoReflect ¶
func (x *MetricStreamInput) ProtoReflect() protoreflect.Message
func (*MetricStreamInput) Reset ¶
func (x *MetricStreamInput) Reset()
func (*MetricStreamInput) String ¶
func (x *MetricStreamInput) String() string
type MetricStreamOutput ¶
type MetricStreamOutput struct {
SubscriptionId string `protobuf:"bytes,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
Results []*MetricResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
OperationError *MetricOperationError `protobuf:"bytes,5,opt,name=operation_error,json=operationError,proto3" json:"operation_error,omitempty"`
// contains filtered or unexported fields
}
func (*MetricStreamOutput) Descriptor
deprecated
func (*MetricStreamOutput) Descriptor() ([]byte, []int)
Deprecated: Use MetricStreamOutput.ProtoReflect.Descriptor instead.
func (*MetricStreamOutput) GetError ¶
func (x *MetricStreamOutput) GetError() string
func (*MetricStreamOutput) GetOperationError ¶ added in v0.9.0
func (x *MetricStreamOutput) GetOperationError() *MetricOperationError
func (*MetricStreamOutput) GetResults ¶
func (x *MetricStreamOutput) GetResults() []*MetricResult
func (*MetricStreamOutput) GetSubscriptionId ¶
func (x *MetricStreamOutput) GetSubscriptionId() string
func (*MetricStreamOutput) GetTimestamp ¶
func (x *MetricStreamOutput) GetTimestamp() *timestamppb.Timestamp
func (*MetricStreamOutput) ProtoMessage ¶
func (*MetricStreamOutput) ProtoMessage()
func (*MetricStreamOutput) ProtoReflect ¶
func (x *MetricStreamOutput) ProtoReflect() protoreflect.Message
func (*MetricStreamOutput) Reset ¶
func (x *MetricStreamOutput) Reset()
func (*MetricStreamOutput) String ¶
func (x *MetricStreamOutput) String() string
type MetricUnit ¶
type MetricUnit int32
const ( MetricUnit_METRIC_UNIT_NONE MetricUnit = 0 MetricUnit_METRIC_UNIT_BYTES MetricUnit = 1 MetricUnit_METRIC_UNIT_KB MetricUnit = 2 MetricUnit_METRIC_UNIT_MB MetricUnit = 3 MetricUnit_METRIC_UNIT_GB MetricUnit = 4 MetricUnit_METRIC_UNIT_PERCENTAGE MetricUnit = 5 MetricUnit_METRIC_UNIT_MILLISECONDS MetricUnit = 6 MetricUnit_METRIC_UNIT_SECONDS MetricUnit = 7 MetricUnit_METRIC_UNIT_COUNT MetricUnit = 8 MetricUnit_METRIC_UNIT_OPS_PER_SEC MetricUnit = 9 MetricUnit_METRIC_UNIT_BYTES_PER_SEC MetricUnit = 10 MetricUnit_METRIC_UNIT_MILLICORES MetricUnit = 11 MetricUnit_METRIC_UNIT_CORES MetricUnit = 12 )
func (MetricUnit) Descriptor ¶
func (MetricUnit) Descriptor() protoreflect.EnumDescriptor
func (MetricUnit) Enum ¶
func (x MetricUnit) Enum() *MetricUnit
func (MetricUnit) EnumDescriptor
deprecated
func (MetricUnit) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetricUnit.Descriptor instead.
func (MetricUnit) Number ¶
func (x MetricUnit) Number() protoreflect.EnumNumber
func (MetricUnit) String ¶
func (x MetricUnit) String() string
func (MetricUnit) Type ¶
func (MetricUnit) Type() protoreflect.EnumType
type QueryMetricsRequest ¶
type QueryMetricsRequest struct {
ResourceKey string `protobuf:"bytes,1,opt,name=resource_key,json=resourceKey,proto3" json:"resource_key,omitempty"`
ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
ResourceNamespace string `protobuf:"bytes,3,opt,name=resource_namespace,json=resourceNamespace,proto3" json:"resource_namespace,omitempty"`
ResourceData *v2.Value `protobuf:"bytes,11,opt,name=resource_data,json=resourceData,proto3" json:"resource_data,omitempty"`
ResourceWireVersion uint32 `protobuf:"varint,12,opt,name=resource_wire_version,json=resourceWireVersion,proto3" json:"resource_wire_version,omitempty"`
Reference *v2.ResourceReference `protobuf:"bytes,13,opt,name=reference,proto3" json:"reference,omitempty"`
Route *v2.AccessRoute `protobuf:"bytes,14,opt,name=route,proto3" json:"route,omitempty"`
MetricIds []string `protobuf:"bytes,5,rep,name=metric_ids,json=metricIds,proto3" json:"metric_ids,omitempty"`
Shape MetricShape `protobuf:"varint,6,opt,name=shape,proto3,enum=omniview.sdk.metric.v1.MetricShape" json:"shape,omitempty"`
StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
Step *durationpb.Duration `protobuf:"bytes,9,opt,name=step,proto3" json:"step,omitempty"`
Params map[string]string `` /* 140-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*QueryMetricsRequest) Descriptor
deprecated
func (*QueryMetricsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryMetricsRequest.ProtoReflect.Descriptor instead.
func (*QueryMetricsRequest) GetEndTime ¶
func (x *QueryMetricsRequest) GetEndTime() *timestamppb.Timestamp
func (*QueryMetricsRequest) GetMetricIds ¶
func (x *QueryMetricsRequest) GetMetricIds() []string
func (*QueryMetricsRequest) GetParams ¶
func (x *QueryMetricsRequest) GetParams() map[string]string
func (*QueryMetricsRequest) GetReference ¶ added in v0.9.0
func (x *QueryMetricsRequest) GetReference() *v2.ResourceReference
func (*QueryMetricsRequest) GetResourceData ¶
func (x *QueryMetricsRequest) GetResourceData() *v2.Value
func (*QueryMetricsRequest) GetResourceId ¶
func (x *QueryMetricsRequest) GetResourceId() string
func (*QueryMetricsRequest) GetResourceKey ¶
func (x *QueryMetricsRequest) GetResourceKey() string
func (*QueryMetricsRequest) GetResourceNamespace ¶
func (x *QueryMetricsRequest) GetResourceNamespace() string
func (*QueryMetricsRequest) GetResourceWireVersion ¶ added in v0.9.0
func (x *QueryMetricsRequest) GetResourceWireVersion() uint32
func (*QueryMetricsRequest) GetRoute ¶ added in v0.9.0
func (x *QueryMetricsRequest) GetRoute() *v2.AccessRoute
func (*QueryMetricsRequest) GetShape ¶
func (x *QueryMetricsRequest) GetShape() MetricShape
func (*QueryMetricsRequest) GetStartTime ¶
func (x *QueryMetricsRequest) GetStartTime() *timestamppb.Timestamp
func (*QueryMetricsRequest) GetStep ¶
func (x *QueryMetricsRequest) GetStep() *durationpb.Duration
func (*QueryMetricsRequest) ProtoMessage ¶
func (*QueryMetricsRequest) ProtoMessage()
func (*QueryMetricsRequest) ProtoReflect ¶
func (x *QueryMetricsRequest) ProtoReflect() protoreflect.Message
func (*QueryMetricsRequest) Reset ¶
func (x *QueryMetricsRequest) Reset()
func (*QueryMetricsRequest) String ¶
func (x *QueryMetricsRequest) String() string
type QueryMetricsResponse ¶
type QueryMetricsResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Results []*MetricResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*QueryMetricsResponse) Descriptor
deprecated
func (*QueryMetricsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryMetricsResponse.ProtoReflect.Descriptor instead.
func (*QueryMetricsResponse) GetError ¶
func (x *QueryMetricsResponse) GetError() string
func (*QueryMetricsResponse) GetResults ¶
func (x *QueryMetricsResponse) GetResults() []*MetricResult
func (*QueryMetricsResponse) GetSuccess ¶
func (x *QueryMetricsResponse) GetSuccess() bool
func (*QueryMetricsResponse) ProtoMessage ¶
func (*QueryMetricsResponse) ProtoMessage()
func (*QueryMetricsResponse) ProtoReflect ¶
func (x *QueryMetricsResponse) ProtoReflect() protoreflect.Message
func (*QueryMetricsResponse) Reset ¶
func (x *QueryMetricsResponse) Reset()
func (*QueryMetricsResponse) String ¶
func (x *QueryMetricsResponse) String() string
type ResourceMetricPoint ¶ added in v0.16.0
type ResourceMetricPoint struct {
Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
Value *float64 `protobuf:"fixed64,2,opt,name=value,proto3,oneof" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*ResourceMetricPoint) Descriptor
deprecated
added in
v0.16.0
func (*ResourceMetricPoint) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetricPoint.ProtoReflect.Descriptor instead.
func (*ResourceMetricPoint) GetTime ¶ added in v0.16.0
func (x *ResourceMetricPoint) GetTime() *timestamppb.Timestamp
func (*ResourceMetricPoint) GetValue ¶ added in v0.16.0
func (x *ResourceMetricPoint) GetValue() float64
func (*ResourceMetricPoint) ProtoMessage ¶ added in v0.16.0
func (*ResourceMetricPoint) ProtoMessage()
func (*ResourceMetricPoint) ProtoReflect ¶ added in v0.16.0
func (x *ResourceMetricPoint) ProtoReflect() protoreflect.Message
func (*ResourceMetricPoint) Reset ¶ added in v0.16.0
func (x *ResourceMetricPoint) Reset()
func (*ResourceMetricPoint) String ¶ added in v0.16.0
func (x *ResourceMetricPoint) String() string
type ResourceMetricResult ¶ added in v0.16.0
type ResourceMetricResult struct {
ResourceToken string `protobuf:"bytes,1,opt,name=resource_token,json=resourceToken,proto3" json:"resource_token,omitempty"`
MetricId string `protobuf:"bytes,2,opt,name=metric_id,json=metricId,proto3" json:"metric_id,omitempty"`
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
Value *float64 `protobuf:"fixed64,4,opt,name=value,proto3,oneof" json:"value,omitempty"`
Points []*ResourceMetricPoint `protobuf:"bytes,5,rep,name=points,proto3" json:"points,omitempty"`
Dimensions map[string]string `` /* 147-byte string literal not displayed */
ObservedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=observed_at,json=observedAt,proto3" json:"observed_at,omitempty"`
Window *durationpb.Duration `protobuf:"bytes,8,opt,name=window,proto3" json:"window,omitempty"`
Message string `protobuf:"bytes,9,opt,name=message,proto3" json:"message,omitempty"`
IdentityScope string `protobuf:"bytes,10,opt,name=identity_scope,json=identityScope,proto3" json:"identity_scope,omitempty"`
Source *MetricSourceRef `protobuf:"bytes,11,opt,name=source,proto3" json:"source,omitempty"`
// contains filtered or unexported fields
}
func (*ResourceMetricResult) Descriptor
deprecated
added in
v0.16.0
func (*ResourceMetricResult) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetricResult.ProtoReflect.Descriptor instead.
func (*ResourceMetricResult) GetDimensions ¶ added in v0.16.0
func (x *ResourceMetricResult) GetDimensions() map[string]string
func (*ResourceMetricResult) GetIdentityScope ¶ added in v0.16.0
func (x *ResourceMetricResult) GetIdentityScope() string
func (*ResourceMetricResult) GetMessage ¶ added in v0.16.0
func (x *ResourceMetricResult) GetMessage() string
func (*ResourceMetricResult) GetMetricId ¶ added in v0.16.0
func (x *ResourceMetricResult) GetMetricId() string
func (*ResourceMetricResult) GetObservedAt ¶ added in v0.16.0
func (x *ResourceMetricResult) GetObservedAt() *timestamppb.Timestamp
func (*ResourceMetricResult) GetPoints ¶ added in v0.16.0
func (x *ResourceMetricResult) GetPoints() []*ResourceMetricPoint
func (*ResourceMetricResult) GetResourceToken ¶ added in v0.16.0
func (x *ResourceMetricResult) GetResourceToken() string
func (*ResourceMetricResult) GetSource ¶ added in v0.16.0
func (x *ResourceMetricResult) GetSource() *MetricSourceRef
func (*ResourceMetricResult) GetStatus ¶ added in v0.16.0
func (x *ResourceMetricResult) GetStatus() string
func (*ResourceMetricResult) GetValue ¶ added in v0.16.0
func (x *ResourceMetricResult) GetValue() float64
func (*ResourceMetricResult) GetWindow ¶ added in v0.16.0
func (x *ResourceMetricResult) GetWindow() *durationpb.Duration
func (*ResourceMetricResult) ProtoMessage ¶ added in v0.16.0
func (*ResourceMetricResult) ProtoMessage()
func (*ResourceMetricResult) ProtoReflect ¶ added in v0.16.0
func (x *ResourceMetricResult) ProtoReflect() protoreflect.Message
func (*ResourceMetricResult) Reset ¶ added in v0.16.0
func (x *ResourceMetricResult) Reset()
func (*ResourceMetricResult) String ¶ added in v0.16.0
func (x *ResourceMetricResult) String() string
type ResourceMetricStreamOutput ¶ added in v0.9.0
type ResourceMetricStreamOutput struct {
ResourceWireVersion uint32 `protobuf:"varint,1,opt,name=resource_wire_version,json=resourceWireVersion,proto3" json:"resource_wire_version,omitempty"`
// Types that are valid to be assigned to Payload:
//
// *ResourceMetricStreamOutput_Output
// *ResourceMetricStreamOutput_Ready
Payload isResourceMetricStreamOutput_Payload `protobuf_oneof:"payload"`
// contains filtered or unexported fields
}
func (*ResourceMetricStreamOutput) Descriptor
deprecated
added in
v0.9.0
func (*ResourceMetricStreamOutput) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetricStreamOutput.ProtoReflect.Descriptor instead.
func (*ResourceMetricStreamOutput) GetOutput ¶ added in v0.9.0
func (x *ResourceMetricStreamOutput) GetOutput() *MetricStreamOutput
func (*ResourceMetricStreamOutput) GetPayload ¶ added in v0.9.0
func (x *ResourceMetricStreamOutput) GetPayload() isResourceMetricStreamOutput_Payload
func (*ResourceMetricStreamOutput) GetReady ¶ added in v0.9.0
func (x *ResourceMetricStreamOutput) GetReady() bool
func (*ResourceMetricStreamOutput) GetResourceWireVersion ¶ added in v0.9.0
func (x *ResourceMetricStreamOutput) GetResourceWireVersion() uint32
func (*ResourceMetricStreamOutput) ProtoMessage ¶ added in v0.9.0
func (*ResourceMetricStreamOutput) ProtoMessage()
func (*ResourceMetricStreamOutput) ProtoReflect ¶ added in v0.9.0
func (x *ResourceMetricStreamOutput) ProtoReflect() protoreflect.Message
func (*ResourceMetricStreamOutput) Reset ¶ added in v0.9.0
func (x *ResourceMetricStreamOutput) Reset()
func (*ResourceMetricStreamOutput) String ¶ added in v0.9.0
func (x *ResourceMetricStreamOutput) String() string
type ResourceMetricStreamOutput_Output ¶ added in v0.9.0
type ResourceMetricStreamOutput_Output struct {
Output *MetricStreamOutput `protobuf:"bytes,2,opt,name=output,proto3,oneof"`
}
type ResourceMetricStreamOutput_Ready ¶ added in v0.9.0
type ResourceMetricStreamOutput_Ready struct {
Ready bool `protobuf:"varint,3,opt,name=ready,proto3,oneof"`
}
type ResourceMetricTarget ¶ added in v0.16.0
type ResourceMetricTarget struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Reference *v2.ResourceReference `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"`
Route *v2.AccessRoute `protobuf:"bytes,3,opt,name=route,proto3" json:"route,omitempty"`
PublicData map[string]string `` /* 165-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ResourceMetricTarget) Descriptor
deprecated
added in
v0.16.0
func (*ResourceMetricTarget) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetricTarget.ProtoReflect.Descriptor instead.
func (*ResourceMetricTarget) GetPublicData ¶ added in v0.16.0
func (x *ResourceMetricTarget) GetPublicData() map[string]string
func (*ResourceMetricTarget) GetReference ¶ added in v0.16.0
func (x *ResourceMetricTarget) GetReference() *v2.ResourceReference
func (*ResourceMetricTarget) GetRoute ¶ added in v0.16.0
func (x *ResourceMetricTarget) GetRoute() *v2.AccessRoute
func (*ResourceMetricTarget) GetToken ¶ added in v0.16.0
func (x *ResourceMetricTarget) GetToken() string
func (*ResourceMetricTarget) ProtoMessage ¶ added in v0.16.0
func (*ResourceMetricTarget) ProtoMessage()
func (*ResourceMetricTarget) ProtoReflect ¶ added in v0.16.0
func (x *ResourceMetricTarget) ProtoReflect() protoreflect.Message
func (*ResourceMetricTarget) Reset ¶ added in v0.16.0
func (x *ResourceMetricTarget) Reset()
func (*ResourceMetricTarget) String ¶ added in v0.16.0
func (x *ResourceMetricTarget) String() string
type ResourceMetricsCatalog ¶ added in v0.16.0
type ResourceMetricsCatalog struct {
Source *MetricSourceRef `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
Metrics []*FiniteMetricDescriptor `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
MaxTargets int32 `protobuf:"varint,3,opt,name=max_targets,json=maxTargets,proto3" json:"max_targets,omitempty"`
// Live source-age policy; absent/zero is unknown, never a cache deadline.
MaxSampleAge *durationpb.Duration `protobuf:"bytes,4,opt,name=max_sample_age,json=maxSampleAge,proto3" json:"max_sample_age,omitempty"`
// contains filtered or unexported fields
}
func (*ResourceMetricsCatalog) Descriptor
deprecated
added in
v0.16.0
func (*ResourceMetricsCatalog) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetricsCatalog.ProtoReflect.Descriptor instead.
func (*ResourceMetricsCatalog) GetMaxSampleAge ¶ added in v0.16.0
func (x *ResourceMetricsCatalog) GetMaxSampleAge() *durationpb.Duration
func (*ResourceMetricsCatalog) GetMaxTargets ¶ added in v0.16.0
func (x *ResourceMetricsCatalog) GetMaxTargets() int32
func (*ResourceMetricsCatalog) GetMetrics ¶ added in v0.16.0
func (x *ResourceMetricsCatalog) GetMetrics() []*FiniteMetricDescriptor
func (*ResourceMetricsCatalog) GetSource ¶ added in v0.16.0
func (x *ResourceMetricsCatalog) GetSource() *MetricSourceRef
func (*ResourceMetricsCatalog) ProtoMessage ¶ added in v0.16.0
func (*ResourceMetricsCatalog) ProtoMessage()
func (*ResourceMetricsCatalog) ProtoReflect ¶ added in v0.16.0
func (x *ResourceMetricsCatalog) ProtoReflect() protoreflect.Message
func (*ResourceMetricsCatalog) Reset ¶ added in v0.16.0
func (x *ResourceMetricsCatalog) Reset()
func (*ResourceMetricsCatalog) String ¶ added in v0.16.0
func (x *ResourceMetricsCatalog) String() string
type ResourceMetricsCatalogRequest ¶ added in v0.16.0
type ResourceMetricsCatalogRequest struct {
ResourceKey string `protobuf:"bytes,1,opt,name=resource_key,json=resourceKey,proto3" json:"resource_key,omitempty"`
Source *MetricSourceRef `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
Context *MetricQueryContext `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"`
// contains filtered or unexported fields
}
func (*ResourceMetricsCatalogRequest) Descriptor
deprecated
added in
v0.16.0
func (*ResourceMetricsCatalogRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetricsCatalogRequest.ProtoReflect.Descriptor instead.
func (*ResourceMetricsCatalogRequest) GetContext ¶ added in v0.16.0
func (x *ResourceMetricsCatalogRequest) GetContext() *MetricQueryContext
func (*ResourceMetricsCatalogRequest) GetResourceKey ¶ added in v0.16.0
func (x *ResourceMetricsCatalogRequest) GetResourceKey() string
func (*ResourceMetricsCatalogRequest) GetSource ¶ added in v0.16.0
func (x *ResourceMetricsCatalogRequest) GetSource() *MetricSourceRef
func (*ResourceMetricsCatalogRequest) ProtoMessage ¶ added in v0.16.0
func (*ResourceMetricsCatalogRequest) ProtoMessage()
func (*ResourceMetricsCatalogRequest) ProtoReflect ¶ added in v0.16.0
func (x *ResourceMetricsCatalogRequest) ProtoReflect() protoreflect.Message
func (*ResourceMetricsCatalogRequest) Reset ¶ added in v0.16.0
func (x *ResourceMetricsCatalogRequest) Reset()
func (*ResourceMetricsCatalogRequest) String ¶ added in v0.16.0
func (x *ResourceMetricsCatalogRequest) String() string
type ResourceMetricsQuery ¶ added in v0.16.0
type ResourceMetricsQuery struct {
Source *MetricSourceRef `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
Targets []*ResourceMetricTarget `protobuf:"bytes,2,rep,name=targets,proto3" json:"targets,omitempty"`
MetricIds []string `protobuf:"bytes,3,rep,name=metric_ids,json=metricIds,proto3" json:"metric_ids,omitempty"`
Shape string `protobuf:"bytes,4,opt,name=shape,proto3" json:"shape,omitempty"`
StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
Step *durationpb.Duration `protobuf:"bytes,7,opt,name=step,proto3" json:"step,omitempty"`
Context *MetricQueryContext `protobuf:"bytes,8,opt,name=context,proto3" json:"context,omitempty"`
// contains filtered or unexported fields
}
func (*ResourceMetricsQuery) Descriptor
deprecated
added in
v0.16.0
func (*ResourceMetricsQuery) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetricsQuery.ProtoReflect.Descriptor instead.
func (*ResourceMetricsQuery) GetContext ¶ added in v0.16.0
func (x *ResourceMetricsQuery) GetContext() *MetricQueryContext
func (*ResourceMetricsQuery) GetEndTime ¶ added in v0.16.0
func (x *ResourceMetricsQuery) GetEndTime() *timestamppb.Timestamp
func (*ResourceMetricsQuery) GetMetricIds ¶ added in v0.16.0
func (x *ResourceMetricsQuery) GetMetricIds() []string
func (*ResourceMetricsQuery) GetShape ¶ added in v0.16.0
func (x *ResourceMetricsQuery) GetShape() string
func (*ResourceMetricsQuery) GetSource ¶ added in v0.16.0
func (x *ResourceMetricsQuery) GetSource() *MetricSourceRef
func (*ResourceMetricsQuery) GetStartTime ¶ added in v0.16.0
func (x *ResourceMetricsQuery) GetStartTime() *timestamppb.Timestamp
func (*ResourceMetricsQuery) GetStep ¶ added in v0.16.0
func (x *ResourceMetricsQuery) GetStep() *durationpb.Duration
func (*ResourceMetricsQuery) GetTargets ¶ added in v0.16.0
func (x *ResourceMetricsQuery) GetTargets() []*ResourceMetricTarget
func (*ResourceMetricsQuery) ProtoMessage ¶ added in v0.16.0
func (*ResourceMetricsQuery) ProtoMessage()
func (*ResourceMetricsQuery) ProtoReflect ¶ added in v0.16.0
func (x *ResourceMetricsQuery) ProtoReflect() protoreflect.Message
func (*ResourceMetricsQuery) Reset ¶ added in v0.16.0
func (x *ResourceMetricsQuery) Reset()
func (*ResourceMetricsQuery) String ¶ added in v0.16.0
func (x *ResourceMetricsQuery) String() string
type ResourceMetricsResponse ¶ added in v0.16.0
type ResourceMetricsResponse struct {
Results []*ResourceMetricResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"`
Warnings []string `protobuf:"bytes,3,rep,name=warnings,proto3" json:"warnings,omitempty"`
// contains filtered or unexported fields
}
func (*ResourceMetricsResponse) Descriptor
deprecated
added in
v0.16.0
func (*ResourceMetricsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetricsResponse.ProtoReflect.Descriptor instead.
func (*ResourceMetricsResponse) GetComplete ¶ added in v0.16.0
func (x *ResourceMetricsResponse) GetComplete() bool
func (*ResourceMetricsResponse) GetResults ¶ added in v0.16.0
func (x *ResourceMetricsResponse) GetResults() []*ResourceMetricResult
func (*ResourceMetricsResponse) GetWarnings ¶ added in v0.16.0
func (x *ResourceMetricsResponse) GetWarnings() []string
func (*ResourceMetricsResponse) ProtoMessage ¶ added in v0.16.0
func (*ResourceMetricsResponse) ProtoMessage()
func (*ResourceMetricsResponse) ProtoReflect ¶ added in v0.16.0
func (x *ResourceMetricsResponse) ProtoReflect() protoreflect.Message
func (*ResourceMetricsResponse) Reset ¶ added in v0.16.0
func (x *ResourceMetricsResponse) Reset()
func (*ResourceMetricsResponse) String ¶ added in v0.16.0
func (x *ResourceMetricsResponse) String() string
type ResourceQueryMetricsResponse ¶ added in v0.9.0
type ResourceQueryMetricsResponse struct {
ResourceWireVersion uint32 `protobuf:"varint,1,opt,name=resource_wire_version,json=resourceWireVersion,proto3" json:"resource_wire_version,omitempty"`
Response *QueryMetricsResponse `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
// contains filtered or unexported fields
}
func (*ResourceQueryMetricsResponse) Descriptor
deprecated
added in
v0.9.0
func (*ResourceQueryMetricsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResourceQueryMetricsResponse.ProtoReflect.Descriptor instead.
func (*ResourceQueryMetricsResponse) GetResourceWireVersion ¶ added in v0.9.0
func (x *ResourceQueryMetricsResponse) GetResourceWireVersion() uint32
func (*ResourceQueryMetricsResponse) GetResponse ¶ added in v0.9.0
func (x *ResourceQueryMetricsResponse) GetResponse() *QueryMetricsResponse
func (*ResourceQueryMetricsResponse) ProtoMessage ¶ added in v0.9.0
func (*ResourceQueryMetricsResponse) ProtoMessage()
func (*ResourceQueryMetricsResponse) ProtoReflect ¶ added in v0.9.0
func (x *ResourceQueryMetricsResponse) ProtoReflect() protoreflect.Message
func (*ResourceQueryMetricsResponse) Reset ¶ added in v0.9.0
func (x *ResourceQueryMetricsResponse) Reset()
func (*ResourceQueryMetricsResponse) String ¶ added in v0.9.0
func (x *ResourceQueryMetricsResponse) String() string
type TimeSeries ¶
type TimeSeries struct {
MetricId string `protobuf:"bytes,1,opt,name=metric_id,json=metricId,proto3" json:"metric_id,omitempty"`
DataPoints []*DataPoint `protobuf:"bytes,2,rep,name=data_points,json=dataPoints,proto3" json:"data_points,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*TimeSeries) Descriptor
deprecated
func (*TimeSeries) Descriptor() ([]byte, []int)
Deprecated: Use TimeSeries.ProtoReflect.Descriptor instead.
func (*TimeSeries) GetDataPoints ¶
func (x *TimeSeries) GetDataPoints() []*DataPoint
func (*TimeSeries) GetLabels ¶
func (x *TimeSeries) GetLabels() map[string]string
func (*TimeSeries) GetMetricId ¶
func (x *TimeSeries) GetMetricId() string
func (*TimeSeries) ProtoMessage ¶
func (*TimeSeries) ProtoMessage()
func (*TimeSeries) ProtoReflect ¶
func (x *TimeSeries) ProtoReflect() protoreflect.Message
func (*TimeSeries) Reset ¶
func (x *TimeSeries) Reset()
func (*TimeSeries) String ¶
func (x *TimeSeries) String() string
type UnimplementedMetricPluginServer ¶
type UnimplementedMetricPluginServer struct {
}
UnimplementedMetricPluginServer should be embedded to have forward compatible implementations.
func (UnimplementedMetricPluginServer) GetFiniteCapabilities ¶ added in v0.16.0
func (UnimplementedMetricPluginServer) GetFiniteCapabilities(context.Context, *emptypb.Empty) (*FiniteMetricCapabilities, error)
func (UnimplementedMetricPluginServer) GetMetricOwnerCatalog ¶ added in v0.16.0
func (UnimplementedMetricPluginServer) GetMetricOwnerCatalog(context.Context, *emptypb.Empty) (*MetricOwnerCatalog, error)
func (UnimplementedMetricPluginServer) GetResourceMetricsCatalog ¶ added in v0.16.0
func (UnimplementedMetricPluginServer) GetResourceMetricsCatalog(context.Context, *ResourceMetricsCatalogRequest) (*ResourceMetricsCatalog, error)
func (UnimplementedMetricPluginServer) GetSupportedResources ¶
func (UnimplementedMetricPluginServer) GetSupportedResources(context.Context, *emptypb.Empty) (*GetSupportedMetricResourcesResponse, error)
func (UnimplementedMetricPluginServer) Query ¶
func (UnimplementedMetricPluginServer) Query(context.Context, *QueryMetricsRequest) (*QueryMetricsResponse, error)
func (UnimplementedMetricPluginServer) QueryResource ¶ added in v0.9.0
func (UnimplementedMetricPluginServer) QueryResource(context.Context, *QueryMetricsRequest) (*ResourceQueryMetricsResponse, error)
func (UnimplementedMetricPluginServer) QueryResources ¶ added in v0.16.0
func (UnimplementedMetricPluginServer) QueryResources(context.Context, *ResourceMetricsQuery) (*ResourceMetricsResponse, error)
func (UnimplementedMetricPluginServer) StreamMetrics ¶
func (UnimplementedMetricPluginServer) StreamMetrics(MetricPlugin_StreamMetricsServer) error
func (UnimplementedMetricPluginServer) StreamResourceMetrics ¶ added in v0.9.0
func (UnimplementedMetricPluginServer) StreamResourceMetrics(MetricPlugin_StreamResourceMetricsServer) error
type UnsafeMetricPluginServer ¶
type UnsafeMetricPluginServer interface {
// contains filtered or unexported methods
}
UnsafeMetricPluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetricPluginServer will result in compilation errors.