tracker

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

* Copyright 2017-2018 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var ERR_CREATE_NR_CLINET = errors.New("Call NewRelic REST error")
View Source
var ERR_REST_CALL = errors.New("Call NewRelic REST error")
View Source
var ERR_REST_CALL_400 = errors.New("Status code is 400 calling NewRelic REST")
View Source
var ERR_REST_CALL_NOT_2XX = errors.New("Status code is not 2XX calling NewRelic REST")
View Source
var ERR_REST_CHANNEL_NOT_EXIST = errors.New("No any notification channels")
View Source
var OPERATION_NAME_ADD_LABEL_MONITOR = "Add Label Monitor"
View Source
var OPERATION_NAME_CHECK_ALERT_CHANNEL_NAME_EXISTS = "Check Alert Channel Name Exists"
View Source
var OPERATION_NAME_CHECK_ALERT_POLICY_NAME_EXISTS = "Check Alert Policy Name Exists"
View Source
var OPERATION_NAME_CHECK_DASHBOARD_TITLE_EXISTS = "Check Dashboard Title Exists"
View Source
var OPERATION_NAME_CHECK_MONITOR_NAME_EXISTS = "Check Monitor Name Exists"
View Source
var OPERATION_NAME_CREATE_ALERT_CONDITIION = "Create Alert Condition"
View Source
var OPERATION_NAME_CREATE_ALERT_POLICY = "Create Alert Policy"
View Source
var OPERATION_NAME_CREATE_DASHBOARD = "Create Dashboard"
View Source
var OPERATION_NAME_CREATE_MONITOR = "Create Monitor"
View Source
var OPERATION_NAME_DELETE_ALERT_CONDITION = "Delete Alert Condition"
View Source
var OPERATION_NAME_DELETE_ALERT_POLICY_BY_ID = "Delete Alert Policy By ID"
View Source
var OPERATION_NAME_DELETE_ALERT_POLICY_BY_NAME = "Delete Alert Policy By Name"
View Source
var OPERATION_NAME_DELETE_DASHBOARD_BY_ID = "Delete Dashboard By ID"
View Source
var OPERATION_NAME_DELETE_LABEL_FROM_MONITOR = "Delete Label From Monitor"
View Source
var OPERATION_NAME_DELETE_MONITOR = "Delete Monitor"
View Source
var OPERATION_NAME_GET_ALERT_CHANNELS = "Get Alert Channels"
View Source
var OPERATION_NAME_GET_ALERT_POLICIES = "Get Alert Policies"
View Source
var OPERATION_NAME_GET_CONDITIONS_BY_POLICY_ID = "Get Conditions By Alert Policy ID"
View Source
var OPERATION_NAME_GET_DASHBOARDS = "Get Dashboards"
View Source
var OPERATION_NAME_GET_DASHBOARD_BY_ID = "Get Dashboard By ID"
View Source
var OPERATION_NAME_GET_DASHBOARD_BY_NAME = "Get Dashboard By Name"
View Source
var OPERATION_NAME_GET_LABELS = "Get Labels"
View Source
var OPERATION_NAME_GET_LABELS_BY_MONITOR_ID = "Get Labels By Monitor ID"
View Source
var OPERATION_NAME_GET_MONITORS = "Get Monitors"
View Source
var OPERATION_NAME_GET_MONITORS_BY_LABEL = "Get Monitors By Label"
View Source
var OPERATION_NAME_GET_MONITOR_BY_ID = "Get Monitor By ID"
View Source
var OPERATION_NAME_GET_MONITOR_BY_NAME = "Get Monitor By Name"
View Source
var OPERATION_NAME_GET_MONITOR_SCRIPT = "Get Monitor Script"
View Source
var OPERATION_NAME_INSERT_CUSTOM_EVENTS = "Insert Custom Events"
View Source
var OPERATION_NAME_PATCH_MONITOR = "Patch Monitor"
View Source
var OPERATION_NAME_UPDATE_ALERT_CONDITION_BY_ID = "Update Alert Condition By ID"
View Source
var OPERATION_NAME_UPDATE_ALERT_POLICY_BY_ID = "Update Alert Policy By ID"
View Source
var OPERATION_NAME_UPDATE_ALERT_POLICY_BY_NAME = "Update Alert Policy By Name"
View Source
var OPERATION_NAME_UPDATE_ALERT_POLICY_CHANNEL = "Update Alert Policy Channel"
View Source
var OPERATION_NAME_UPDATE_DASHBOARD_BY_ID = "Update Dashboard By ID"
View Source
var OPERATION_NAME_UPDATE_DASHBOARD_BY_NAME = "Update Dashboard By Name"
View Source
var OPERATION_NAME_UPDATE_MONITOR = "Update Monitor"
View Source
var OPERATION_NAME_UPDATE_MONITOR_SCRIPT = "Create Monitor"
View Source
var STATUS_CODE_MAPPING_ALERT_CHANNELS = make(map[int]string)
View Source
var STATUS_CODE_MAPPING_ALERT_CONDITIONS = make(map[int]string)
View Source
var STATUS_CODE_MAPPING_ALERT_CUSTOM_EVENTS = make(map[int]string)
View Source
var STATUS_CODE_MAPPING_ALERT_POLICIES = make(map[int]string)
View Source
var STATUS_CODE_MAPPING_CONDITIONS = make(map[int]string)
View Source
var STATUS_CODE_MAPPING_LABELS = make(map[int]string)
View Source
var STATUS_CODE_MAPPING_LABELS_SYNTHETICS = make(map[int]string)
View Source
var STATUS_CODE_MAPPING_MONITORS = make(map[int]string)
View Source
var STATUS_CODE_MAPPING_MONITORS_SCRIPT = make(map[int]string)

Functions

func AppendRESTCallResult

func AppendRESTCallResult(serviceInstance interface{}, operationName string, statusCode int, message string)

func GetDescByStatusCode

func GetDescByStatusCode(serviceInstance interface{}, statusCode int) string

func PrintBackupMonitorInfo

func PrintBackupMonitorInfo(monitorList []*newrelic.Monitor)

func PrintStatisticsInfo

func PrintStatisticsInfo(obj interface{})

Types

type AlertConditionResult

type AlertConditionResult struct {
	AlertConditionName string
	OperationStatus    string
}

type AlertResult

type AlertResult struct {
	AlertPolicyName string
	OperationStatus string
}

type BackupDashboardMeta

type BackupDashboardMeta struct {
	FileName        string
	OperationStatus string
}

type BackupDashboardMetaList

type BackupDashboardMetaList struct {
	AllBackupDashboardMeta []BackupDashboardMeta
}

type BackupMonitorMeta

type BackupMonitorMeta struct {
	Name       string
	Type       string
	Script     bool
	Labels     []string
	LabelCount int
	ID         string
}

type BackupMonitorMetaList

type BackupMonitorMetaList struct {
	AllBackupMonitorMeta []BackupMonitorMeta
}

func GenerateBackupMonitorMeta

func GenerateBackupMonitorMeta(monitorList []*newrelic.Monitor) BackupMonitorMetaList

type BackupPolicyMeta

type BackupPolicyMeta struct {
	FileName        string
	OperationStatus string
}

type BackupPolicyMetaList

type BackupPolicyMetaList struct {
	AllBackupPolicyMeta []BackupPolicyMeta
}

type RESTCallResult

type RESTCallResult struct {
	OperationName string
	StatusCode    int
	Description   string
	// HTTPMethod    string
	Message string
}

func ToRESTCallResult

func ToRESTCallResult(serviceInstance interface{}, operationName string, statusCode int, message string) RESTCallResult

type RESTCallResultList

type RESTCallResultList struct {
	AllRESTCallResult []RESTCallResult
}
var GlobalRESTCallResultList RESTCallResultList

type RestoreAlertPolicyMeta

type RestoreAlertPolicyMeta struct {
	FileName        string
	OperationStatus string
}

type RestoreAlertPolicyMetaList

type RestoreAlertPolicyMetaList struct {
	AllRestoreAlertPolicyMeta []RestoreAlertPolicyMeta
}

type RestoreDashboardMeta

type RestoreDashboardMeta struct {
	FileName        string
	OperationStatus string
}

type RestoreDashboardMetaList

type RestoreDashboardMetaList struct {
	AllRestoreDashboardMeta []RestoreDashboardMeta
}

type RestoreMonitorMeta

type RestoreMonitorMeta struct {
	FileName string
	// Name             string
	Type       string
	Script     bool
	Labels     []string
	LabelCount int
	// PropertiesStatus string
	// ScriptStatus     string
	// LabelStatus      string
	OperationStatus string
}

type RestoreMonitorMetaList

type RestoreMonitorMetaList struct {
	AllRestoreMonitorMeta []RestoreMonitorMeta
}

type ReturnValue

type ReturnValue struct {
	OriginalError error
	IsContinue    bool
	TypicalError  error
	Description   string
	OperationName string
}

func ToReturnValue

func ToReturnValue(isContinue bool, operationName string, originalErr error, typicalErr error, description string) ReturnValue

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL