public static final class PutWebtrackingRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
PutWebtrackingRequest |
build() |
PutWebtrackingRequest.Builder |
logs(List<Map<String,String>> logs)
The logs.
|
PutWebtrackingRequest.Builder |
logstoreName(String logstoreName)
The name of the Logstore.
|
PutWebtrackingRequest.Builder |
project(String project)
The name of the project.
|
PutWebtrackingRequest.Builder |
source(String source)
The source of the logs.
|
PutWebtrackingRequest.Builder |
tags(Map<String,String> tags)
The tags of the logs.
|
PutWebtrackingRequest.Builder |
topic(String topic)
The topic of the logs.
|
public PutWebtrackingRequest.Builder project(String project)
The name of the project.
This parameter is required.
example:ali-test-project
public PutWebtrackingRequest.Builder logstoreName(String logstoreName)
The name of the Logstore.
This parameter is required.
example:ali-test-logstore
public PutWebtrackingRequest.Builder logs(List<Map<String,String>> logs)
The logs. Each element is a JSON object that indicates a log.
Note: The time in a log that is collected by using the web tracking feature is the time at which Simple Log Service receives the log. You do not need to configure the time field for each log. If this field exists, it is overwritten by the time at which Simple Log Service receives the log.
This parameter is required.
public PutWebtrackingRequest.Builder source(String source)
The source of the logs.
This parameter is required.
example:source
public PutWebtrackingRequest.Builder tags(Map<String,String> tags)
The tags of the logs.
public PutWebtrackingRequest.Builder topic(String topic)
The topic of the logs.
example:topic
public PutWebtrackingRequest build()
Copyright © 2025. All rights reserved.