monitors

package
v0.20240731.1170959 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2024-03-01/monitors Documentation

The monitors SDK allows for interaction with the Azure Resource Manager Service newrelic (API Version 2024-03-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2024-03-01/monitors"

Client Initialization

client := monitors.NewMonitorsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MonitorsClient.CreateOrUpdate

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

payload := monitors.NewRelicMonitorResource{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: MonitorsClient.Delete

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

if err := client.DeleteThenPoll(ctx, id, monitors.DefaultDeleteOperationOptions()); err != nil {
	// handle the error
}

Example Usage: MonitorsClient.Get

ctx := context.TODO()
id := monitors.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: MonitorsClient.GetMetricRules

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

payload := monitors.MetricsRequest{
	// ...
}


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

Example Usage: MonitorsClient.GetMetricStatus

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

payload := monitors.MetricsStatusRequest{
	// ...
}


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

Example Usage: MonitorsClient.ListAppServices

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

payload := monitors.AppServicesGetRequest{
	// ...
}


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

Example Usage: MonitorsClient.ListByResourceGroup

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

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

Example Usage: MonitorsClient.ListBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: MonitorsClient.ListHosts

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

payload := monitors.HostsGetRequest{
	// ...
}


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

Example Usage: MonitorsClient.ListMonitoredResources

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

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

Example Usage: MonitorsClient.SwitchBilling

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

payload := monitors.SwitchBillingRequest{
	// ...
}


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

Example Usage: MonitorsClient.Update

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

payload := monitors.NewRelicMonitorResourceUpdate{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: MonitorsClient.VMHostPayload

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

read, err := client.VMHostPayload(ctx, id)
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 PossibleValuesForAccountCreationSource

func PossibleValuesForAccountCreationSource() []string

func PossibleValuesForLiftrResourceCategories

func PossibleValuesForLiftrResourceCategories() []string

func PossibleValuesForMarketplaceSubscriptionStatus

func PossibleValuesForMarketplaceSubscriptionStatus() []string

func PossibleValuesForMonitoringStatus

func PossibleValuesForMonitoringStatus() []string

func PossibleValuesForOrgCreationSource

func PossibleValuesForOrgCreationSource() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForSendMetricsStatus

func PossibleValuesForSendMetricsStatus() []string

func PossibleValuesForSendingLogsStatus

func PossibleValuesForSendingLogsStatus() []string

func PossibleValuesForSendingMetricsStatus

func PossibleValuesForSendingMetricsStatus() []string

func PossibleValuesForSingleSignOnStates

func PossibleValuesForSingleSignOnStates() []string

func PossibleValuesForTagAction

func PossibleValuesForTagAction() []string

func PossibleValuesForUsageType

func PossibleValuesForUsageType() []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 AccountCreationSource

type AccountCreationSource string
const (
	AccountCreationSourceLIFTR    AccountCreationSource = "LIFTR"
	AccountCreationSourceNEWRELIC AccountCreationSource = "NEWRELIC"
)

func (*AccountCreationSource) UnmarshalJSON

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

type AccountInfo

type AccountInfo struct {
	AccountId    *string `json:"accountId,omitempty"`
	IngestionKey *string `json:"ingestionKey,omitempty"`
	Region       *string `json:"region,omitempty"`
}

type AppServiceInfo

type AppServiceInfo struct {
	AgentStatus     *string `json:"agentStatus,omitempty"`
	AgentVersion    *string `json:"agentVersion,omitempty"`
	AzureResourceId *string `json:"azureResourceId,omitempty"`
}

type AppServiceInfoOperationPredicate

type AppServiceInfoOperationPredicate struct {
	AgentStatus     *string
	AgentVersion    *string
	AzureResourceId *string
}

func (AppServiceInfoOperationPredicate) Matches

type AppServicesGetRequest

type AppServicesGetRequest struct {
	AzureResourceIds *[]string `json:"azureResourceIds,omitempty"`
	UserEmail        string    `json:"userEmail"`
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NewRelicMonitorResource
}

type DeleteOperationOptions

type DeleteOperationOptions struct {
	UserEmail *string
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

func (DeleteOperationOptions) ToHeaders

func (o DeleteOperationOptions) ToHeaders() *client.Headers

func (DeleteOperationOptions) ToOData

func (o DeleteOperationOptions) ToOData() *odata.Query

func (DeleteOperationOptions) ToQuery

type DeleteOperationResponse

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

type FilteringTag

type FilteringTag struct {
	Action *TagAction `json:"action,omitempty"`
	Name   *string    `json:"name,omitempty"`
	Value  *string    `json:"value,omitempty"`
}

type GetMetricRulesOperationResponse

type GetMetricRulesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *MetricRules
}

type GetMetricStatusOperationResponse

type GetMetricStatusOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *MetricsStatusResponse
}

type GetOperationResponse

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

type HostsGetRequest

type HostsGetRequest struct {
	UserEmail string    `json:"userEmail"`
	VMIds     *[]string `json:"vmIds,omitempty"`
}

type LiftrResourceCategories

type LiftrResourceCategories string
const (
	LiftrResourceCategoriesMonitorLogs LiftrResourceCategories = "MonitorLogs"
	LiftrResourceCategoriesUnknown     LiftrResourceCategories = "Unknown"
)

func (*LiftrResourceCategories) UnmarshalJSON

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

type ListAppServicesCompleteResult

type ListAppServicesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []AppServiceInfo
}

type ListAppServicesCustomPager added in v0.20240628.1153531

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

type ListAppServicesOperationResponse

type ListAppServicesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]AppServiceInfo
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []NewRelicMonitorResource
}

type ListByResourceGroupCustomPager added in v0.20240628.1153531

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

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]NewRelicMonitorResource
}

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []NewRelicMonitorResource
}

type ListBySubscriptionCustomPager added in v0.20240628.1153531

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

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]NewRelicMonitorResource
}

type ListHostsCompleteResult

type ListHostsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []VMInfo
}

type ListHostsCustomPager added in v0.20240628.1153531

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

type ListHostsOperationResponse

type ListHostsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VMInfo
}

type ListMonitoredResourcesCompleteResult

type ListMonitoredResourcesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []MonitoredResource
}

type ListMonitoredResourcesCustomPager added in v0.20240628.1153531

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

type ListMonitoredResourcesOperationResponse

type ListMonitoredResourcesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]MonitoredResource
}

type MarketplaceSubscriptionStatus

type MarketplaceSubscriptionStatus string
const (
	MarketplaceSubscriptionStatusActive    MarketplaceSubscriptionStatus = "Active"
	MarketplaceSubscriptionStatusSuspended MarketplaceSubscriptionStatus = "Suspended"
)

func (*MarketplaceSubscriptionStatus) UnmarshalJSON

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

type MetricRules

type MetricRules struct {
	FilteringTags *[]FilteringTag    `json:"filteringTags,omitempty"`
	SendMetrics   *SendMetricsStatus `json:"sendMetrics,omitempty"`
	UserEmail     *string            `json:"userEmail,omitempty"`
}

type MetricsRequest

type MetricsRequest struct {
	UserEmail string `json:"userEmail"`
}

type MetricsStatusRequest

type MetricsStatusRequest struct {
	AzureResourceIds *[]string `json:"azureResourceIds,omitempty"`
	UserEmail        string    `json:"userEmail"`
}

type MetricsStatusResponse

type MetricsStatusResponse struct {
	AzureResourceIds *[]string `json:"azureResourceIds,omitempty"`
}

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 MonitorProperties

type MonitorProperties struct {
	AccountCreationSource         *AccountCreationSource         `json:"accountCreationSource,omitempty"`
	LiftrResourceCategory         *LiftrResourceCategories       `json:"liftrResourceCategory,omitempty"`
	LiftrResourcePreference       *int64                         `json:"liftrResourcePreference,omitempty"`
	MarketplaceSubscriptionId     *string                        `json:"marketplaceSubscriptionId,omitempty"`
	MarketplaceSubscriptionStatus *MarketplaceSubscriptionStatus `json:"marketplaceSubscriptionStatus,omitempty"`
	MonitoringStatus              *MonitoringStatus              `json:"monitoringStatus,omitempty"`
	NewRelicAccountProperties     *NewRelicAccountProperties     `json:"newRelicAccountProperties,omitempty"`
	OrgCreationSource             *OrgCreationSource             `json:"orgCreationSource,omitempty"`
	PlanData                      *PlanData                      `json:"planData,omitempty"`
	ProvisioningState             *ProvisioningState             `json:"provisioningState,omitempty"`
	SaaSAzureSubscriptionStatus   *string                        `json:"saaSAzureSubscriptionStatus,omitempty"`
	SubscriptionState             *string                        `json:"subscriptionState,omitempty"`
	UserInfo                      *UserInfo                      `json:"userInfo,omitempty"`
}

type MonitoredResource

type MonitoredResource struct {
	Id                     *string               `json:"id,omitempty"`
	ReasonForLogsStatus    *string               `json:"reasonForLogsStatus,omitempty"`
	ReasonForMetricsStatus *string               `json:"reasonForMetricsStatus,omitempty"`
	SendingLogs            *SendingLogsStatus    `json:"sendingLogs,omitempty"`
	SendingMetrics         *SendingMetricsStatus `json:"sendingMetrics,omitempty"`
}

type MonitoredResourceOperationPredicate

type MonitoredResourceOperationPredicate struct {
	Id                     *string
	ReasonForLogsStatus    *string
	ReasonForMetricsStatus *string
}

func (MonitoredResourceOperationPredicate) Matches

type MonitoringStatus

type MonitoringStatus string
const (
	MonitoringStatusDisabled MonitoringStatus = "Disabled"
	MonitoringStatusEnabled  MonitoringStatus = "Enabled"
)

func (*MonitoringStatus) UnmarshalJSON

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

type MonitorsClient

type MonitorsClient struct {
	Client *resourcemanager.Client
}

func NewMonitorsClientWithBaseURI

func NewMonitorsClientWithBaseURI(sdkApi sdkEnv.Api) (*MonitorsClient, error)

func (MonitorsClient) CreateOrUpdate

CreateOrUpdate ...

func (MonitorsClient) CreateOrUpdateThenPoll

func (c MonitorsClient) CreateOrUpdateThenPoll(ctx context.Context, id MonitorId, input NewRelicMonitorResource) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (MonitorsClient) Delete

Delete ...

func (MonitorsClient) DeleteThenPoll

func (c MonitorsClient) DeleteThenPoll(ctx context.Context, id MonitorId, options DeleteOperationOptions) error

DeleteThenPoll performs Delete then polls until it's completed

func (MonitorsClient) Get

func (c MonitorsClient) Get(ctx context.Context, id MonitorId) (result GetOperationResponse, err error)

Get ...

func (MonitorsClient) GetMetricRules

func (c MonitorsClient) GetMetricRules(ctx context.Context, id MonitorId, input MetricsRequest) (result GetMetricRulesOperationResponse, err error)

GetMetricRules ...

func (MonitorsClient) GetMetricStatus

func (c MonitorsClient) GetMetricStatus(ctx context.Context, id MonitorId, input MetricsStatusRequest) (result GetMetricStatusOperationResponse, err error)

GetMetricStatus ...

func (MonitorsClient) ListAppServices

ListAppServices ...

func (MonitorsClient) ListAppServicesComplete

ListAppServicesComplete retrieves all the results into a single object

func (MonitorsClient) ListAppServicesCompleteMatchingPredicate

func (c MonitorsClient) ListAppServicesCompleteMatchingPredicate(ctx context.Context, id MonitorId, input AppServicesGetRequest, predicate AppServiceInfoOperationPredicate) (result ListAppServicesCompleteResult, err error)

ListAppServicesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MonitorsClient) ListByResourceGroup

ListByResourceGroup ...

func (MonitorsClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (MonitorsClient) ListByResourceGroupCompleteMatchingPredicate

func (c MonitorsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate NewRelicMonitorResourceOperationPredicate) (result ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MonitorsClient) ListBySubscription

ListBySubscription ...

func (MonitorsClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (MonitorsClient) ListBySubscriptionCompleteMatchingPredicate

func (c MonitorsClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate NewRelicMonitorResourceOperationPredicate) (result ListBySubscriptionCompleteResult, err error)

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MonitorsClient) ListHosts

func (c MonitorsClient) ListHosts(ctx context.Context, id MonitorId, input HostsGetRequest) (result ListHostsOperationResponse, err error)

ListHosts ...

func (MonitorsClient) ListHostsComplete

func (c MonitorsClient) ListHostsComplete(ctx context.Context, id MonitorId, input HostsGetRequest) (ListHostsCompleteResult, error)

ListHostsComplete retrieves all the results into a single object

func (MonitorsClient) ListHostsCompleteMatchingPredicate

func (c MonitorsClient) ListHostsCompleteMatchingPredicate(ctx context.Context, id MonitorId, input HostsGetRequest, predicate VMInfoOperationPredicate) (result ListHostsCompleteResult, err error)

ListHostsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MonitorsClient) ListMonitoredResources

func (c MonitorsClient) ListMonitoredResources(ctx context.Context, id MonitorId) (result ListMonitoredResourcesOperationResponse, err error)

ListMonitoredResources ...

func (MonitorsClient) ListMonitoredResourcesComplete

func (c MonitorsClient) ListMonitoredResourcesComplete(ctx context.Context, id MonitorId) (ListMonitoredResourcesCompleteResult, error)

ListMonitoredResourcesComplete retrieves all the results into a single object

func (MonitorsClient) ListMonitoredResourcesCompleteMatchingPredicate

func (c MonitorsClient) ListMonitoredResourcesCompleteMatchingPredicate(ctx context.Context, id MonitorId, predicate MonitoredResourceOperationPredicate) (result ListMonitoredResourcesCompleteResult, err error)

ListMonitoredResourcesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MonitorsClient) SwitchBilling

SwitchBilling ...

func (MonitorsClient) Update

Update ...

func (MonitorsClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

func (MonitorsClient) VMHostPayload

func (c MonitorsClient) VMHostPayload(ctx context.Context, id MonitorId) (result VMHostPayloadOperationResponse, err error)

VMHostPayload ...

type NewRelicAccountProperties

type NewRelicAccountProperties struct {
	AccountInfo            *AccountInfo                    `json:"accountInfo,omitempty"`
	OrganizationInfo       *OrganizationInfo               `json:"organizationInfo,omitempty"`
	SingleSignOnProperties *NewRelicSingleSignOnProperties `json:"singleSignOnProperties,omitempty"`
	UserId                 *string                         `json:"userId,omitempty"`
}

type NewRelicMonitorResource

type NewRelicMonitorResource struct {
	Id         *string                  `json:"id,omitempty"`
	Identity   *identity.SystemAssigned `json:"identity,omitempty"`
	Location   string                   `json:"location"`
	Name       *string                  `json:"name,omitempty"`
	Properties MonitorProperties        `json:"properties"`
	SystemData *systemdata.SystemData   `json:"systemData,omitempty"`
	Tags       *map[string]string       `json:"tags,omitempty"`
	Type       *string                  `json:"type,omitempty"`
}

type NewRelicMonitorResourceOperationPredicate

type NewRelicMonitorResourceOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (NewRelicMonitorResourceOperationPredicate) Matches

type NewRelicMonitorResourceUpdate

type NewRelicMonitorResourceUpdate struct {
	Identity   *identity.SystemAssigned                 `json:"identity,omitempty"`
	Properties *NewRelicMonitorResourceUpdateProperties `json:"properties,omitempty"`
	Tags       *map[string]string                       `json:"tags,omitempty"`
}

type NewRelicMonitorResourceUpdateProperties

type NewRelicMonitorResourceUpdateProperties struct {
	AccountCreationSource     *AccountCreationSource     `json:"accountCreationSource,omitempty"`
	NewRelicAccountProperties *NewRelicAccountProperties `json:"newRelicAccountProperties,omitempty"`
	OrgCreationSource         *OrgCreationSource         `json:"orgCreationSource,omitempty"`
	PlanData                  *PlanData                  `json:"planData,omitempty"`
	UserInfo                  *UserInfo                  `json:"userInfo,omitempty"`
}

type NewRelicSingleSignOnProperties

type NewRelicSingleSignOnProperties struct {
	EnterpriseAppId   *string             `json:"enterpriseAppId,omitempty"`
	ProvisioningState *ProvisioningState  `json:"provisioningState,omitempty"`
	SingleSignOnState *SingleSignOnStates `json:"singleSignOnState,omitempty"`
	SingleSignOnUrl   *string             `json:"singleSignOnUrl,omitempty"`
}

type OrgCreationSource

type OrgCreationSource string
const (
	OrgCreationSourceLIFTR    OrgCreationSource = "LIFTR"
	OrgCreationSourceNEWRELIC OrgCreationSource = "NEWRELIC"
)

func (*OrgCreationSource) UnmarshalJSON

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

type OrganizationInfo

type OrganizationInfo struct {
	OrganizationId *string `json:"organizationId,omitempty"`
}

type PlanData

type PlanData struct {
	BillingCycle  *string    `json:"billingCycle,omitempty"`
	EffectiveDate *string    `json:"effectiveDate,omitempty"`
	PlanDetails   *string    `json:"planDetails,omitempty"`
	UsageType     *UsageType `json:"usageType,omitempty"`
}

func (*PlanData) GetEffectiveDateAsTime

func (o *PlanData) GetEffectiveDateAsTime() (*time.Time, error)

func (*PlanData) SetEffectiveDateAsTime

func (o *PlanData) SetEffectiveDateAsTime(input time.Time)

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted     ProvisioningState = "Accepted"
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateCreating     ProvisioningState = "Creating"
	ProvisioningStateDeleted      ProvisioningState = "Deleted"
	ProvisioningStateDeleting     ProvisioningState = "Deleting"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateNotSpecified ProvisioningState = "NotSpecified"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
	ProvisioningStateUpdating     ProvisioningState = "Updating"
)

func (*ProvisioningState) UnmarshalJSON

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

type SendMetricsStatus

type SendMetricsStatus string
const (
	SendMetricsStatusDisabled SendMetricsStatus = "Disabled"
	SendMetricsStatusEnabled  SendMetricsStatus = "Enabled"
)

func (*SendMetricsStatus) UnmarshalJSON

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

type SendingLogsStatus

type SendingLogsStatus string
const (
	SendingLogsStatusDisabled SendingLogsStatus = "Disabled"
	SendingLogsStatusEnabled  SendingLogsStatus = "Enabled"
)

func (*SendingLogsStatus) UnmarshalJSON

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

type SendingMetricsStatus

type SendingMetricsStatus string
const (
	SendingMetricsStatusDisabled SendingMetricsStatus = "Disabled"
	SendingMetricsStatusEnabled  SendingMetricsStatus = "Enabled"
)

func (*SendingMetricsStatus) UnmarshalJSON

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

type SingleSignOnStates

type SingleSignOnStates string
const (
	SingleSignOnStatesDisable  SingleSignOnStates = "Disable"
	SingleSignOnStatesEnable   SingleSignOnStates = "Enable"
	SingleSignOnStatesExisting SingleSignOnStates = "Existing"
	SingleSignOnStatesInitial  SingleSignOnStates = "Initial"
)

func (*SingleSignOnStates) UnmarshalJSON

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

type SwitchBillingOperationResponse

type SwitchBillingOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NewRelicMonitorResource
}

type SwitchBillingRequest

type SwitchBillingRequest struct {
	AzureResourceId *string   `json:"azureResourceId,omitempty"`
	OrganizationId  *string   `json:"organizationId,omitempty"`
	PlanData        *PlanData `json:"planData,omitempty"`
	UserEmail       string    `json:"userEmail"`
}

type TagAction

type TagAction string
const (
	TagActionExclude TagAction = "Exclude"
	TagActionInclude TagAction = "Include"
)

func (*TagAction) UnmarshalJSON

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NewRelicMonitorResource
}

type UsageType

type UsageType string
const (
	UsageTypeCOMMITTED UsageType = "COMMITTED"
	UsageTypePAYG      UsageType = "PAYG"
)

func (*UsageType) UnmarshalJSON

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

type UserInfo

type UserInfo struct {
	Country      *string `json:"country,omitempty"`
	EmailAddress *string `json:"emailAddress,omitempty"`
	FirstName    *string `json:"firstName,omitempty"`
	LastName     *string `json:"lastName,omitempty"`
	PhoneNumber  *string `json:"phoneNumber,omitempty"`
}

type VMExtensionPayload

type VMExtensionPayload struct {
	IngestionKey *string `json:"ingestionKey,omitempty"`
}

type VMHostPayloadOperationResponse

type VMHostPayloadOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VMExtensionPayload
}

type VMInfo

type VMInfo struct {
	AgentStatus  *string `json:"agentStatus,omitempty"`
	AgentVersion *string `json:"agentVersion,omitempty"`
	VMId         *string `json:"vmId,omitempty"`
}

type VMInfoOperationPredicate

type VMInfoOperationPredicate struct {
	AgentStatus  *string
	AgentVersion *string
	VMId         *string
}

func (VMInfoOperationPredicate) Matches

func (p VMInfoOperationPredicate) Matches(input VMInfo) bool

Jump to

Keyboard shortcuts

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