Class ReportRecordContractInner
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.ReportRecordContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ReportRecordContractInner>
public final class ReportRecordContractInner
extends Object
implements com.azure.json.JsonSerializable<ReportRecordContractInner>
Report data.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ReportRecordContractInner class. -
Method Summary
Modifier and TypeMethodDescriptionapiId()Get the apiId property: API identifier path.Get the apiRegion property: API region identifier.Get the apiTimeAvg property: Average time it took to process request.Get the apiTimeMax property: Maximum time it took to process request.Get the apiTimeMin property: Minimum time it took to process request.Get the bandwidth property: Bandwidth consumed.Get the cacheHitCount property: Number of times when content was served from cache policy.Get the cacheMissCount property: Number of times content was fetched from backend.Get the callCountBlocked property: Number of calls blocked due to invalid credentials.Get the callCountFailed property: Number of calls failed due to gateway or backend errors.Get the callCountOther property: Number of other calls.Get the callCountSuccess property: Number of successful calls.Get the callCountTotal property: Total number of calls.country()Get the country property: Country to which this record data is related.static ReportRecordContractInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ReportRecordContractInner from the JsonReader.interval()Get the interval property: Length of aggregation period.name()Get the name property: Name depending on report endpoint specifies product, API, operation or developer name.Get the operationId property: Operation identifier path.Get the productId property: Product identifier path.region()Get the region property: Country region to which this record data is related.Get the serviceTimeAvg property: Average time it took to process request on backend.Get the serviceTimeMax property: Maximum time it took to process request on backend.Get the serviceTimeMin property: Minimum time it took to process request on backend.Get the subscriptionId property: Subscription identifier path.Get the timestamp property: Start of aggregation period.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) userId()Get the userId property: User identifier path.voidvalidate()Validates the instance.Set the apiId property: API identifier path.withApiRegion(String apiRegion) Set the apiRegion property: API region identifier.withApiTimeAvg(Double apiTimeAvg) Set the apiTimeAvg property: Average time it took to process request.withApiTimeMax(Double apiTimeMax) Set the apiTimeMax property: Maximum time it took to process request.withApiTimeMin(Double apiTimeMin) Set the apiTimeMin property: Minimum time it took to process request.withBandwidth(Long bandwidth) Set the bandwidth property: Bandwidth consumed.withCacheHitCount(Integer cacheHitCount) Set the cacheHitCount property: Number of times when content was served from cache policy.withCacheMissCount(Integer cacheMissCount) Set the cacheMissCount property: Number of times content was fetched from backend.withCallCountBlocked(Integer callCountBlocked) Set the callCountBlocked property: Number of calls blocked due to invalid credentials.withCallCountFailed(Integer callCountFailed) Set the callCountFailed property: Number of calls failed due to gateway or backend errors.withCallCountOther(Integer callCountOther) Set the callCountOther property: Number of other calls.withCallCountSuccess(Integer callCountSuccess) Set the callCountSuccess property: Number of successful calls.withCallCountTotal(Integer callCountTotal) Set the callCountTotal property: Total number of calls.withCountry(String country) Set the country property: Country to which this record data is related.withInterval(String interval) Set the interval property: Length of aggregation period.Set the name property: Name depending on report endpoint specifies product, API, operation or developer name.withOperationId(String operationId) Set the operationId property: Operation identifier path.withRegion(String region) Set the region property: Country region to which this record data is related.withServiceTimeAvg(Double serviceTimeAvg) Set the serviceTimeAvg property: Average time it took to process request on backend.withServiceTimeMax(Double serviceTimeMax) Set the serviceTimeMax property: Maximum time it took to process request on backend.withServiceTimeMin(Double serviceTimeMin) Set the serviceTimeMin property: Minimum time it took to process request on backend.withSubscriptionId(String subscriptionId) Set the subscriptionId property: Subscription identifier path.withTimestamp(OffsetDateTime timestamp) Set the timestamp property: Start of aggregation period.Set the zip property: Zip code to which this record data is related.zip()Get the zip property: Zip code to which this record data is related.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ReportRecordContractInner
public ReportRecordContractInner()Creates an instance of ReportRecordContractInner class.
-
-
Method Details
-
name
Get the name property: Name depending on report endpoint specifies product, API, operation or developer name.- Returns:
- the name value.
-
withName
Set the name property: Name depending on report endpoint specifies product, API, operation or developer name.- Parameters:
name- the name value to set.- Returns:
- the ReportRecordContractInner object itself.
-
timestamp
Get the timestamp property: Start of aggregation period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Returns:
- the timestamp value.
-
withTimestamp
Set the timestamp property: Start of aggregation period. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Parameters:
timestamp- the timestamp value to set.- Returns:
- the ReportRecordContractInner object itself.
-
interval
Get the interval property: Length of aggregation period. Interval must be multiple of 15 minutes and may not be zero. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).- Returns:
- the interval value.
-
withInterval
Set the interval property: Length of aggregation period. Interval must be multiple of 15 minutes and may not be zero. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).- Parameters:
interval- the interval value to set.- Returns:
- the ReportRecordContractInner object itself.
-
country
Get the country property: Country to which this record data is related.- Returns:
- the country value.
-
withCountry
Set the country property: Country to which this record data is related.- Parameters:
country- the country value to set.- Returns:
- the ReportRecordContractInner object itself.
-
region
Get the region property: Country region to which this record data is related.- Returns:
- the region value.
-
withRegion
Set the region property: Country region to which this record data is related.- Parameters:
region- the region value to set.- Returns:
- the ReportRecordContractInner object itself.
-
zip
Get the zip property: Zip code to which this record data is related.- Returns:
- the zip value.
-
withZip
Set the zip property: Zip code to which this record data is related.- Parameters:
zip- the zip value to set.- Returns:
- the ReportRecordContractInner object itself.
-
userId
Get the userId property: User identifier path. /users/{userId}.- Returns:
- the userId value.
-
productId
Get the productId property: Product identifier path. /products/{productId}.- Returns:
- the productId value.
-
apiId
Get the apiId property: API identifier path. /apis/{apiId}.- Returns:
- the apiId value.
-
withApiId
Set the apiId property: API identifier path. /apis/{apiId}.- Parameters:
apiId- the apiId value to set.- Returns:
- the ReportRecordContractInner object itself.
-
operationId
Get the operationId property: Operation identifier path. /apis/{apiId}/operations/{operationId}.- Returns:
- the operationId value.
-
withOperationId
Set the operationId property: Operation identifier path. /apis/{apiId}/operations/{operationId}.- Parameters:
operationId- the operationId value to set.- Returns:
- the ReportRecordContractInner object itself.
-
apiRegion
Get the apiRegion property: API region identifier.- Returns:
- the apiRegion value.
-
withApiRegion
Set the apiRegion property: API region identifier.- Parameters:
apiRegion- the apiRegion value to set.- Returns:
- the ReportRecordContractInner object itself.
-
subscriptionId
Get the subscriptionId property: Subscription identifier path. /subscriptions/{subscriptionId}.- Returns:
- the subscriptionId value.
-
withSubscriptionId
Set the subscriptionId property: Subscription identifier path. /subscriptions/{subscriptionId}.- Parameters:
subscriptionId- the subscriptionId value to set.- Returns:
- the ReportRecordContractInner object itself.
-
callCountSuccess
Get the callCountSuccess property: Number of successful calls. This includes calls returning HttpStatusCode <= 301 and HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect.- Returns:
- the callCountSuccess value.
-
withCallCountSuccess
Set the callCountSuccess property: Number of successful calls. This includes calls returning HttpStatusCode <= 301 and HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect.- Parameters:
callCountSuccess- the callCountSuccess value to set.- Returns:
- the ReportRecordContractInner object itself.
-
callCountBlocked
Get the callCountBlocked property: Number of calls blocked due to invalid credentials. This includes calls returning HttpStatusCode.Unauthorized and HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests.- Returns:
- the callCountBlocked value.
-
withCallCountBlocked
Set the callCountBlocked property: Number of calls blocked due to invalid credentials. This includes calls returning HttpStatusCode.Unauthorized and HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests.- Parameters:
callCountBlocked- the callCountBlocked value to set.- Returns:
- the ReportRecordContractInner object itself.
-
callCountFailed
Get the callCountFailed property: Number of calls failed due to gateway or backend errors. This includes calls returning HttpStatusCode.BadRequest(400) and any Code between HttpStatusCode.InternalServerError (500) and 600.- Returns:
- the callCountFailed value.
-
withCallCountFailed
Set the callCountFailed property: Number of calls failed due to gateway or backend errors. This includes calls returning HttpStatusCode.BadRequest(400) and any Code between HttpStatusCode.InternalServerError (500) and 600.- Parameters:
callCountFailed- the callCountFailed value to set.- Returns:
- the ReportRecordContractInner object itself.
-
callCountOther
Get the callCountOther property: Number of other calls.- Returns:
- the callCountOther value.
-
withCallCountOther
Set the callCountOther property: Number of other calls.- Parameters:
callCountOther- the callCountOther value to set.- Returns:
- the ReportRecordContractInner object itself.
-
callCountTotal
Get the callCountTotal property: Total number of calls.- Returns:
- the callCountTotal value.
-
withCallCountTotal
Set the callCountTotal property: Total number of calls.- Parameters:
callCountTotal- the callCountTotal value to set.- Returns:
- the ReportRecordContractInner object itself.
-
bandwidth
Get the bandwidth property: Bandwidth consumed.- Returns:
- the bandwidth value.
-
withBandwidth
Set the bandwidth property: Bandwidth consumed.- Parameters:
bandwidth- the bandwidth value to set.- Returns:
- the ReportRecordContractInner object itself.
-
cacheHitCount
Get the cacheHitCount property: Number of times when content was served from cache policy.- Returns:
- the cacheHitCount value.
-
withCacheHitCount
Set the cacheHitCount property: Number of times when content was served from cache policy.- Parameters:
cacheHitCount- the cacheHitCount value to set.- Returns:
- the ReportRecordContractInner object itself.
-
cacheMissCount
Get the cacheMissCount property: Number of times content was fetched from backend.- Returns:
- the cacheMissCount value.
-
withCacheMissCount
Set the cacheMissCount property: Number of times content was fetched from backend.- Parameters:
cacheMissCount- the cacheMissCount value to set.- Returns:
- the ReportRecordContractInner object itself.
-
apiTimeAvg
Get the apiTimeAvg property: Average time it took to process request.- Returns:
- the apiTimeAvg value.
-
withApiTimeAvg
Set the apiTimeAvg property: Average time it took to process request.- Parameters:
apiTimeAvg- the apiTimeAvg value to set.- Returns:
- the ReportRecordContractInner object itself.
-
apiTimeMin
Get the apiTimeMin property: Minimum time it took to process request.- Returns:
- the apiTimeMin value.
-
withApiTimeMin
Set the apiTimeMin property: Minimum time it took to process request.- Parameters:
apiTimeMin- the apiTimeMin value to set.- Returns:
- the ReportRecordContractInner object itself.
-
apiTimeMax
Get the apiTimeMax property: Maximum time it took to process request.- Returns:
- the apiTimeMax value.
-
withApiTimeMax
Set the apiTimeMax property: Maximum time it took to process request.- Parameters:
apiTimeMax- the apiTimeMax value to set.- Returns:
- the ReportRecordContractInner object itself.
-
serviceTimeAvg
Get the serviceTimeAvg property: Average time it took to process request on backend.- Returns:
- the serviceTimeAvg value.
-
withServiceTimeAvg
Set the serviceTimeAvg property: Average time it took to process request on backend.- Parameters:
serviceTimeAvg- the serviceTimeAvg value to set.- Returns:
- the ReportRecordContractInner object itself.
-
serviceTimeMin
Get the serviceTimeMin property: Minimum time it took to process request on backend.- Returns:
- the serviceTimeMin value.
-
withServiceTimeMin
Set the serviceTimeMin property: Minimum time it took to process request on backend.- Parameters:
serviceTimeMin- the serviceTimeMin value to set.- Returns:
- the ReportRecordContractInner object itself.
-
serviceTimeMax
Get the serviceTimeMax property: Maximum time it took to process request on backend.- Returns:
- the serviceTimeMax value.
-
withServiceTimeMax
Set the serviceTimeMax property: Maximum time it took to process request on backend.- Parameters:
serviceTimeMax- the serviceTimeMax value to set.- Returns:
- the ReportRecordContractInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ReportRecordContractInner>- Throws:
IOException
-
fromJson
public static ReportRecordContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ReportRecordContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ReportRecordContractInner 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 ReportRecordContractInner.
-