func (api *API) GetLogNames() []string {
	return api.logNames
}
GetLogNames gets downloaded log names
package atlas
import (
	"bufio"
	"errors"
	"fmt"
	"io/ioutil"
	"net/http"
	"os"
	"strings"
	"github.com/simagix/gox"
)
const BaseURL = "https://cloud.mongodb.com/api/atlas/v1.0"
const ApplicationJSON = "application/json"
const ApplicationGZip = "application/gzip"
type API struct {
	acceptType  string
	alerts      bool
	alertsFile  string
	args        []string
	contentType string
	clusterName string
	ftdc        bool
	groupID     string
	info        bool
	loginfo     bool
	logNames    []string
	pause       bool
	resume      bool
	params      []string
	privateKey  string
	publicKey   string
	request     string
	verbose     bool
}
func NewKey(publicKey string, privateKey string) *API {
	return &API{publicKey: publicKey, privateKey: privateKey, contentType: ApplicationJSON, acceptType: ApplicationJSON}
}
func ParseURI(uri string) (*API, error) {
	api := &API{contentType: ApplicationJSON, acceptType: ApplicationJSON, params: []string{}}
	if strings.HasPrefix(uri, "atlas://") == true {
		uri = uri[8:]
	}
	i := strings.Index(uri, "@")
	if i > 0 {
		tailer := uri[i+1:]
		if q := strings.Index(tailer, "?"); q > 0 {
			api.params = strings.Split(tailer[q+1:], "&")
			tailer = tailer[:q]
		}
		if n := strings.Index(tailer, "/"); n > 0 {
			api.groupID = tailer[:n]
			api.clusterName = tailer[n+1:]
		} else {
			api.groupID = tailer
		}
		uri = uri[:i]
	}
	i = strings.LastIndex(uri, ":")
	if i < 0 {
		return nil, errors.New("invalid format ([atlas://]publicKey:privateKey[@group/cluster])")
	}
	api.publicKey = uri[:i]
	api.privateKey = uri[i+1:]
	return api, nil
}