public class ProjectConfig extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_USER_AGENT |
| 构造器和说明 |
|---|
ProjectConfig(String project,
String endpoint,
com.aliyun.openservices.log.common.auth.CredentialsProvider credentialsProvider,
String userAgent) |
ProjectConfig(String project,
String endpoint,
String accessKeyId,
String accessKeySecret) |
ProjectConfig(String project,
String endpoint,
String accessKeyId,
String accessKeySecret,
String stsToken) |
ProjectConfig(String project,
String endpoint,
String accessKeyId,
String accessKeySecret,
String stsToken,
String userAgent) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAccessKeyId()
已过时。
|
String |
getAccessKeySecret()
已过时。
|
com.aliyun.openservices.log.common.auth.Credentials |
getCredentials() |
com.aliyun.openservices.log.common.auth.CredentialsProvider |
getCredentialsProvider() |
String |
getEndpoint() |
String |
getProject() |
String |
getProxyIp() |
String |
getStsToken()
已过时。
|
String |
getUserAgent() |
boolean |
isCname() |
boolean |
isUseMetricStoreUrl() |
void |
setCname(boolean cname) |
void |
setProxyIp(String proxyIp) |
void |
setUseMetricStoreUrl(boolean useMetricStoreUrl) |
public ProjectConfig(String project, String endpoint, com.aliyun.openservices.log.common.auth.CredentialsProvider credentialsProvider, @Nullable String userAgent)
project - name of log projectendpoint - aliyun sls service endpointcredentialsProvider - interface which provides credentialsuserAgent - nullable, user agent, default to aliyun-log-java-producerpublic ProjectConfig(String project, String endpoint, String accessKeyId, String accessKeySecret)
public ProjectConfig(String project, String endpoint, String accessKeyId, String accessKeySecret, @Nullable String stsToken)
public String getProject()
public String getEndpoint()
@Deprecated public String getAccessKeyId()
@Deprecated public String getAccessKeySecret()
@Deprecated public String getStsToken()
public com.aliyun.openservices.log.common.auth.Credentials getCredentials()
public com.aliyun.openservices.log.common.auth.CredentialsProvider getCredentialsProvider()
public String getUserAgent()
public String getProxyIp()
public void setProxyIp(String proxyIp)
public boolean isUseMetricStoreUrl()
public void setUseMetricStoreUrl(boolean useMetricStoreUrl)
public boolean isCname()
public void setCname(boolean cname)
Copyright © 2026. All rights reserved.