alert-service-start
アラート・サービスを開始して、すべてのユーザー・アラートを実行します。この関数の SOAP 名は AlertServiceStart です。
構文
void alert-service-start
パラメーター
- この関数にはパラメーターを使用しません。
例外
- alert-service-start - アラート・サービスの開始時にエラーが発生した場合にスローされます。
認証
ping を除くすべての Watson™ Explorer Engine API 関数と同様に、alert-service-start 関数には認証が必要です。
REST を使用する場合、HTTP または HTTPS を介して単に v.username および v.password を CGI パラメーターとして渡し、alert-service-start 関数への REST 呼び出しを認証することができます。
SOAP API を使用する場合、エンドポイントで資格情報をパラメーターとして渡すか、すべての Watson Explorer Engine 関数でサポートされている認証方式を活用することができます。いずれも、関数の実行に使用されるユーザー名とパスワードを指定するために認証オブジェクトに渡すことができる setAuthentication メソッドを提供します。alert-service-start 関数への SOAP 呼び出しを Java で実行する例は次のとおりです。
Authentication authentication = new Authentication();
authentication.setUsername("joe-user");
authentication.setPassword("joes-password");
AlertServiceStart foo = new AlertServiceStart();
foo.setAuthentication(authentication);
通常、個々のアプリケーション全体で 1 つの認証オブジェクトが再使用されます。