saplandscapemonitor

package
v0.20231002.1065327 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor Documentation

The saplandscapemonitor SDK allows for interaction with the Azure Resource Manager Service workloads (API Version 2023-04-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor"

Client Initialization

client := saplandscapemonitor.NewSapLandscapeMonitorClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SapLandscapeMonitorClient.Create

ctx := context.TODO()
id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue")

payload := saplandscapemonitor.SapLandscapeMonitor{
	// ...
}


read, err := client.Create(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SapLandscapeMonitorClient.Delete

ctx := context.TODO()
id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue")

read, err := client.Delete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SapLandscapeMonitorClient.Get

ctx := context.TODO()
id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SapLandscapeMonitorClient.List

ctx := context.TODO()
id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue")

read, err := client.List(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: SapLandscapeMonitorClient.Update

ctx := context.TODO()
id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue")

payload := saplandscapemonitor.SapLandscapeMonitor{
	// ...
}


read, err := client.Update(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForSapLandscapeMonitorProvisioningState

func PossibleValuesForSapLandscapeMonitorProvisioningState() []string

func ValidateMonitorID

func ValidateMonitorID(input interface{}, key string) (warnings []string, errors []error)

ValidateMonitorID checks that 'input' can be parsed as a Monitor ID

Types

type CreateOperationResponse

type CreateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SapLandscapeMonitor
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SapLandscapeMonitor
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SapLandscapeMonitorListResult
}

type MonitorId

type MonitorId struct {
	SubscriptionId    string
	ResourceGroupName string
	MonitorName       string
}

MonitorId is a struct representing the Resource ID for a Monitor

func NewMonitorID

func NewMonitorID(subscriptionId string, resourceGroupName string, monitorName string) MonitorId

NewMonitorID returns a new MonitorId struct

func ParseMonitorID

func ParseMonitorID(input string) (*MonitorId, error)

ParseMonitorID parses 'input' into a MonitorId

func ParseMonitorIDInsensitively

func ParseMonitorIDInsensitively(input string) (*MonitorId, error)

ParseMonitorIDInsensitively parses 'input' case-insensitively into a MonitorId note: this method should only be used for API response data and not user input

func (MonitorId) ID

func (id MonitorId) ID() string

ID returns the formatted Monitor ID

func (MonitorId) Segments

func (id MonitorId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Monitor ID

func (MonitorId) String

func (id MonitorId) String() string

String returns a human-readable description of this Monitor ID

type SapLandscapeMonitor

type SapLandscapeMonitor struct {
	Id         *string                        `json:"id,omitempty"`
	Name       *string                        `json:"name,omitempty"`
	Properties *SapLandscapeMonitorProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData         `json:"systemData,omitempty"`
	Type       *string                        `json:"type,omitempty"`
}

type SapLandscapeMonitorClient

type SapLandscapeMonitorClient struct {
	Client *resourcemanager.Client
}

func NewSapLandscapeMonitorClientWithBaseURI

func NewSapLandscapeMonitorClientWithBaseURI(sdkApi sdkEnv.Api) (*SapLandscapeMonitorClient, error)

func (SapLandscapeMonitorClient) Create

Create ...

func (SapLandscapeMonitorClient) Delete

Delete ...

func (SapLandscapeMonitorClient) Get

Get ...

func (SapLandscapeMonitorClient) List

List ...

func (SapLandscapeMonitorClient) Update

Update ...

type SapLandscapeMonitorListResult

type SapLandscapeMonitorListResult struct {
	NextLink *string                `json:"nextLink,omitempty"`
	Value    *[]SapLandscapeMonitor `json:"value,omitempty"`
}

type SapLandscapeMonitorMetricThresholds

type SapLandscapeMonitorMetricThresholds struct {
	Green  *float64 `json:"green,omitempty"`
	Name   *string  `json:"name,omitempty"`
	Red    *float64 `json:"red,omitempty"`
	Yellow *float64 `json:"yellow,omitempty"`
}

type SapLandscapeMonitorProperties

type SapLandscapeMonitorProperties struct {
	Grouping             *SapLandscapeMonitorPropertiesGrouping `json:"grouping,omitempty"`
	ProvisioningState    *SapLandscapeMonitorProvisioningState  `json:"provisioningState,omitempty"`
	TopMetricsThresholds *[]SapLandscapeMonitorMetricThresholds `json:"topMetricsThresholds,omitempty"`
}

type SapLandscapeMonitorPropertiesGrouping

type SapLandscapeMonitorPropertiesGrouping struct {
	Landscape      *[]SapLandscapeMonitorSidMapping `json:"landscape,omitempty"`
	SapApplication *[]SapLandscapeMonitorSidMapping `json:"sapApplication,omitempty"`
}

type SapLandscapeMonitorProvisioningState

type SapLandscapeMonitorProvisioningState string
const (
	SapLandscapeMonitorProvisioningStateAccepted  SapLandscapeMonitorProvisioningState = "Accepted"
	SapLandscapeMonitorProvisioningStateCanceled  SapLandscapeMonitorProvisioningState = "Canceled"
	SapLandscapeMonitorProvisioningStateCreated   SapLandscapeMonitorProvisioningState = "Created"
	SapLandscapeMonitorProvisioningStateFailed    SapLandscapeMonitorProvisioningState = "Failed"
	SapLandscapeMonitorProvisioningStateSucceeded SapLandscapeMonitorProvisioningState = "Succeeded"
)

func (*SapLandscapeMonitorProvisioningState) UnmarshalJSON added in v0.20230406.1124617

func (s *SapLandscapeMonitorProvisioningState) UnmarshalJSON(bytes []byte) error

type SapLandscapeMonitorSidMapping

type SapLandscapeMonitorSidMapping struct {
	Name   *string   `json:"name,omitempty"`
	TopSid *[]string `json:"topSid,omitempty"`
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SapLandscapeMonitor
}

Jump to

Keyboard shortcuts

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