monitoringalertrecord

package
v0.20241126.2320 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/devicemanagement/beta/monitoringalertrecord Documentation

The monitoringalertrecord SDK allows for interaction with Microsoft Graph devicemanagement (API Version beta).

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/microsoft-graph/devicemanagement/beta/monitoringalertrecord"

Client Initialization

client := monitoringalertrecord.NewMonitoringAlertRecordClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: MonitoringAlertRecordClient.CreateMonitoringAlertRecord

ctx := context.TODO()

payload := monitoringalertrecord.DeviceManagementAlertRecord{
	// ...
}


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

Example Usage: MonitoringAlertRecordClient.CreateMonitoringAlertRecordDeviceManagementChangePortalNotificationAsSent

ctx := context.TODO()

payload := monitoringalertrecord.CreateMonitoringAlertRecordDeviceManagementChangePortalNotificationAsSentRequest{
	// ...
}


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

Example Usage: MonitoringAlertRecordClient.CreateMonitoringAlertRecordDeviceManagementSetPortalNotificationAsSent

ctx := context.TODO()
id := monitoringalertrecord.NewDeviceManagementMonitoringAlertRecordID("alertRecordId")

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

Example Usage: MonitoringAlertRecordClient.DeleteMonitoringAlertRecord

ctx := context.TODO()
id := monitoringalertrecord.NewDeviceManagementMonitoringAlertRecordID("alertRecordId")

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

Example Usage: MonitoringAlertRecordClient.GetMonitoringAlertRecord

ctx := context.TODO()
id := monitoringalertrecord.NewDeviceManagementMonitoringAlertRecordID("alertRecordId")

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

Example Usage: MonitoringAlertRecordClient.GetMonitoringAlertRecordsCount

ctx := context.TODO()


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

Example Usage: MonitoringAlertRecordClient.ListMonitoringAlertRecords

ctx := context.TODO()


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

Example Usage: MonitoringAlertRecordClient.UpdateMonitoringAlertRecord

ctx := context.TODO()
id := monitoringalertrecord.NewDeviceManagementMonitoringAlertRecordID("alertRecordId")

payload := monitoringalertrecord.DeviceManagementAlertRecord{
	// ...
}


read, err := client.UpdateMonitoringAlertRecord(ctx, id, payload, monitoringalertrecord.DefaultUpdateMonitoringAlertRecordOperationOptions())
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

This section is empty.

Types

type CreateMonitoringAlertRecordDeviceManagementChangePortalNotificationAsSentOperationOptions

type CreateMonitoringAlertRecordDeviceManagementChangePortalNotificationAsSentOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (CreateMonitoringAlertRecordDeviceManagementChangePortalNotificationAsSentOperationOptions) ToHeaders

func (CreateMonitoringAlertRecordDeviceManagementChangePortalNotificationAsSentOperationOptions) ToOData

func (CreateMonitoringAlertRecordDeviceManagementChangePortalNotificationAsSentOperationOptions) ToQuery

type CreateMonitoringAlertRecordDeviceManagementChangePortalNotificationAsSentOperationResponse

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

type CreateMonitoringAlertRecordDeviceManagementChangePortalNotificationAsSentRequest

type CreateMonitoringAlertRecordDeviceManagementChangePortalNotificationAsSentRequest struct {
	AlertRecordIds *[]string `json:"alertRecordIds,omitempty"`
}

type CreateMonitoringAlertRecordDeviceManagementSetPortalNotificationAsSentOperationOptions

type CreateMonitoringAlertRecordDeviceManagementSetPortalNotificationAsSentOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (CreateMonitoringAlertRecordDeviceManagementSetPortalNotificationAsSentOperationOptions) ToHeaders

func (CreateMonitoringAlertRecordDeviceManagementSetPortalNotificationAsSentOperationOptions) ToOData

func (CreateMonitoringAlertRecordDeviceManagementSetPortalNotificationAsSentOperationOptions) ToQuery

type CreateMonitoringAlertRecordDeviceManagementSetPortalNotificationAsSentOperationResponse

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

type CreateMonitoringAlertRecordOperationOptions

type CreateMonitoringAlertRecordOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateMonitoringAlertRecordOperationOptions

func DefaultCreateMonitoringAlertRecordOperationOptions() CreateMonitoringAlertRecordOperationOptions

func (CreateMonitoringAlertRecordOperationOptions) ToHeaders

func (CreateMonitoringAlertRecordOperationOptions) ToOData

func (CreateMonitoringAlertRecordOperationOptions) ToQuery

type CreateMonitoringAlertRecordOperationResponse

type CreateMonitoringAlertRecordOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceManagementAlertRecord
}

type DeleteMonitoringAlertRecordOperationOptions

type DeleteMonitoringAlertRecordOperationOptions struct {
	IfMatch   *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultDeleteMonitoringAlertRecordOperationOptions

func DefaultDeleteMonitoringAlertRecordOperationOptions() DeleteMonitoringAlertRecordOperationOptions

func (DeleteMonitoringAlertRecordOperationOptions) ToHeaders

func (DeleteMonitoringAlertRecordOperationOptions) ToOData

func (DeleteMonitoringAlertRecordOperationOptions) ToQuery

type DeleteMonitoringAlertRecordOperationResponse

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

type DeviceManagementAlertRecordOperationPredicate

type DeviceManagementAlertRecordOperationPredicate struct {
}

func (DeviceManagementAlertRecordOperationPredicate) Matches

type GetMonitoringAlertRecordOperationOptions

type GetMonitoringAlertRecordOperationOptions struct {
	Expand    *odata.Expand
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Select    *[]string
}

func DefaultGetMonitoringAlertRecordOperationOptions

func DefaultGetMonitoringAlertRecordOperationOptions() GetMonitoringAlertRecordOperationOptions

func (GetMonitoringAlertRecordOperationOptions) ToHeaders

func (GetMonitoringAlertRecordOperationOptions) ToOData

func (GetMonitoringAlertRecordOperationOptions) ToQuery

type GetMonitoringAlertRecordOperationResponse

type GetMonitoringAlertRecordOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceManagementAlertRecord
}

type GetMonitoringAlertRecordsCountOperationOptions

type GetMonitoringAlertRecordsCountOperationOptions struct {
	Filter    *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Search    *string
}

func DefaultGetMonitoringAlertRecordsCountOperationOptions

func DefaultGetMonitoringAlertRecordsCountOperationOptions() GetMonitoringAlertRecordsCountOperationOptions

func (GetMonitoringAlertRecordsCountOperationOptions) ToHeaders

func (GetMonitoringAlertRecordsCountOperationOptions) ToOData

func (GetMonitoringAlertRecordsCountOperationOptions) ToQuery

type GetMonitoringAlertRecordsCountOperationResponse

type GetMonitoringAlertRecordsCountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]byte
}

type ListMonitoringAlertRecordsCompleteResult

type ListMonitoringAlertRecordsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceManagementAlertRecord
}

type ListMonitoringAlertRecordsCustomPager

type ListMonitoringAlertRecordsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListMonitoringAlertRecordsOperationOptions

type ListMonitoringAlertRecordsOperationOptions struct {
	Count     *bool
	Expand    *odata.Expand
	Filter    *string
	Metadata  *odata.Metadata
	OrderBy   *odata.OrderBy
	RetryFunc client.RequestRetryFunc
	Search    *string
	Select    *[]string
	Skip      *int64
	Top       *int64
}

func DefaultListMonitoringAlertRecordsOperationOptions

func DefaultListMonitoringAlertRecordsOperationOptions() ListMonitoringAlertRecordsOperationOptions

func (ListMonitoringAlertRecordsOperationOptions) ToHeaders

func (ListMonitoringAlertRecordsOperationOptions) ToOData

func (ListMonitoringAlertRecordsOperationOptions) ToQuery

type ListMonitoringAlertRecordsOperationResponse

type ListMonitoringAlertRecordsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceManagementAlertRecord
}

type MonitoringAlertRecordClient

type MonitoringAlertRecordClient struct {
	Client *msgraph.Client
}

func NewMonitoringAlertRecordClientWithBaseURI

func NewMonitoringAlertRecordClientWithBaseURI(sdkApi sdkEnv.Api) (*MonitoringAlertRecordClient, error)

func (MonitoringAlertRecordClient) CreateMonitoringAlertRecord

CreateMonitoringAlertRecord - Create new navigation property to alertRecords for deviceManagement

func (MonitoringAlertRecordClient) CreateMonitoringAlertRecordDeviceManagementChangePortalNotificationAsSent

CreateMonitoringAlertRecordDeviceManagementChangePortalNotificationAsSent - Invoke action changeAlertRecordsPortalNotificationAsSent. Set the isPortalNotificationSent property of all portal notification resources associated with the specified alertRecord to true, marking them as sent. A maximum of 100 alertRecord IDs can be received at one time, and a maximum of 100 portal notification resources can be changed in the isPortalNotificationSent property status.

func (MonitoringAlertRecordClient) CreateMonitoringAlertRecordDeviceManagementSetPortalNotificationAsSent

CreateMonitoringAlertRecordDeviceManagementSetPortalNotificationAsSent - Invoke action setPortalNotificationAsSent. Set the status of the notification associated with the specified alertRecord on the Microsoft EndPoint Manager admin center as sent, by setting the isPortalNotificationSent property of the portal notification to true.

func (MonitoringAlertRecordClient) DeleteMonitoringAlertRecord

DeleteMonitoringAlertRecord - Delete navigation property alertRecords for deviceManagement

func (MonitoringAlertRecordClient) GetMonitoringAlertRecord

GetMonitoringAlertRecord - Get alertRecord. Read the properties and relationships of an alertRecord object.

func (MonitoringAlertRecordClient) GetMonitoringAlertRecordsCount

GetMonitoringAlertRecordsCount - Get the number of the resource

func (MonitoringAlertRecordClient) ListMonitoringAlertRecords

ListMonitoringAlertRecords - List alertRecords. Get a list of the alertRecord objects and their properties.

func (MonitoringAlertRecordClient) ListMonitoringAlertRecordsComplete

ListMonitoringAlertRecordsComplete retrieves all the results into a single object

func (MonitoringAlertRecordClient) ListMonitoringAlertRecordsCompleteMatchingPredicate

ListMonitoringAlertRecordsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MonitoringAlertRecordClient) UpdateMonitoringAlertRecord

UpdateMonitoringAlertRecord - Update the navigation property alertRecords in deviceManagement

type UpdateMonitoringAlertRecordOperationOptions

type UpdateMonitoringAlertRecordOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultUpdateMonitoringAlertRecordOperationOptions

func DefaultUpdateMonitoringAlertRecordOperationOptions() UpdateMonitoringAlertRecordOperationOptions

func (UpdateMonitoringAlertRecordOperationOptions) ToHeaders

func (UpdateMonitoringAlertRecordOperationOptions) ToOData

func (UpdateMonitoringAlertRecordOperationOptions) ToQuery

type UpdateMonitoringAlertRecordOperationResponse

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

Jump to

Keyboard shortcuts

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