Share via


EventGridOutput インターフェイス

public interface EventGridOutput

EventGridOutput(name = "outputEvent", topicEndpointUri = "MyEventGridTopicUriSetting", topicKeySetting = "MyEventGridTopicKeySetting") OutputBinding<String> outputEvent final ExecutionContext context ) { context.getLogger().info(content); final String eventGridOutputDocument = "{\"id": "100", "eventType":"recordInserted", "subject": "myapp/test/java", "eventTime":"2017-08-10T21:03:07+00:00", "data": {"tag1": "value1","tag2":"value2"}, "dataVersion": "1.0"}"; outputEvent.setValue(eventGridOutputDocument);}

メソッドの概要

修飾子と型 メソッドと説明
String dataType()

Functions ランタイムがパラメーター値をどのように扱うかを定義します。 次のいずれかの値になります。

    <li>
    
      <p>"" or string: treat it as a string whose value is serialized from the parameter </p>
    
    </li>
    
    <li>
    
      <p>binary: treat it as a binary data whose value comes from for example OutputBinding&lt;byte[]&gt; </p>
    
    </li>
    

String name()

function.json で使用される変数名。

String topicEndpointUri()

トピック イベント エンドポイント URI を取得または設定します。 たとえば、 https://topic1.westus2-1.eventgrid.azure.net/api/events これは Event Grid トピックの定義にあります。 トピックの URL を取得する方法については、こちらを参照してください。 https://docs.microsoft.com/en-us/azure/event-grid/custom-event-quickstart#send-an-event-to-your-topic

String topicKeySetting()

トピック キーの設定を取得または設定します。 トピックのキーの取得については、こちらを参照してください。 https://docs.microsoft.com/en-us/azure/event-grid/custom-event-quickstart#send-an-event-to-your-topic

メソッドの詳細

dataType

public String dataType() default ""

Functions ランタイムがパラメーター値をどのように扱うかを定義します。 次のいずれかの値になります。

    <li>
    
      <p>"" or string: treat it as a string whose value is serialized from the parameter </p>
    
    </li>
    
    <li>
    
      <p>binary: treat it as a binary data whose value comes from for example OutputBinding&lt;byte[]&gt; </p>
    
    </li>
    

Returns:

Functions ランタイムによって使用される dataType。

name

public String name()

function.json で使用される変数名。

Returns:

function.json で使用される変数名。

topicEndpointUri

public String topicEndpointUri()

トピック イベント エンドポイント URI を取得または設定します。 たとえば、 https://topic1.westus2-1.eventgrid.azure.net/api/events これは Event Grid トピックの定義にあります。 トピックの URL を取得する方法については、こちらを参照してください。 https://docs.microsoft.com/en-us/azure/event-grid/custom-event-quickstart#send-an-event-to-your-topic

Returns:

eventGrid トピックのトピック イベント エンドポイント URI。

topicKeySetting

public String topicKeySetting()

トピック キーの設定を取得または設定します。 トピックのキーの取得については、こちらを参照してください。 https://docs.microsoft.com/en-us/azure/event-grid/custom-event-quickstart#send-an-event-to-your-topic

Returns:

eventGrid トピックのトピック キー設定。

適用対象