Package com.exoscale.sdk.model
Class IngestMeteringRequest
java.lang.Object
com.exoscale.sdk.model.IngestMeteringRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class IngestMeteringRequest
extends Object
Router flush payload: the router's full in-memory usage map with flush identity fields
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this ingest-metering-request object is equal to o.UUID identifying this flush; used for idempotent deduplicationRouter instance identifier that produced this flushISO-8601 UTC timestamp when the flush snapshot was created (truncated to minute boundary for bucketing)getUsage()Map of api-key-uuid to usage entry.inthashCode()putUsageItem(String key, ApiKeyUsageEntry usageItem) voidsetFlushId(UUID flushId) voidsetRouterId(String routerId) voidsetTimestamp(OffsetDateTime timestamp) voidsetUsage(Map<String, ApiKeyUsageEntry> usage) timestamp(OffsetDateTime timestamp) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.usage(Map<String, ApiKeyUsageEntry> usage)
-
Field Details
-
JSON_PROPERTY_FLUSH_ID
- See Also:
-
JSON_PROPERTY_USAGE
- See Also:
-
JSON_PROPERTY_TIMESTAMP
- See Also:
-
JSON_PROPERTY_ROUTER_ID
- See Also:
-
-
Constructor Details
-
IngestMeteringRequest
public IngestMeteringRequest()
-
-
Method Details
-
flushId
-
getFlushId
UUID identifying this flush; used for idempotent deduplication- Returns:
- flushId
-
setFlushId
-
usage
-
putUsageItem
-
getUsage
Map of api-key-uuid to usage entry. Keys are API key UUIDs. Mirrors the router's in-memory accumulator structure directly.- Returns:
- usage
-
setUsage
-
timestamp
-
getTimestamp
ISO-8601 UTC timestamp when the flush snapshot was created (truncated to minute boundary for bucketing)- Returns:
- timestamp
-
setTimestamp
-
routerId
-
getRouterId
Router instance identifier that produced this flush- Returns:
- routerId
-
setRouterId
-
equals
Return true if this ingest-metering-request object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-