mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* PLT-3512 adding join/leave channel to the CLI * PLT-3512 adding list channels to the CLI * PLT-3512 adding restore channel * Adding make run-cli command * Updating txt * Fixing txt purposed by PMs
38 lines
898 B
Go
38 lines
898 B
Go
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
package utils
|
|
|
|
import (
|
|
"net/http"
|
|
"net/url"
|
|
)
|
|
|
|
const (
|
|
DIAGNOSTIC_URL = "https://d7zmvsa9e04kk.cloudfront.net"
|
|
|
|
PROP_DIAGNOSTIC_ID = "id"
|
|
PROP_DIAGNOSTIC_CATEGORY = "c"
|
|
VAL_DIAGNOSTIC_CATEGORY_DEFAULT = "d"
|
|
PROP_DIAGNOSTIC_BUILD = "b"
|
|
PROP_DIAGNOSTIC_ENTERPRISE_READY = "be"
|
|
PROP_DIAGNOSTIC_DATABASE = "db"
|
|
PROP_DIAGNOSTIC_OS = "os"
|
|
PROP_DIAGNOSTIC_USER_COUNT = "uc"
|
|
PROP_DIAGNOSTIC_TEAM_COUNT = "tc"
|
|
PROP_DIAGNOSTIC_ACTIVE_USER_COUNT = "auc"
|
|
PROP_DIAGNOSTIC_UNIT_TESTS = "ut"
|
|
)
|
|
|
|
func SendDiagnostic(values url.Values) {
|
|
if *Cfg.ServiceSettings.EnableSecurityFixAlert {
|
|
|
|
res, err := http.Get(DIAGNOSTIC_URL + "/i?" + values.Encode())
|
|
if err != nil {
|
|
return
|
|
}
|
|
|
|
res.Body.Close()
|
|
}
|
|
}
|