mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-21 08:39:55 +00:00
Implement support for quick device measurement metrics.
This commit is contained in:
26
api/grpc-web/api/device_grpc_web_pb.d.ts
vendored
26
api/grpc-web/api/device_grpc_web_pb.d.ts
vendored
@ -107,12 +107,19 @@ export class DeviceServiceClient {
|
||||
response: api_device_pb.GetRandomDevAddrResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_pb.GetRandomDevAddrResponse>;
|
||||
|
||||
getStats(
|
||||
request: api_device_pb.GetDeviceStatsRequest,
|
||||
getMetrics(
|
||||
request: api_device_pb.GetDeviceMetricsRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_pb.GetDeviceStatsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceStatsResponse>;
|
||||
response: api_device_pb.GetDeviceMetricsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceMetricsResponse>;
|
||||
|
||||
getLinkMetrics(
|
||||
request: api_device_pb.GetDeviceLinkMetricsRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_device_pb.GetDeviceLinkMetricsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_device_pb.GetDeviceLinkMetricsResponse>;
|
||||
|
||||
enqueue(
|
||||
request: api_device_pb.EnqueueDeviceQueueItemRequest,
|
||||
@ -212,10 +219,15 @@ export class DeviceServicePromiseClient {
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_pb.GetRandomDevAddrResponse>;
|
||||
|
||||
getStats(
|
||||
request: api_device_pb.GetDeviceStatsRequest,
|
||||
getMetrics(
|
||||
request: api_device_pb.GetDeviceMetricsRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_pb.GetDeviceStatsResponse>;
|
||||
): Promise<api_device_pb.GetDeviceMetricsResponse>;
|
||||
|
||||
getLinkMetrics(
|
||||
request: api_device_pb.GetDeviceLinkMetricsRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_device_pb.GetDeviceLinkMetricsResponse>;
|
||||
|
||||
enqueue(
|
||||
request: api_device_pb.EnqueueDeviceQueueItemRequest,
|
||||
|
132
api/grpc-web/api/device_grpc_web_pb.js
vendored
132
api/grpc-web/api/device_grpc_web_pb.js
vendored
@ -16,6 +16,8 @@ const grpc = {};
|
||||
grpc.web = require('grpc-web');
|
||||
|
||||
|
||||
var common_common_pb = require('../common/common_pb.js')
|
||||
|
||||
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
|
||||
|
||||
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js')
|
||||
@ -1199,80 +1201,160 @@ proto.api.DeviceServicePromiseClient.prototype.getRandomDevAddr =
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.GetDeviceStatsRequest,
|
||||
* !proto.api.GetDeviceStatsResponse>}
|
||||
* !proto.api.GetDeviceMetricsRequest,
|
||||
* !proto.api.GetDeviceMetricsResponse>}
|
||||
*/
|
||||
const methodDescriptor_DeviceService_GetStats = new grpc.web.MethodDescriptor(
|
||||
'/api.DeviceService/GetStats',
|
||||
const methodDescriptor_DeviceService_GetMetrics = new grpc.web.MethodDescriptor(
|
||||
'/api.DeviceService/GetMetrics',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.GetDeviceStatsRequest,
|
||||
proto.api.GetDeviceStatsResponse,
|
||||
proto.api.GetDeviceMetricsRequest,
|
||||
proto.api.GetDeviceMetricsResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetDeviceStatsRequest} request
|
||||
* @param {!proto.api.GetDeviceMetricsRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetDeviceStatsResponse.deserializeBinary
|
||||
proto.api.GetDeviceMetricsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.GetDeviceStatsRequest,
|
||||
* !proto.api.GetDeviceStatsResponse>}
|
||||
* !proto.api.GetDeviceMetricsRequest,
|
||||
* !proto.api.GetDeviceMetricsResponse>}
|
||||
*/
|
||||
const methodInfo_DeviceService_GetStats = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GetDeviceStatsResponse,
|
||||
const methodInfo_DeviceService_GetMetrics = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GetDeviceMetricsResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetDeviceStatsRequest} request
|
||||
* @param {!proto.api.GetDeviceMetricsRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetDeviceStatsResponse.deserializeBinary
|
||||
proto.api.GetDeviceMetricsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetDeviceStatsRequest} request The
|
||||
* @param {!proto.api.GetDeviceMetricsRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GetDeviceStatsResponse)}
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GetDeviceMetricsResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GetDeviceStatsResponse>|undefined}
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GetDeviceMetricsResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.DeviceServiceClient.prototype.getStats =
|
||||
proto.api.DeviceServiceClient.prototype.getMetrics =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.DeviceService/GetStats',
|
||||
'/api.DeviceService/GetMetrics',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceService_GetStats,
|
||||
methodDescriptor_DeviceService_GetMetrics,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetDeviceStatsRequest} request The
|
||||
* @param {!proto.api.GetDeviceMetricsRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.GetDeviceStatsResponse>}
|
||||
* @return {!Promise<!proto.api.GetDeviceMetricsResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.DeviceServicePromiseClient.prototype.getStats =
|
||||
proto.api.DeviceServicePromiseClient.prototype.getMetrics =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.DeviceService/GetStats',
|
||||
'/api.DeviceService/GetMetrics',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceService_GetStats);
|
||||
methodDescriptor_DeviceService_GetMetrics);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.GetDeviceLinkMetricsRequest,
|
||||
* !proto.api.GetDeviceLinkMetricsResponse>}
|
||||
*/
|
||||
const methodDescriptor_DeviceService_GetLinkMetrics = new grpc.web.MethodDescriptor(
|
||||
'/api.DeviceService/GetLinkMetrics',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.GetDeviceLinkMetricsRequest,
|
||||
proto.api.GetDeviceLinkMetricsResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetDeviceLinkMetricsRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetDeviceLinkMetricsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.GetDeviceLinkMetricsRequest,
|
||||
* !proto.api.GetDeviceLinkMetricsResponse>}
|
||||
*/
|
||||
const methodInfo_DeviceService_GetLinkMetrics = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GetDeviceLinkMetricsResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetDeviceLinkMetricsRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetDeviceLinkMetricsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetDeviceLinkMetricsRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GetDeviceLinkMetricsResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GetDeviceLinkMetricsResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.DeviceServiceClient.prototype.getLinkMetrics =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.DeviceService/GetLinkMetrics',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceService_GetLinkMetrics,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetDeviceLinkMetricsRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.GetDeviceLinkMetricsResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.DeviceServicePromiseClient.prototype.getLinkMetrics =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.DeviceService/GetLinkMetrics',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_DeviceService_GetLinkMetrics);
|
||||
};
|
||||
|
||||
|
||||
|
187
api/grpc-web/api/device_pb.d.ts
vendored
187
api/grpc-web/api/device_pb.d.ts
vendored
@ -1,5 +1,6 @@
|
||||
import * as jspb from 'google-protobuf'
|
||||
|
||||
import * as common_common_pb from '../common/common_pb';
|
||||
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
|
||||
import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb';
|
||||
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
||||
@ -613,97 +614,165 @@ export namespace GetRandomDevAddrResponse {
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceStatsRequest extends jspb.Message {
|
||||
export class GetDeviceMetricsRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): GetDeviceStatsRequest;
|
||||
setDevEui(value: string): GetDeviceMetricsRequest;
|
||||
|
||||
getStart(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setStart(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceStatsRequest;
|
||||
setStart(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceMetricsRequest;
|
||||
hasStart(): boolean;
|
||||
clearStart(): GetDeviceStatsRequest;
|
||||
clearStart(): GetDeviceMetricsRequest;
|
||||
|
||||
getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setEnd(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceStatsRequest;
|
||||
setEnd(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceMetricsRequest;
|
||||
hasEnd(): boolean;
|
||||
clearEnd(): GetDeviceStatsRequest;
|
||||
clearEnd(): GetDeviceMetricsRequest;
|
||||
|
||||
getAggregation(): common_common_pb.Aggregation;
|
||||
setAggregation(value: common_common_pb.Aggregation): GetDeviceMetricsRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceStatsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceStatsRequest): GetDeviceStatsRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceStatsRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceStatsRequest;
|
||||
static deserializeBinaryFromReader(message: GetDeviceStatsRequest, reader: jspb.BinaryReader): GetDeviceStatsRequest;
|
||||
toObject(includeInstance?: boolean): GetDeviceMetricsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceMetricsRequest): GetDeviceMetricsRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceMetricsRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceMetricsRequest;
|
||||
static deserializeBinaryFromReader(message: GetDeviceMetricsRequest, reader: jspb.BinaryReader): GetDeviceMetricsRequest;
|
||||
}
|
||||
|
||||
export namespace GetDeviceStatsRequest {
|
||||
export namespace GetDeviceMetricsRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
start?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
end?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
aggregation: common_common_pb.Aggregation,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceStatsResponse extends jspb.Message {
|
||||
getResultList(): Array<DeviceStats>;
|
||||
setResultList(value: Array<DeviceStats>): GetDeviceStatsResponse;
|
||||
clearResultList(): GetDeviceStatsResponse;
|
||||
addResult(value?: DeviceStats, index?: number): DeviceStats;
|
||||
export class GetDeviceMetricsResponse extends jspb.Message {
|
||||
getMetricsMap(): jspb.Map<string, common_common_pb.Metric>;
|
||||
clearMetricsMap(): GetDeviceMetricsResponse;
|
||||
|
||||
getStatesMap(): jspb.Map<string, DeviceState>;
|
||||
clearStatesMap(): GetDeviceMetricsResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceStatsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceStatsResponse): GetDeviceStatsResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceStatsResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceStatsResponse;
|
||||
static deserializeBinaryFromReader(message: GetDeviceStatsResponse, reader: jspb.BinaryReader): GetDeviceStatsResponse;
|
||||
toObject(includeInstance?: boolean): GetDeviceMetricsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceMetricsResponse): GetDeviceMetricsResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceMetricsResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceMetricsResponse;
|
||||
static deserializeBinaryFromReader(message: GetDeviceMetricsResponse, reader: jspb.BinaryReader): GetDeviceMetricsResponse;
|
||||
}
|
||||
|
||||
export namespace GetDeviceStatsResponse {
|
||||
export namespace GetDeviceMetricsResponse {
|
||||
export type AsObject = {
|
||||
resultList: Array<DeviceStats.AsObject>,
|
||||
metricsMap: Array<[string, common_common_pb.Metric.AsObject]>,
|
||||
statesMap: Array<[string, DeviceState.AsObject]>,
|
||||
}
|
||||
}
|
||||
|
||||
export class DeviceStats extends jspb.Message {
|
||||
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setTime(value?: google_protobuf_timestamp_pb.Timestamp): DeviceStats;
|
||||
hasTime(): boolean;
|
||||
clearTime(): DeviceStats;
|
||||
export class DeviceState extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): DeviceState;
|
||||
|
||||
getRxPackets(): number;
|
||||
setRxPackets(value: number): DeviceStats;
|
||||
|
||||
getGwRssi(): number;
|
||||
setGwRssi(value: number): DeviceStats;
|
||||
|
||||
getGwSnr(): number;
|
||||
setGwSnr(value: number): DeviceStats;
|
||||
|
||||
getRxPacketsPerFrequencyMap(): jspb.Map<number, number>;
|
||||
clearRxPacketsPerFrequencyMap(): DeviceStats;
|
||||
|
||||
getRxPacketsPerDrMap(): jspb.Map<number, number>;
|
||||
clearRxPacketsPerDrMap(): DeviceStats;
|
||||
|
||||
getErrorsMap(): jspb.Map<string, number>;
|
||||
clearErrorsMap(): DeviceStats;
|
||||
getValue(): string;
|
||||
setValue(value: string): DeviceState;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeviceStats.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeviceStats): DeviceStats.AsObject;
|
||||
static serializeBinaryToWriter(message: DeviceStats, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeviceStats;
|
||||
static deserializeBinaryFromReader(message: DeviceStats, reader: jspb.BinaryReader): DeviceStats;
|
||||
toObject(includeInstance?: boolean): DeviceState.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeviceState): DeviceState.AsObject;
|
||||
static serializeBinaryToWriter(message: DeviceState, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): DeviceState;
|
||||
static deserializeBinaryFromReader(message: DeviceState, reader: jspb.BinaryReader): DeviceState;
|
||||
}
|
||||
|
||||
export namespace DeviceStats {
|
||||
export namespace DeviceState {
|
||||
export type AsObject = {
|
||||
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
rxPackets: number,
|
||||
gwRssi: number,
|
||||
gwSnr: number,
|
||||
rxPacketsPerFrequencyMap: Array<[number, number]>,
|
||||
rxPacketsPerDrMap: Array<[number, number]>,
|
||||
errorsMap: Array<[string, number]>,
|
||||
name: string,
|
||||
value: string,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceLinkMetricsRequest extends jspb.Message {
|
||||
getDevEui(): string;
|
||||
setDevEui(value: string): GetDeviceLinkMetricsRequest;
|
||||
|
||||
getStart(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setStart(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceLinkMetricsRequest;
|
||||
hasStart(): boolean;
|
||||
clearStart(): GetDeviceLinkMetricsRequest;
|
||||
|
||||
getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setEnd(value?: google_protobuf_timestamp_pb.Timestamp): GetDeviceLinkMetricsRequest;
|
||||
hasEnd(): boolean;
|
||||
clearEnd(): GetDeviceLinkMetricsRequest;
|
||||
|
||||
getAggregation(): common_common_pb.Aggregation;
|
||||
setAggregation(value: common_common_pb.Aggregation): GetDeviceLinkMetricsRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceLinkMetricsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceLinkMetricsRequest): GetDeviceLinkMetricsRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceLinkMetricsRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceLinkMetricsRequest;
|
||||
static deserializeBinaryFromReader(message: GetDeviceLinkMetricsRequest, reader: jspb.BinaryReader): GetDeviceLinkMetricsRequest;
|
||||
}
|
||||
|
||||
export namespace GetDeviceLinkMetricsRequest {
|
||||
export type AsObject = {
|
||||
devEui: string,
|
||||
start?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
end?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
aggregation: common_common_pb.Aggregation,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetDeviceLinkMetricsResponse extends jspb.Message {
|
||||
getRxPackets(): common_common_pb.Metric | undefined;
|
||||
setRxPackets(value?: common_common_pb.Metric): GetDeviceLinkMetricsResponse;
|
||||
hasRxPackets(): boolean;
|
||||
clearRxPackets(): GetDeviceLinkMetricsResponse;
|
||||
|
||||
getGwRssi(): common_common_pb.Metric | undefined;
|
||||
setGwRssi(value?: common_common_pb.Metric): GetDeviceLinkMetricsResponse;
|
||||
hasGwRssi(): boolean;
|
||||
clearGwRssi(): GetDeviceLinkMetricsResponse;
|
||||
|
||||
getGwSnr(): common_common_pb.Metric | undefined;
|
||||
setGwSnr(value?: common_common_pb.Metric): GetDeviceLinkMetricsResponse;
|
||||
hasGwSnr(): boolean;
|
||||
clearGwSnr(): GetDeviceLinkMetricsResponse;
|
||||
|
||||
getRxPacketsPerFreq(): common_common_pb.Metric | undefined;
|
||||
setRxPacketsPerFreq(value?: common_common_pb.Metric): GetDeviceLinkMetricsResponse;
|
||||
hasRxPacketsPerFreq(): boolean;
|
||||
clearRxPacketsPerFreq(): GetDeviceLinkMetricsResponse;
|
||||
|
||||
getRxPacketsPerDr(): common_common_pb.Metric | undefined;
|
||||
setRxPacketsPerDr(value?: common_common_pb.Metric): GetDeviceLinkMetricsResponse;
|
||||
hasRxPacketsPerDr(): boolean;
|
||||
clearRxPacketsPerDr(): GetDeviceLinkMetricsResponse;
|
||||
|
||||
getErrors(): common_common_pb.Metric | undefined;
|
||||
setErrors(value?: common_common_pb.Metric): GetDeviceLinkMetricsResponse;
|
||||
hasErrors(): boolean;
|
||||
clearErrors(): GetDeviceLinkMetricsResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceLinkMetricsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceLinkMetricsResponse): GetDeviceLinkMetricsResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetDeviceLinkMetricsResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetDeviceLinkMetricsResponse;
|
||||
static deserializeBinaryFromReader(message: GetDeviceLinkMetricsResponse, reader: jspb.BinaryReader): GetDeviceLinkMetricsResponse;
|
||||
}
|
||||
|
||||
export namespace GetDeviceLinkMetricsResponse {
|
||||
export type AsObject = {
|
||||
rxPackets?: common_common_pb.Metric.AsObject,
|
||||
gwRssi?: common_common_pb.Metric.AsObject,
|
||||
gwSnr?: common_common_pb.Metric.AsObject,
|
||||
rxPacketsPerFreq?: common_common_pb.Metric.AsObject,
|
||||
rxPacketsPerDr?: common_common_pb.Metric.AsObject,
|
||||
errors?: common_common_pb.Metric.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
|
1290
api/grpc-web/api/device_pb.js
vendored
1290
api/grpc-web/api/device_pb.js
vendored
File diff suppressed because it is too large
Load Diff
33
api/grpc-web/api/device_profile_pb.d.ts
vendored
33
api/grpc-web/api/device_profile_pb.d.ts
vendored
@ -84,6 +84,9 @@ export class DeviceProfile extends jspb.Message {
|
||||
getTagsMap(): jspb.Map<string, string>;
|
||||
clearTagsMap(): DeviceProfile;
|
||||
|
||||
getMeasurementsMap(): jspb.Map<string, Measurement>;
|
||||
clearMeasurementsMap(): DeviceProfile;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeviceProfile.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeviceProfile): DeviceProfile.AsObject;
|
||||
@ -120,6 +123,29 @@ export namespace DeviceProfile {
|
||||
abpRx2Dr: number,
|
||||
abpRx2Freq: number,
|
||||
tagsMap: Array<[string, string]>,
|
||||
measurementsMap: Array<[string, Measurement.AsObject]>,
|
||||
}
|
||||
}
|
||||
|
||||
export class Measurement extends jspb.Message {
|
||||
getName(): string;
|
||||
setName(value: string): Measurement;
|
||||
|
||||
getKind(): MeasurementKind;
|
||||
setKind(value: MeasurementKind): Measurement;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Measurement.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Measurement): Measurement.AsObject;
|
||||
static serializeBinaryToWriter(message: Measurement, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): Measurement;
|
||||
static deserializeBinaryFromReader(message: Measurement, reader: jspb.BinaryReader): Measurement;
|
||||
}
|
||||
|
||||
export namespace Measurement {
|
||||
export type AsObject = {
|
||||
name: string,
|
||||
kind: MeasurementKind,
|
||||
}
|
||||
}
|
||||
|
||||
@ -412,3 +438,10 @@ export enum CodecRuntime {
|
||||
CAYENNE_LPP = 1,
|
||||
JS = 2,
|
||||
}
|
||||
export enum MeasurementKind {
|
||||
UNKNOWN = 0,
|
||||
COUNTER = 1,
|
||||
ABSOLUTE = 2,
|
||||
GAUGE = 3,
|
||||
STRING = 4,
|
||||
}
|
||||
|
229
api/grpc-web/api/device_profile_pb.js
vendored
229
api/grpc-web/api/device_profile_pb.js
vendored
@ -33,6 +33,8 @@ goog.exportSymbol('proto.api.GetDeviceProfileResponse', null, global);
|
||||
goog.exportSymbol('proto.api.ListDeviceProfileAdrAlgorithmsResponse', null, global);
|
||||
goog.exportSymbol('proto.api.ListDeviceProfilesRequest', null, global);
|
||||
goog.exportSymbol('proto.api.ListDeviceProfilesResponse', null, global);
|
||||
goog.exportSymbol('proto.api.Measurement', null, global);
|
||||
goog.exportSymbol('proto.api.MeasurementKind', null, global);
|
||||
goog.exportSymbol('proto.api.UpdateDeviceProfileRequest', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
@ -55,6 +57,27 @@ if (goog.DEBUG && !COMPILED) {
|
||||
*/
|
||||
proto.api.DeviceProfile.displayName = 'proto.api.DeviceProfile';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.api.Measurement = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.api.Measurement, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.api.Measurement.displayName = 'proto.api.Measurement';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@ -343,7 +366,8 @@ proto.api.DeviceProfile.toObject = function(includeInstance, msg) {
|
||||
abpRx1DrOffset: jspb.Message.getFieldWithDefault(msg, 22, 0),
|
||||
abpRx2Dr: jspb.Message.getFieldWithDefault(msg, 23, 0),
|
||||
abpRx2Freq: jspb.Message.getFieldWithDefault(msg, 24, 0),
|
||||
tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : []
|
||||
tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [],
|
||||
measurementsMap: (f = msg.getMeasurementsMap()) ? f.toObject(includeInstance, proto.api.Measurement.toObject) : []
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -486,6 +510,12 @@ proto.api.DeviceProfile.deserializeBinaryFromReader = function(msg, reader) {
|
||||
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
||||
});
|
||||
break;
|
||||
case 27:
|
||||
var value = msg.getMeasurementsMap();
|
||||
reader.readMessage(value, function(message, reader) {
|
||||
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.api.Measurement.deserializeBinaryFromReader, "", new proto.api.Measurement());
|
||||
});
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -694,6 +724,10 @@ proto.api.DeviceProfile.serializeBinaryToWriter = function(message, writer) {
|
||||
if (f && f.getLength() > 0) {
|
||||
f.serializeBinary(25, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
||||
}
|
||||
f = message.getMeasurementsMap(true);
|
||||
if (f && f.getLength() > 0) {
|
||||
f.serializeBinary(27, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.api.Measurement.serializeBinaryToWriter);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -1169,6 +1203,188 @@ proto.api.DeviceProfile.prototype.clearTagsMap = function() {
|
||||
return this;};
|
||||
|
||||
|
||||
/**
|
||||
* map<string, Measurement> measurements = 27;
|
||||
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
||||
* empty, instead returning `undefined`
|
||||
* @return {!jspb.Map<string,!proto.api.Measurement>}
|
||||
*/
|
||||
proto.api.DeviceProfile.prototype.getMeasurementsMap = function(opt_noLazyCreate) {
|
||||
return /** @type {!jspb.Map<string,!proto.api.Measurement>} */ (
|
||||
jspb.Message.getMapField(this, 27, opt_noLazyCreate,
|
||||
proto.api.Measurement));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears values from the map. The map will be non-null.
|
||||
* @return {!proto.api.DeviceProfile} returns this
|
||||
*/
|
||||
proto.api.DeviceProfile.prototype.clearMeasurementsMap = function() {
|
||||
this.getMeasurementsMap().clear();
|
||||
return this;};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
/**
|
||||
* Creates an object representation of this proto.
|
||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||
* Optional fields that are not set will be set to undefined.
|
||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||
* For the list of reserved names please see:
|
||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||
* JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.api.Measurement.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.api.Measurement.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Static version of the {@see toObject} method.
|
||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||
* the JSPB instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.api.Measurement} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.api.Measurement.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
kind: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
obj.$jspbMessageInstance = msg;
|
||||
}
|
||||
return obj;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.api.Measurement}
|
||||
*/
|
||||
proto.api.Measurement.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.api.Measurement;
|
||||
return proto.api.Measurement.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.api.Measurement} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.api.Measurement}
|
||||
*/
|
||||
proto.api.Measurement.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
}
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 2:
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setName(value);
|
||||
break;
|
||||
case 3:
|
||||
var value = /** @type {!proto.api.MeasurementKind} */ (reader.readEnum());
|
||||
msg.setKind(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.api.Measurement.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.api.Measurement.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.api.Measurement} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.api.Measurement.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getName();
|
||||
if (f.length > 0) {
|
||||
writer.writeString(
|
||||
2,
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getKind();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
3,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional string name = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.api.Measurement.prototype.getName = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} value
|
||||
* @return {!proto.api.Measurement} returns this
|
||||
*/
|
||||
proto.api.Measurement.prototype.setName = function(value) {
|
||||
return jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional MeasurementKind kind = 3;
|
||||
* @return {!proto.api.MeasurementKind}
|
||||
*/
|
||||
proto.api.Measurement.prototype.getKind = function() {
|
||||
return /** @type {!proto.api.MeasurementKind} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.MeasurementKind} value
|
||||
* @return {!proto.api.Measurement} returns this
|
||||
*/
|
||||
proto.api.Measurement.prototype.setKind = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 3, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -3325,4 +3541,15 @@ proto.api.CodecRuntime = {
|
||||
JS: 2
|
||||
};
|
||||
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.api.MeasurementKind = {
|
||||
UNKNOWN: 0,
|
||||
COUNTER: 1,
|
||||
ABSOLUTE: 2,
|
||||
GAUGE: 3,
|
||||
STRING: 4
|
||||
};
|
||||
|
||||
goog.object.extend(exports, proto.api);
|
||||
|
@ -88,6 +88,9 @@ export class DeviceProfileTemplate extends jspb.Message {
|
||||
getTagsMap(): jspb.Map<string, string>;
|
||||
clearTagsMap(): DeviceProfileTemplate;
|
||||
|
||||
getMeasurementsMap(): jspb.Map<string, api_device_profile_pb.Measurement>;
|
||||
clearMeasurementsMap(): DeviceProfileTemplate;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): DeviceProfileTemplate.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: DeviceProfileTemplate): DeviceProfileTemplate.AsObject;
|
||||
@ -125,6 +128,7 @@ export namespace DeviceProfileTemplate {
|
||||
abpRx2Dr: number,
|
||||
abpRx2Freq: number,
|
||||
tagsMap: Array<[string, string]>,
|
||||
measurementsMap: Array<[string, api_device_profile_pb.Measurement.AsObject]>,
|
||||
}
|
||||
}
|
||||
|
||||
|
35
api/grpc-web/api/device_profile_template_pb.js
vendored
35
api/grpc-web/api/device_profile_template_pb.js
vendored
@ -279,7 +279,8 @@ proto.api.DeviceProfileTemplate.toObject = function(includeInstance, msg) {
|
||||
abpRx1DrOffset: jspb.Message.getFieldWithDefault(msg, 24, 0),
|
||||
abpRx2Dr: jspb.Message.getFieldWithDefault(msg, 25, 0),
|
||||
abpRx2Freq: jspb.Message.getFieldWithDefault(msg, 26, 0),
|
||||
tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : []
|
||||
tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [],
|
||||
measurementsMap: (f = msg.getMeasurementsMap()) ? f.toObject(includeInstance, proto.api.Measurement.toObject) : []
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -426,6 +427,12 @@ proto.api.DeviceProfileTemplate.deserializeBinaryFromReader = function(msg, read
|
||||
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
||||
});
|
||||
break;
|
||||
case 28:
|
||||
var value = msg.getMeasurementsMap();
|
||||
reader.readMessage(value, function(message, reader) {
|
||||
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.api.Measurement.deserializeBinaryFromReader, "", new proto.api.Measurement());
|
||||
});
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -641,6 +648,10 @@ proto.api.DeviceProfileTemplate.serializeBinaryToWriter = function(message, writ
|
||||
if (f && f.getLength() > 0) {
|
||||
f.serializeBinary(27, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
||||
}
|
||||
f = message.getMeasurementsMap(true);
|
||||
if (f && f.getLength() > 0) {
|
||||
f.serializeBinary(28, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.api.Measurement.serializeBinaryToWriter);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -1134,6 +1145,28 @@ proto.api.DeviceProfileTemplate.prototype.clearTagsMap = function() {
|
||||
return this;};
|
||||
|
||||
|
||||
/**
|
||||
* map<string, Measurement> measurements = 28;
|
||||
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
||||
* empty, instead returning `undefined`
|
||||
* @return {!jspb.Map<string,!proto.api.Measurement>}
|
||||
*/
|
||||
proto.api.DeviceProfileTemplate.prototype.getMeasurementsMap = function(opt_noLazyCreate) {
|
||||
return /** @type {!jspb.Map<string,!proto.api.Measurement>} */ (
|
||||
jspb.Message.getMapField(this, 28, opt_noLazyCreate,
|
||||
proto.api.Measurement));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears values from the map. The map will be non-null.
|
||||
* @return {!proto.api.DeviceProfileTemplate} returns this
|
||||
*/
|
||||
proto.api.DeviceProfileTemplate.prototype.clearMeasurementsMap = function() {
|
||||
this.getMeasurementsMap().clear();
|
||||
return this;};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
14
api/grpc-web/api/gateway_grpc_web_pb.d.ts
vendored
14
api/grpc-web/api/gateway_grpc_web_pb.d.ts
vendored
@ -51,12 +51,12 @@ export class GatewayServiceClient {
|
||||
response: api_gateway_pb.GenerateGatewayClientCertificateResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_gateway_pb.GenerateGatewayClientCertificateResponse>;
|
||||
|
||||
getStats(
|
||||
request: api_gateway_pb.GetGatewayStatsRequest,
|
||||
getMetrics(
|
||||
request: api_gateway_pb.GetGatewayMetricsRequest,
|
||||
metadata: grpcWeb.Metadata | undefined,
|
||||
callback: (err: grpcWeb.Error,
|
||||
response: api_gateway_pb.GetGatewayStatsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_gateway_pb.GetGatewayStatsResponse>;
|
||||
response: api_gateway_pb.GetGatewayMetricsResponse) => void
|
||||
): grpcWeb.ClientReadableStream<api_gateway_pb.GetGatewayMetricsResponse>;
|
||||
|
||||
}
|
||||
|
||||
@ -95,10 +95,10 @@ export class GatewayServicePromiseClient {
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_gateway_pb.GenerateGatewayClientCertificateResponse>;
|
||||
|
||||
getStats(
|
||||
request: api_gateway_pb.GetGatewayStatsRequest,
|
||||
getMetrics(
|
||||
request: api_gateway_pb.GetGatewayMetricsRequest,
|
||||
metadata?: grpcWeb.Metadata
|
||||
): Promise<api_gateway_pb.GetGatewayStatsResponse>;
|
||||
): Promise<api_gateway_pb.GetGatewayMetricsResponse>;
|
||||
|
||||
}
|
||||
|
||||
|
50
api/grpc-web/api/gateway_grpc_web_pb.js
vendored
50
api/grpc-web/api/gateway_grpc_web_pb.js
vendored
@ -559,80 +559,80 @@ proto.api.GatewayServicePromiseClient.prototype.generateClientCertificate =
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.api.GetGatewayStatsRequest,
|
||||
* !proto.api.GetGatewayStatsResponse>}
|
||||
* !proto.api.GetGatewayMetricsRequest,
|
||||
* !proto.api.GetGatewayMetricsResponse>}
|
||||
*/
|
||||
const methodDescriptor_GatewayService_GetStats = new grpc.web.MethodDescriptor(
|
||||
'/api.GatewayService/GetStats',
|
||||
const methodDescriptor_GatewayService_GetMetrics = new grpc.web.MethodDescriptor(
|
||||
'/api.GatewayService/GetMetrics',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.api.GetGatewayStatsRequest,
|
||||
proto.api.GetGatewayStatsResponse,
|
||||
proto.api.GetGatewayMetricsRequest,
|
||||
proto.api.GetGatewayMetricsResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetGatewayStatsRequest} request
|
||||
* @param {!proto.api.GetGatewayMetricsRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetGatewayStatsResponse.deserializeBinary
|
||||
proto.api.GetGatewayMetricsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
||||
* !proto.api.GetGatewayStatsRequest,
|
||||
* !proto.api.GetGatewayStatsResponse>}
|
||||
* !proto.api.GetGatewayMetricsRequest,
|
||||
* !proto.api.GetGatewayMetricsResponse>}
|
||||
*/
|
||||
const methodInfo_GatewayService_GetStats = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GetGatewayStatsResponse,
|
||||
const methodInfo_GatewayService_GetMetrics = new grpc.web.AbstractClientBase.MethodInfo(
|
||||
proto.api.GetGatewayMetricsResponse,
|
||||
/**
|
||||
* @param {!proto.api.GetGatewayStatsRequest} request
|
||||
* @param {!proto.api.GetGatewayMetricsRequest} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.api.GetGatewayStatsResponse.deserializeBinary
|
||||
proto.api.GetGatewayMetricsResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetGatewayStatsRequest} request The
|
||||
* @param {!proto.api.GetGatewayMetricsRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GetGatewayStatsResponse)}
|
||||
* @param {function(?grpc.web.Error, ?proto.api.GetGatewayMetricsResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GetGatewayStatsResponse>|undefined}
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.api.GetGatewayMetricsResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.api.GatewayServiceClient.prototype.getStats =
|
||||
proto.api.GatewayServiceClient.prototype.getMetrics =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/api.GatewayService/GetStats',
|
||||
'/api.GatewayService/GetMetrics',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_GetStats,
|
||||
methodDescriptor_GatewayService_GetMetrics,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.api.GetGatewayStatsRequest} request The
|
||||
* @param {!proto.api.GetGatewayMetricsRequest} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.api.GetGatewayStatsResponse>}
|
||||
* @return {!Promise<!proto.api.GetGatewayMetricsResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.api.GatewayServicePromiseClient.prototype.getStats =
|
||||
proto.api.GatewayServicePromiseClient.prototype.getMetrics =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/api.GatewayService/GetStats',
|
||||
'/api.GatewayService/GetMetrics',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_GatewayService_GetStats);
|
||||
methodDescriptor_GatewayService_GetMetrics);
|
||||
};
|
||||
|
||||
|
||||
|
136
api/grpc-web/api/gateway_pb.d.ts
vendored
136
api/grpc-web/api/gateway_pb.d.ts
vendored
@ -325,101 +325,93 @@ export namespace GenerateGatewayClientCertificateResponse {
|
||||
}
|
||||
}
|
||||
|
||||
export class GetGatewayStatsRequest extends jspb.Message {
|
||||
export class GetGatewayMetricsRequest extends jspb.Message {
|
||||
getGatewayId(): string;
|
||||
setGatewayId(value: string): GetGatewayStatsRequest;
|
||||
setGatewayId(value: string): GetGatewayMetricsRequest;
|
||||
|
||||
getStart(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setStart(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayStatsRequest;
|
||||
setStart(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayMetricsRequest;
|
||||
hasStart(): boolean;
|
||||
clearStart(): GetGatewayStatsRequest;
|
||||
clearStart(): GetGatewayMetricsRequest;
|
||||
|
||||
getEnd(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setEnd(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayStatsRequest;
|
||||
setEnd(value?: google_protobuf_timestamp_pb.Timestamp): GetGatewayMetricsRequest;
|
||||
hasEnd(): boolean;
|
||||
clearEnd(): GetGatewayStatsRequest;
|
||||
clearEnd(): GetGatewayMetricsRequest;
|
||||
|
||||
getAggregation(): common_common_pb.Aggregation;
|
||||
setAggregation(value: common_common_pb.Aggregation): GetGatewayMetricsRequest;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetGatewayStatsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetGatewayStatsRequest): GetGatewayStatsRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetGatewayStatsRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetGatewayStatsRequest;
|
||||
static deserializeBinaryFromReader(message: GetGatewayStatsRequest, reader: jspb.BinaryReader): GetGatewayStatsRequest;
|
||||
toObject(includeInstance?: boolean): GetGatewayMetricsRequest.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetGatewayMetricsRequest): GetGatewayMetricsRequest.AsObject;
|
||||
static serializeBinaryToWriter(message: GetGatewayMetricsRequest, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetGatewayMetricsRequest;
|
||||
static deserializeBinaryFromReader(message: GetGatewayMetricsRequest, reader: jspb.BinaryReader): GetGatewayMetricsRequest;
|
||||
}
|
||||
|
||||
export namespace GetGatewayStatsRequest {
|
||||
export namespace GetGatewayMetricsRequest {
|
||||
export type AsObject = {
|
||||
gatewayId: string,
|
||||
start?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
end?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
aggregation: common_common_pb.Aggregation,
|
||||
}
|
||||
}
|
||||
|
||||
export class GetGatewayStatsResponse extends jspb.Message {
|
||||
getResultList(): Array<GatewayStats>;
|
||||
setResultList(value: Array<GatewayStats>): GetGatewayStatsResponse;
|
||||
clearResultList(): GetGatewayStatsResponse;
|
||||
addResult(value?: GatewayStats, index?: number): GatewayStats;
|
||||
export class GetGatewayMetricsResponse extends jspb.Message {
|
||||
getRxPackets(): common_common_pb.Metric | undefined;
|
||||
setRxPackets(value?: common_common_pb.Metric): GetGatewayMetricsResponse;
|
||||
hasRxPackets(): boolean;
|
||||
clearRxPackets(): GetGatewayMetricsResponse;
|
||||
|
||||
getTxPackets(): common_common_pb.Metric | undefined;
|
||||
setTxPackets(value?: common_common_pb.Metric): GetGatewayMetricsResponse;
|
||||
hasTxPackets(): boolean;
|
||||
clearTxPackets(): GetGatewayMetricsResponse;
|
||||
|
||||
getTxPacketsPerFreq(): common_common_pb.Metric | undefined;
|
||||
setTxPacketsPerFreq(value?: common_common_pb.Metric): GetGatewayMetricsResponse;
|
||||
hasTxPacketsPerFreq(): boolean;
|
||||
clearTxPacketsPerFreq(): GetGatewayMetricsResponse;
|
||||
|
||||
getRxPacketsPerFreq(): common_common_pb.Metric | undefined;
|
||||
setRxPacketsPerFreq(value?: common_common_pb.Metric): GetGatewayMetricsResponse;
|
||||
hasRxPacketsPerFreq(): boolean;
|
||||
clearRxPacketsPerFreq(): GetGatewayMetricsResponse;
|
||||
|
||||
getTxPacketsPerDr(): common_common_pb.Metric | undefined;
|
||||
setTxPacketsPerDr(value?: common_common_pb.Metric): GetGatewayMetricsResponse;
|
||||
hasTxPacketsPerDr(): boolean;
|
||||
clearTxPacketsPerDr(): GetGatewayMetricsResponse;
|
||||
|
||||
getRxPacketsPerDr(): common_common_pb.Metric | undefined;
|
||||
setRxPacketsPerDr(value?: common_common_pb.Metric): GetGatewayMetricsResponse;
|
||||
hasRxPacketsPerDr(): boolean;
|
||||
clearRxPacketsPerDr(): GetGatewayMetricsResponse;
|
||||
|
||||
getTxPacketsPerStatus(): common_common_pb.Metric | undefined;
|
||||
setTxPacketsPerStatus(value?: common_common_pb.Metric): GetGatewayMetricsResponse;
|
||||
hasTxPacketsPerStatus(): boolean;
|
||||
clearTxPacketsPerStatus(): GetGatewayMetricsResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetGatewayStatsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetGatewayStatsResponse): GetGatewayStatsResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetGatewayStatsResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetGatewayStatsResponse;
|
||||
static deserializeBinaryFromReader(message: GetGatewayStatsResponse, reader: jspb.BinaryReader): GetGatewayStatsResponse;
|
||||
toObject(includeInstance?: boolean): GetGatewayMetricsResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetGatewayMetricsResponse): GetGatewayMetricsResponse.AsObject;
|
||||
static serializeBinaryToWriter(message: GetGatewayMetricsResponse, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GetGatewayMetricsResponse;
|
||||
static deserializeBinaryFromReader(message: GetGatewayMetricsResponse, reader: jspb.BinaryReader): GetGatewayMetricsResponse;
|
||||
}
|
||||
|
||||
export namespace GetGatewayStatsResponse {
|
||||
export namespace GetGatewayMetricsResponse {
|
||||
export type AsObject = {
|
||||
resultList: Array<GatewayStats.AsObject>,
|
||||
}
|
||||
}
|
||||
|
||||
export class GatewayStats extends jspb.Message {
|
||||
getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
||||
setTime(value?: google_protobuf_timestamp_pb.Timestamp): GatewayStats;
|
||||
hasTime(): boolean;
|
||||
clearTime(): GatewayStats;
|
||||
|
||||
getRxPackets(): number;
|
||||
setRxPackets(value: number): GatewayStats;
|
||||
|
||||
getTxPackets(): number;
|
||||
setTxPackets(value: number): GatewayStats;
|
||||
|
||||
getTxPacketsPerFrequencyMap(): jspb.Map<number, number>;
|
||||
clearTxPacketsPerFrequencyMap(): GatewayStats;
|
||||
|
||||
getRxPacketsPerFrequencyMap(): jspb.Map<number, number>;
|
||||
clearRxPacketsPerFrequencyMap(): GatewayStats;
|
||||
|
||||
getTxPacketsPerDrMap(): jspb.Map<number, number>;
|
||||
clearTxPacketsPerDrMap(): GatewayStats;
|
||||
|
||||
getRxPacketsPerDrMap(): jspb.Map<number, number>;
|
||||
clearRxPacketsPerDrMap(): GatewayStats;
|
||||
|
||||
getTxPacketsPerStatusMap(): jspb.Map<string, number>;
|
||||
clearTxPacketsPerStatusMap(): GatewayStats;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GatewayStats.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GatewayStats): GatewayStats.AsObject;
|
||||
static serializeBinaryToWriter(message: GatewayStats, writer: jspb.BinaryWriter): void;
|
||||
static deserializeBinary(bytes: Uint8Array): GatewayStats;
|
||||
static deserializeBinaryFromReader(message: GatewayStats, reader: jspb.BinaryReader): GatewayStats;
|
||||
}
|
||||
|
||||
export namespace GatewayStats {
|
||||
export type AsObject = {
|
||||
time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
rxPackets: number,
|
||||
txPackets: number,
|
||||
txPacketsPerFrequencyMap: Array<[number, number]>,
|
||||
rxPacketsPerFrequencyMap: Array<[number, number]>,
|
||||
txPacketsPerDrMap: Array<[number, number]>,
|
||||
rxPacketsPerDrMap: Array<[number, number]>,
|
||||
txPacketsPerStatusMap: Array<[string, number]>,
|
||||
rxPackets?: common_common_pb.Metric.AsObject,
|
||||
txPackets?: common_common_pb.Metric.AsObject,
|
||||
txPacketsPerFreq?: common_common_pb.Metric.AsObject,
|
||||
rxPacketsPerFreq?: common_common_pb.Metric.AsObject,
|
||||
txPacketsPerDr?: common_common_pb.Metric.AsObject,
|
||||
rxPacketsPerDr?: common_common_pb.Metric.AsObject,
|
||||
txPacketsPerStatus?: common_common_pb.Metric.AsObject,
|
||||
}
|
||||
}
|
||||
|
||||
|
735
api/grpc-web/api/gateway_pb.js
vendored
735
api/grpc-web/api/gateway_pb.js
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user