azure-docs-sdk-java/docs-ref-autogen/com.azure.monitor.ingestion...

110 строки
9.3 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.monitor.ingestion.models.LogsUploadOptions"
fullName: "com.azure.monitor.ingestion.models.LogsUploadOptions"
name: "LogsUploadOptions"
nameWithType: "LogsUploadOptions"
summary: "The options model to configure the request to upload logs to Azure Monitor."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **LogsUploadOptions**"
constructors:
- uid: "com.azure.monitor.ingestion.models.LogsUploadOptions.LogsUploadOptions()"
fullName: "com.azure.monitor.ingestion.models.LogsUploadOptions.LogsUploadOptions()"
name: "LogsUploadOptions()"
nameWithType: "LogsUploadOptions.LogsUploadOptions()"
summary: "Creates an instance of <xref uid=\"com.azure.monitor.ingestion.models.LogsUploadOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsUploadOptions\"></xref>."
syntax: "public LogsUploadOptions()"
desc: "Creates an instance of <xref uid=\"com.azure.monitor.ingestion.models.LogsUploadOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsUploadOptions\"></xref>."
methods:
- uid: "com.azure.monitor.ingestion.models.LogsUploadOptions.getLogsUploadErrorConsumer()"
fullName: "com.azure.monitor.ingestion.models.LogsUploadOptions.getLogsUploadErrorConsumer()"
name: "getLogsUploadErrorConsumer()"
nameWithType: "LogsUploadOptions.getLogsUploadErrorConsumer()"
summary: "Returns the error handler that is called when a request to the Azure Monitor service to upload logs fails."
syntax: "public Consumer<LogsUploadError> getLogsUploadErrorConsumer()"
desc: "Returns the error handler that is called when a request to the Azure Monitor service to upload logs fails."
returns:
description: "the error handler that is called when a request to the Azure Monitor service to upload logs fails."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html\">Consumer</a>&lt;<xref href=\"com.azure.monitor.ingestion.models.LogsUploadError?alt=com.azure.monitor.ingestion.models.LogsUploadError&text=LogsUploadError\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.monitor.ingestion.models.LogsUploadOptions.getMaxConcurrency()"
fullName: "com.azure.monitor.ingestion.models.LogsUploadOptions.getMaxConcurrency()"
name: "getMaxConcurrency()"
nameWithType: "LogsUploadOptions.getMaxConcurrency()"
summary: "Returns the max concurrent requests to send to the Azure Monitor service when uploading logs."
syntax: "public Integer getMaxConcurrency()"
desc: "Returns the max concurrent requests to send to the Azure Monitor service when uploading logs."
returns:
description: "the max concurrent requests to send to the Azure Monitor service when uploading logs."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
- uid: "com.azure.monitor.ingestion.models.LogsUploadOptions.getObjectSerializer()"
fullName: "com.azure.monitor.ingestion.models.LogsUploadOptions.getObjectSerializer()"
name: "getObjectSerializer()"
nameWithType: "LogsUploadOptions.getObjectSerializer()"
summary: "Returns the serializer to use to convert the log objects to JSON."
syntax: "public ObjectSerializer getObjectSerializer()"
desc: "Returns the serializer to use to convert the log objects to JSON."
returns:
description: "the serializer to use to convert the log objects to JSON."
type: "<xref href=\"com.azure.core.util.serializer.ObjectSerializer?alt=com.azure.core.util.serializer.ObjectSerializer&text=ObjectSerializer\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.monitor.ingestion.models.LogsUploadOptions.setLogsUploadErrorConsumer(java.util.function.Consumer<com.azure.monitor.ingestion.models.LogsUploadError>)"
fullName: "com.azure.monitor.ingestion.models.LogsUploadOptions.setLogsUploadErrorConsumer(Consumer<LogsUploadError> logsUploadErrorConsumer)"
name: "setLogsUploadErrorConsumer(Consumer<LogsUploadError> logsUploadErrorConsumer)"
nameWithType: "LogsUploadOptions.setLogsUploadErrorConsumer(Consumer<LogsUploadError> logsUploadErrorConsumer)"
summary: "Sets the error handler that is called when a request to the Azure Monitor service to upload logs fails."
parameters:
- description: "the error handler that is called when a request to the Azure Monitor service to\n upload logs fails."
name: "logsUploadErrorConsumer"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html\">Consumer</a>&lt;<xref href=\"com.azure.monitor.ingestion.models.LogsUploadError?alt=com.azure.monitor.ingestion.models.LogsUploadError&text=LogsUploadError\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public LogsUploadOptions setLogsUploadErrorConsumer(Consumer<LogsUploadError> logsUploadErrorConsumer)"
desc: "Sets the error handler that is called when a request to the Azure Monitor service to upload logs fails."
returns:
description: "the updated <xref uid=\"com.azure.monitor.ingestion.models.LogsUploadOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsUploadOptions\"></xref> instance."
type: "<xref href=\"com.azure.monitor.ingestion.models.LogsUploadOptions?alt=com.azure.monitor.ingestion.models.LogsUploadOptions&text=LogsUploadOptions\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.monitor.ingestion.models.LogsUploadOptions.setMaxConcurrency(java.lang.Integer)"
fullName: "com.azure.monitor.ingestion.models.LogsUploadOptions.setMaxConcurrency(Integer maxConcurrency)"
name: "setMaxConcurrency(Integer maxConcurrency)"
nameWithType: "LogsUploadOptions.setMaxConcurrency(Integer maxConcurrency)"
summary: "Sets the max concurrent requests to send to the Azure Monitor service when uploading logs."
parameters:
- description: "the max concurrent requests to send to the Azure Monitor service when uploading logs."
name: "maxConcurrency"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
syntax: "public LogsUploadOptions setMaxConcurrency(Integer maxConcurrency)"
desc: "Sets the max concurrent requests to send to the Azure Monitor service when uploading logs."
returns:
description: "the updated <xref uid=\"com.azure.monitor.ingestion.models.LogsUploadOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsUploadOptions\"></xref> instance."
type: "<xref href=\"com.azure.monitor.ingestion.models.LogsUploadOptions?alt=com.azure.monitor.ingestion.models.LogsUploadOptions&text=LogsUploadOptions\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.monitor.ingestion.models.LogsUploadOptions.setObjectSerializer(com.azure.core.util.serializer.ObjectSerializer)"
fullName: "com.azure.monitor.ingestion.models.LogsUploadOptions.setObjectSerializer(ObjectSerializer objectSerializer)"
name: "setObjectSerializer(ObjectSerializer objectSerializer)"
nameWithType: "LogsUploadOptions.setObjectSerializer(ObjectSerializer objectSerializer)"
summary: "Sets the serializer to use to convert the log objects to JSON."
parameters:
- description: "the serializer to use to convert the log objects to JSON."
name: "objectSerializer"
type: "<xref href=\"com.azure.core.util.serializer.ObjectSerializer?alt=com.azure.core.util.serializer.ObjectSerializer&text=ObjectSerializer\" data-throw-if-not-resolved=\"False\" />"
syntax: "public LogsUploadOptions setObjectSerializer(ObjectSerializer objectSerializer)"
desc: "Sets the serializer to use to convert the log objects to JSON."
returns:
description: "the updated <xref uid=\"com.azure.monitor.ingestion.models.LogsUploadOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"LogsUploadOptions\"></xref> instance."
type: "<xref href=\"com.azure.monitor.ingestion.models.LogsUploadOptions?alt=com.azure.monitor.ingestion.models.LogsUploadOptions&text=LogsUploadOptions\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "The options model to configure the request to upload logs to Azure Monitor."
metadata: {}
package: "com.azure.monitor.ingestion.models"
artifact: com.azure:azure-monitor-ingestion:1.2.6