-
Notifications
You must be signed in to change notification settings - Fork 119
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 CreateMetricStore #165
Conversation
client_metric_store.go
Outdated
|
||
// CreateMetricStore . | ||
func (c *Client) CreateMetricStore(project, name string, ttl, shard int) error { | ||
logStore := &LogStore{ |
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.
让用户自己填入LogStore的配置,然后这边强制把Type设置成Metrics
client_metric_store.go
Outdated
} | ||
|
||
// UpdateMetricStore . | ||
func (c *Client) UpdateMetricStore(project, name string, ttl int) error { |
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.
同样的道理,传入LogStore,然后再强制设置Type为Metrics,最后调用UpdateSubStoreTTL
client_metric_store.go
Outdated
import "time" | ||
|
||
// CreateMetricStore . | ||
func (c *Client) CreateMetricStore(project, name string, ttl, shard int) error { |
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.
需要给ClientInterface加上接口,然后再TokenUpdateClient上也加上对应的实现
https://github.com/aliyun/aliyun-log-go-sdk/blob/master/client_interface.go
/LGTM |
No description provided.