-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add metricstore send support #261
Conversation
|
client_store.go
Outdated
@@ -103,6 +103,12 @@ func (c *Client) PostLogStoreLogs(project, logstore string, lg *LogGroup, hashKe | |||
return ls.PostLogStoreLogs(lg, hashKey) | |||
} | |||
|
|||
func (c *Client) PostMetricStoreLogs(project, logstore string, lg *LogGroup) (err error) { | |||
ls := convertLogstore(c, project, logstore) | |||
ls.MetricStore = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metricStore 不要暴露
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
统一改成useMetricStoreURL,清晰一些
log_store.go
Outdated
@@ -40,6 +40,7 @@ type LogStore struct { | |||
putLogCompressType int | |||
EncryptConf *EncryptConf `json:"encrypt_conf,omitempty"` | |||
ProductType string `json:"productType,omitempty"` | |||
MetricStore bool `json:"metric_store"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
json 去掉,这个不该暴露,不属于接口范围
producer/producer_config.go
Outdated
@@ -38,6 +38,7 @@ type ProducerConfig struct { | |||
LogTags []*sls.LogTag | |||
GeneratePackId bool | |||
CredentialsProvider sls.CredentialsProvider | |||
MetricStore bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UseMetricStoreURL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
支持Metricstore hash 写模式