(options: {
endpoint: string;
machineId: string;
apiSecret: string;
clusterId: string;
tools: ToolRegistrationInput<any>[];
})
| 29 | private retryAfter = DEFAULT_RETRY_AFTER_SECONDS; |
| 30 | |
| 31 | constructor(options: { |
| 32 | endpoint: string; |
| 33 | machineId: string; |
| 34 | apiSecret: string; |
| 35 | clusterId: string; |
| 36 | tools: ToolRegistrationInput<any>[]; |
| 37 | }) { |
| 38 | this.client = createApiClient({ |
| 39 | baseUrl: options.endpoint, |
| 40 | machineId: options.machineId, |
| 41 | apiSecret: options.apiSecret, |
| 42 | }); |
| 43 | |
| 44 | this.tools = options.tools; |
| 45 | |
| 46 | this.clusterId = options.clusterId; |
| 47 | } |
| 48 | |
| 49 | public async start() { |
| 50 | log("Starting polling agent"); |
nothing calls this directly
no test coverage detected