AzureFunctionReceiver Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.AzureFunctionReceiver

Implements

public final class AzureFunctionReceiver
implements JsonSerializable<AzureFunctionReceiver>

An azure function receiver.

Constructor Summary

Constructor Description
AzureFunctionReceiver()

Creates an instance of AzureFunctionReceiver class.

Method Summary

Modifier and Type Method and Description
static AzureFunctionReceiver fromJson(JsonReader jsonReader)

Reads an instance of AzureFunctionReceiver from the JsonReader.

String functionAppResourceId()

Get the functionAppResourceId property: The azure resource id of the function app.

String functionName()

Get the functionName property: The function name in the function app.

String httpTriggerUrl()

Get the httpTriggerUrl property: The http trigger url where http request sent to.

String name()

Get the name property: The name of the azure function receiver.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean useCommonAlertSchema()

Get the useCommonAlertSchema property: Indicates whether to use common alert schema.

void validate()

Validates the instance.

AzureFunctionReceiver withFunctionAppResourceId(String functionAppResourceId)

Set the functionAppResourceId property: The azure resource id of the function app.

AzureFunctionReceiver withFunctionName(String functionName)

Set the functionName property: The function name in the function app.

AzureFunctionReceiver withHttpTriggerUrl(String httpTriggerUrl)

Set the httpTriggerUrl property: The http trigger url where http request sent to.

AzureFunctionReceiver withName(String name)

Set the name property: The name of the azure function receiver.

AzureFunctionReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)

Set the useCommonAlertSchema property: Indicates whether to use common alert schema.

Methods inherited from java.lang.Object

Constructor Details

AzureFunctionReceiver

public AzureFunctionReceiver()

Creates an instance of AzureFunctionReceiver class.

Method Details

fromJson

public static AzureFunctionReceiver fromJson(JsonReader jsonReader)

Reads an instance of AzureFunctionReceiver from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureFunctionReceiver if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

functionAppResourceId

public String functionAppResourceId()

Get the functionAppResourceId property: The azure resource id of the function app.

Returns:

the functionAppResourceId value.

functionName

public String functionName()

Get the functionName property: The function name in the function app.

Returns:

the functionName value.

httpTriggerUrl

public String httpTriggerUrl()

Get the httpTriggerUrl property: The http trigger url where http request sent to.

Returns:

the httpTriggerUrl value.

name

public String name()

Get the name property: The name of the azure function receiver. Names must be unique across all receivers within an action group.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

useCommonAlertSchema

public Boolean useCommonAlertSchema()

Get the useCommonAlertSchema property: Indicates whether to use common alert schema.

Returns:

the useCommonAlertSchema value.

validate

public void validate()

Validates the instance.

withFunctionAppResourceId

public AzureFunctionReceiver withFunctionAppResourceId(String functionAppResourceId)

Set the functionAppResourceId property: The azure resource id of the function app.

Parameters:

functionAppResourceId - the functionAppResourceId value to set.

Returns:

the AzureFunctionReceiver object itself.

withFunctionName

public AzureFunctionReceiver withFunctionName(String functionName)

Set the functionName property: The function name in the function app.

Parameters:

functionName - the functionName value to set.

Returns:

the AzureFunctionReceiver object itself.

withHttpTriggerUrl

public AzureFunctionReceiver withHttpTriggerUrl(String httpTriggerUrl)

Set the httpTriggerUrl property: The http trigger url where http request sent to.

Parameters:

httpTriggerUrl - the httpTriggerUrl value to set.

Returns:

the AzureFunctionReceiver object itself.

withName

public AzureFunctionReceiver withName(String name)

Set the name property: The name of the azure function receiver. Names must be unique across all receivers within an action group.

Parameters:

name - the name value to set.

Returns:

the AzureFunctionReceiver object itself.

withUseCommonAlertSchema

public AzureFunctionReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)

Set the useCommonAlertSchema property: Indicates whether to use common alert schema.

Parameters:

useCommonAlertSchema - the useCommonAlertSchema value to set.

Returns:

the AzureFunctionReceiver object itself.

Applies to