UNPKG

1.22 kBTypeScriptView Raw
1import { AnalyticsProvider } from '../types';
2export declare class AWSKinesisProvider implements AnalyticsProvider {
3 protected _config: any;
4 private _kinesis;
5 private _buffer;
6 private _timer;
7 constructor(config?: any);
8 private _setupTimer;
9 /**
10 * get the category of the plugin
11 */
12 getCategory(): string;
13 /**
14 * get provider name of the plugin
15 */
16 getProviderName(): string;
17 /**
18 * configure the plugin
19 * @param {Object} config - configuration
20 */
21 configure(config: any): object;
22 /**
23 * record an event
24 * @param {Object} params - the params of an event
25 */
26 record(params: any): Promise<boolean>;
27 updateEndpoint(): Promise<boolean>;
28 /**
29 * @private
30 * @param params - params for the event recording
31 * Put events into buffer
32 */
33 private _putToBuffer;
34 private _sendFromBuffer;
35 protected _sendEvents(group: any): boolean;
36 protected _init(config: any, credentials: any): boolean;
37 private _initKinesis;
38 /**
39 * @private
40 * check if current credentials exists
41 */
42 private _getCredentials;
43}
44/**
45 * @deprecated use named import
46 */
47export default AWSKinesisProvider;