saplandscapemonitor

package
v0.20240923.1142107 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MPL-2.0 Imports: 12 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 Azure Resource Manager 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", "monitorName")

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", "monitorName")

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", "monitorName")

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", "monitorName")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: SapLandscapeMonitorClient.Update

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

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 ListCompleteResult added in v0.20240226.1173038

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SapLandscapeMonitor
}

type ListCustomPager added in v0.20240628.1153531

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SapLandscapeMonitor
}

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) FromParseResult

func (id *MonitorId) FromParseResult(input resourceids.ParseResult) error

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) ListComplete added in v0.20240226.1173038

ListComplete retrieves all the results into a single object

func (SapLandscapeMonitorClient) ListCompleteMatchingPredicate added in v0.20240226.1173038

func (c SapLandscapeMonitorClient) ListCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate SapLandscapeMonitorOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SapLandscapeMonitorClient) Update

Update ...

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 SapLandscapeMonitorOperationPredicate added in v0.20240226.1173038

type SapLandscapeMonitorOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (SapLandscapeMonitorOperationPredicate) Matches added in v0.20240226.1173038

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

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