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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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 ¶
- Variables
- func GetAllAlertPolicies() (*newrelic.AlertsPolicyList, error, tracker.ReturnValue)
- func GetAllAlertsChannels() (*newrelic.AlertsChannelList, error, tracker.ReturnValue)
- func GetAllConditionsByAlertPolicyID(id int64) (*newrelic.AlertsConditionList, error, tracker.ReturnValue)
- func GetAllDashboards() (string, error, tracker.ReturnValue)
- func GetConditionsByAlertPolicyIDAndConditionType(id int64, cat newrelic.ConditionCategory) (*newrelic.AlertsConditionList, error, tracker.ReturnValue)
- func GetDashboardByID(id int64) (string, error, tracker.ReturnValue)
- func GetLabels() (*newrelic.LabelList, error, tracker.ReturnValue)
- func GetLabelsByMonitorID(monitorId string) ([]*string, error, tracker.ReturnValue)
- func GetMonitorByID(id string) (*newrelic.Monitor, error, tracker.ReturnValue)
- func GetMonitorByName(monitorName string) (*newrelic.Monitor, error, tracker.ReturnValue)
- func GetMonitors() ([]*newrelic.Monitor, error, tracker.ReturnValue)
- func GetMonitorsByLabel(label string) (*newrelic.MonitorRefList, error, tracker.ReturnValue)
- func IsChannelNameExists(channelName string) (bool, *newrelic.AlertsChannel, error, tracker.ReturnValue)
- func IsConditionNameExists(alertPolicyID int64, condtionName string, cat newrelic.ConditionCategory) (bool, int64, error, tracker.ReturnValue)
- func IsDashboardTitleExists(dashboardTitle string) (bool, string, error, tracker.ReturnValue)
- func IsMonitorNameExists(monitorName string) (bool, *newrelic.Monitor, error, tracker.ReturnValue)
- func IsPolicyNameExists(policyName string) (bool, *newrelic.AlertsPolicy, error, tracker.ReturnValue)
Constants ¶
This section is empty.
Variables ¶
var GetCmd = &cobra.Command{
Use: "get",
Short: "Display one or many NewRelic resources.",
}
GetCmd represents the get command
Functions ¶
func GetAllAlertPolicies ¶
func GetAllAlertPolicies() (*newrelic.AlertsPolicyList, error, tracker.ReturnValue)
func GetAllAlertsChannels ¶
func GetAllAlertsChannels() (*newrelic.AlertsChannelList, error, tracker.ReturnValue)
func GetAllConditionsByAlertPolicyID ¶
func GetAllConditionsByAlertPolicyID(id int64) (*newrelic.AlertsConditionList, error, tracker.ReturnValue)
func GetAllDashboards ¶
func GetAllDashboards() (string, error, tracker.ReturnValue)
func GetConditionsByAlertPolicyIDAndConditionType ¶
func GetConditionsByAlertPolicyIDAndConditionType(id int64, cat newrelic.ConditionCategory) (*newrelic.AlertsConditionList, error, tracker.ReturnValue)
func GetDashboardByID ¶
func GetDashboardByID(id int64) (string, error, tracker.ReturnValue)
func GetLabelsByMonitorID ¶
func GetLabelsByMonitorID(monitorId string) ([]*string, error, tracker.ReturnValue)
func GetMonitorByID ¶
func GetMonitorByName ¶
func GetMonitors ¶
func GetMonitors() ([]*newrelic.Monitor, error, tracker.ReturnValue)
func GetMonitorsByLabel ¶
func GetMonitorsByLabel(label string) (*newrelic.MonitorRefList, error, tracker.ReturnValue)
func IsChannelNameExists ¶
func IsChannelNameExists(channelName string) (bool, *newrelic.AlertsChannel, error, tracker.ReturnValue)
func IsConditionNameExists ¶
func IsConditionNameExists(alertPolicyID int64, condtionName string, cat newrelic.ConditionCategory) (bool, int64, error, tracker.ReturnValue)
func IsDashboardTitleExists ¶
func IsMonitorNameExists ¶
func IsPolicyNameExists ¶
func IsPolicyNameExists(policyName string) (bool, *newrelic.AlertsPolicy, error, tracker.ReturnValue)
Types ¶
This section is empty.