Class: ExternalStorageMetrics
Metrics for a set of external payload storage operations (all uploads and downloads) performed while processing a task, so core can emit unified logging and metrics.
Properties
driverNames
driverNames:
string[]
Names of the drivers that participated in the operations.
payloadCount
payloadCount:
Long
Number of payloads stored or retrieved externally.
totalDuration?
optionaltotalDuration?:$Properties|null
Wall-clock time spent on the external storage operations.
totalSizeBytes
totalSizeBytes:
Long
Total size in bytes of the externally stored or retrieved payloads.
Methods
toJSON()
toJSON():
object
Converts this ExternalStorageMetrics to JSON.
Returns
object
JSON object
create()
Call Signature
staticcreate(properties?):ExternalStorageMetrics&$Properties
Creates a new ExternalStorageMetrics instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ExternalStorageMetrics & $Properties
ExternalStorageMetrics instance
Call Signature
staticcreate(properties?):ExternalStorageMetrics
Creates a new ExternalStorageMetrics instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ExternalStorageMetrics
ExternalStorageMetrics instance
decode()
staticdecode(reader,length?):ExternalStorageMetrics&$Properties
Decodes an ExternalStorageMetrics message from the specified reader or buffer.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
length?
number
Message length if known beforehand
Returns
ExternalStorageMetrics & $Properties
ExternalStorageMetrics
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
staticdecodeDelimited(reader):ExternalStorageMetrics&$Properties
Decodes an ExternalStorageMetrics message from the specified reader or buffer, length delimited.
Parameters
reader
Uint8Array<ArrayBufferLike> | Reader
Reader or buffer to decode from
Returns
ExternalStorageMetrics & $Properties
ExternalStorageMetrics
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode()
staticencode(message,writer?):Writer
Encodes the specified ExternalStorageMetrics message. Does not implicitly coresdk.common.ExternalStorageMetrics.verify|verify messages.
Parameters
message
ExternalStorageMetrics message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
encodeDelimited()
staticencodeDelimited(message,writer?):Writer
Encodes the specified ExternalStorageMetrics message, length delimited. Does not implicitly coresdk.common.ExternalStorageMetrics.verify|verify messages.
Parameters
message
ExternalStorageMetrics message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
staticfromObject(object):ExternalStorageMetrics
Creates an ExternalStorageMetrics message from a plain object. Also converts values to their respective internal types.
Parameters
object
{[k: string]: any; }
Plain object
Returns
ExternalStorageMetrics
ExternalStorageMetrics
toObject()
statictoObject(message,options?):object
Creates a plain object from an ExternalStorageMetrics message. Also converts values to other types if specified.
Parameters
message
ExternalStorageMetrics
ExternalStorageMetrics
options?
IConversionOptions
Conversion options
Returns
object
Plain object