Skip to main content

GetSignal

Returns the signal for the specified job.

import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";

const JobSignalRequest =
cloudApi.loadtesting.agent_job_service.JobSignalRequest;

(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.JobServiceClient);

const result = await client.getSignal(
JobSignalRequest.fromPartial({
// jobId: "jobId"
})
);
console.log(result);
})();

JobSignalRequest

jobId : string

JobSignalResponse

Signal

  • SIGNAL_UNSPECIFIED

  • STOP

  • WAIT

  • RUN_IN

signal : Signal
waitDuration : double

seconds

runIn : double

seconds