SlowRequestsBasedTrigger Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.SlowRequestsBasedTrigger

Implements

public final class SlowRequestsBasedTrigger
implements JsonSerializable<SlowRequestsBasedTrigger>

Trigger based on request execution time.

Constructor Summary

Constructor Description
SlowRequestsBasedTrigger()

Creates an instance of SlowRequestsBasedTrigger class.

Method Summary

Modifier and Type Method and Description
Integer count()

Get the count property: Request Count.

static SlowRequestsBasedTrigger fromJson(JsonReader jsonReader)

Reads an instance of SlowRequestsBasedTrigger from the JsonReader.

String path()

Get the path property: Request Path.

String timeInterval()

Get the timeInterval property: Time interval.

String timeTaken()

Get the timeTaken property: Time taken.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SlowRequestsBasedTrigger withCount(Integer count)

Set the count property: Request Count.

SlowRequestsBasedTrigger withPath(String path)

Set the path property: Request Path.

SlowRequestsBasedTrigger withTimeInterval(String timeInterval)

Set the timeInterval property: Time interval.

SlowRequestsBasedTrigger withTimeTaken(String timeTaken)

Set the timeTaken property: Time taken.

Methods inherited from java.lang.Object

Constructor Details

SlowRequestsBasedTrigger

public SlowRequestsBasedTrigger()

Creates an instance of SlowRequestsBasedTrigger class.

Method Details

count

public Integer count()

Get the count property: Request Count.

Returns:

the count value.

fromJson

public static SlowRequestsBasedTrigger fromJson(JsonReader jsonReader)

Reads an instance of SlowRequestsBasedTrigger from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the SlowRequestsBasedTrigger.

path

public String path()

Get the path property: Request Path.

Returns:

the path value.

timeInterval

public String timeInterval()

Get the timeInterval property: Time interval.

Returns:

the timeInterval value.

timeTaken

public String timeTaken()

Get the timeTaken property: Time taken.

Returns:

the timeTaken value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCount

public SlowRequestsBasedTrigger withCount(Integer count)

Set the count property: Request Count.

Parameters:

count - the count value to set.

Returns:

the SlowRequestsBasedTrigger object itself.

withPath

public SlowRequestsBasedTrigger withPath(String path)

Set the path property: Request Path.

Parameters:

path - the path value to set.

Returns:

the SlowRequestsBasedTrigger object itself.

withTimeInterval

public SlowRequestsBasedTrigger withTimeInterval(String timeInterval)

Set the timeInterval property: Time interval.

Parameters:

timeInterval - the timeInterval value to set.

Returns:

the SlowRequestsBasedTrigger object itself.

withTimeTaken

public SlowRequestsBasedTrigger withTimeTaken(String timeTaken)

Set the timeTaken property: Time taken.

Parameters:

timeTaken - the timeTaken value to set.

Returns:

the SlowRequestsBasedTrigger object itself.

Applies to