@slickteam/nestjs-warp10
Version:
Module for Warp10 with Nestjs
44 lines (43 loc) • 1.83 kB
TypeScript
import { ConfigService } from '@nestjs/config';
import { Warp10 } from '@senx/warp10';
import { DataPoint } from './model/DataPoint';
import { GTS } from './model/GTS';
export declare class Warp10Service {
private configService;
private readonly warp10Url;
private readonly warp10Timeout;
private readonly writeToken;
private readonly readToken;
private readonly logger;
BASE_APP_CLASS_NAME: string;
readonly w10: Warp10;
constructor(configService: ConfigService);
exec(request: string | undefined, withInnerToken?: boolean): Promise<any>;
execWithGtsListResult(request: string | undefined, withInnerToken?: boolean): Promise<GTS[]>;
fetch(readToken: string | undefined, className: string, labels: Record<string, string>, start: string, stop: any, format?: 'text' | 'fulltext' | 'json' | 'tsv' | 'fulltsv' | 'pack' | 'raw' | 'formatted' | undefined, dedup?: boolean | undefined): Promise<{
result: any[];
meta: {
elapsed: number;
ops: number;
fetched: number;
};
}>;
meta(writeToken: string | undefined, meta: {
className: string;
labels: Record<string, string>;
attributes: Record<string, string>;
}[]): Promise<{
response: string;
count: number;
}>;
update(writeToken: string | undefined, dataPoints: (string | DataPoint)[]): Promise<{
response: string | undefined;
count: number;
}>;
delete(writeToken: string | undefined, className: string, labels: Record<string, string>, start: string, end: string, deleteAll?: boolean): Promise<{
result: string;
}>;
deleteByTimestamp(writeToken: string | undefined, className: string, labels: Record<string, string>, timestamp: string): Promise<{
result: string;
}>;
}