次の方法で共有


ReviewsExtensions.CreateJobAsync メソッド

定義

このエンドポイントに投稿されたコンテンツのジョブ ID が返されます。

ワークフローに対してコンテンツが評価されると、ワークフロー式に基づいてレビューが作成または無視されます。

<h3>CallBack スキーマ </h3>

<p><h4>Job Completion CallBack Sample</h4><br/>

{<br/> "JobId": "<Job Id,br></> "ReviewId": "<Review Id, ジョブによってレビューが作成>された場合、<br/> "WorkFlowId": "default",<br/> "Status": "<This will be one of Complete, InProgress, Error>",<br/> "ContentType": "Image",<br/> "ContentId": "<This is the ContentId that specified on input>",<br/> "CallBackType": "Job",<br/> "Metadata": {<br/> "adultscore": "0.xxx",<br/> "a": "False",<br/> "racyscore": "0.xxx",<br/> "r": "True"<br/ }<br/>> }<br/>

</p><p><h4>Review Completion CallBack Sample</h4><br/>

{ "ReviewId": "<Review Id>",<br/> "ModifiedOn": "2016-10-11T22:36:32.9934851Z",<br/> "ModifiedBy": "<Name of the Reviewer>",<br/> "CallBackType": "Review",<br/> "ContentId": "<The ContentId that specified input>",<br/> "Metadata": {<br/> "adultscore": "0.xxx", "a": "False",<br/> "racyscore": "0.xxx",<br/> "r": "True"<br/> },<br/> "ReviewerResultTags": {<br/> "a": "False",<br/> "r": "True"<br/> }<br/> }<br/>

</p>.

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.JobId> CreateJobAsync (this Microsoft.Azure.CognitiveServices.ContentModerator.IReviews operations, string teamName, string contentType, string contentId, string workflowName, string jobContentType, Microsoft.Azure.CognitiveServices.ContentModerator.Models.Content content, string callBackEndpoint = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateJobAsync : Microsoft.Azure.CognitiveServices.ContentModerator.IReviews * string * string * string * string * string * Microsoft.Azure.CognitiveServices.ContentModerator.Models.Content * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.JobId>
<Extension()>
Public Function CreateJobAsync (operations As IReviews, teamName As String, contentType As String, contentId As String, workflowName As String, jobContentType As String, content As Content, Optional callBackEndpoint As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of JobId)

パラメーター

operations
IReviews

この拡張メソッドの操作グループ。

teamName
String

チーム名。

contentType
String

画像、テキスト、またはビデオ。 使用可能な値は、'Image'、'Text'、'Video' です。

contentId
String

送信されたコンテンツを識別するための ID/名前。

workflowName
String

呼び出すワークフロー名。

jobContentType
String

コンテンツの種類。 使用できる値は、'application/json'、'image/jpeg' です。

content
Content

評価するコンテンツ。

callBackEndpoint
String

作成ジョブの結果を投稿するためのコールバック エンドポイント。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象