Documentation
¶
Overview ¶
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Index ¶
- Constants
- type Actions
- type Actions_STATUS
- type Condition
- type Condition_FailingPeriods
- type Condition_FailingPeriods_STATUS
- type Condition_Operator
- type Condition_Operator_STATUS
- type Condition_STATUS
- type Condition_TimeAggregation
- type Condition_TimeAggregation_STATUS
- type Dimension
- type Dimension_Operator
- type Dimension_Operator_STATUS
- type Dimension_STATUS
- type HeaderField
- type HeaderField_STATUS
- type ScheduledQueryRuleCriteria
- type ScheduledQueryRuleCriteria_STATUS
- type ScheduledQueryRuleProperties
- type ScheduledQueryRuleProperties_STATUS
- type ScheduledQueryRuleProperties_Severity
- type ScheduledQueryRuleProperties_Severity_STATUS
- type ScheduledQueryRule_Kind_STATUS
- type ScheduledQueryRule_Kind_Spec
- type ScheduledQueryRule_STATUS
- type ScheduledQueryRule_Spec
- type SystemData_CreatedByType_STATUS
- type SystemData_LastModifiedByType_STATUS
- type SystemData_STATUS
- type WebTestGeolocation
- type WebTestGeolocation_STATUS
- type WebTestProperties
- type WebTestProperties_Configuration
- type WebTestProperties_Configuration_STATUS
- type WebTestProperties_Kind
- type WebTestProperties_Kind_STATUS
- type WebTestProperties_Request
- type WebTestProperties_Request_STATUS
- type WebTestProperties_STATUS
- type WebTestProperties_ValidationRules
- type WebTestProperties_ValidationRules_ContentValidation
- type WebTestProperties_ValidationRules_ContentValidation_STATUS
- type WebTestProperties_ValidationRules_STATUS
- type Webtest_STATUS
- type Webtest_Spec
Constants ¶
const ( ScheduledQueryRule_Kind_Spec_LogAlert = ScheduledQueryRule_Kind_Spec("LogAlert") ScheduledQueryRule_Kind_Spec_LogToMetric = ScheduledQueryRule_Kind_Spec("LogToMetric") )
const ( ScheduledQueryRuleProperties_Severity_0 = ScheduledQueryRuleProperties_Severity(0) ScheduledQueryRuleProperties_Severity_1 = ScheduledQueryRuleProperties_Severity(1) ScheduledQueryRuleProperties_Severity_2 = ScheduledQueryRuleProperties_Severity(2) ScheduledQueryRuleProperties_Severity_3 = ScheduledQueryRuleProperties_Severity(3) ScheduledQueryRuleProperties_Severity_4 = ScheduledQueryRuleProperties_Severity(4) )
const ( Condition_Operator_Equals = Condition_Operator("Equals") Condition_Operator_GreaterThan = Condition_Operator("GreaterThan") Condition_Operator_GreaterThanOrEqual = Condition_Operator("GreaterThanOrEqual") Condition_Operator_LessThan = Condition_Operator("LessThan") Condition_Operator_LessThanOrEqual = Condition_Operator("LessThanOrEqual") )
const ( Condition_TimeAggregation_Average = Condition_TimeAggregation("Average") Condition_TimeAggregation_Count = Condition_TimeAggregation("Count") Condition_TimeAggregation_Maximum = Condition_TimeAggregation("Maximum") Condition_TimeAggregation_Minimum = Condition_TimeAggregation("Minimum") Condition_TimeAggregation_Total = Condition_TimeAggregation("Total") )
const ( Dimension_Operator_Exclude = Dimension_Operator("Exclude") Dimension_Operator_Include = Dimension_Operator("Include") )
const ( ScheduledQueryRule_Kind_STATUS_LogAlert = ScheduledQueryRule_Kind_STATUS("LogAlert") ScheduledQueryRule_Kind_STATUS_LogToMetric = ScheduledQueryRule_Kind_STATUS("LogToMetric") )
const ( ScheduledQueryRuleProperties_Severity_STATUS_0 = ScheduledQueryRuleProperties_Severity_STATUS(0) ScheduledQueryRuleProperties_Severity_STATUS_1 = ScheduledQueryRuleProperties_Severity_STATUS(1) ScheduledQueryRuleProperties_Severity_STATUS_2 = ScheduledQueryRuleProperties_Severity_STATUS(2) ScheduledQueryRuleProperties_Severity_STATUS_3 = ScheduledQueryRuleProperties_Severity_STATUS(3) ScheduledQueryRuleProperties_Severity_STATUS_4 = ScheduledQueryRuleProperties_Severity_STATUS(4) )
const ( SystemData_CreatedByType_STATUS_Application = SystemData_CreatedByType_STATUS("Application") SystemData_CreatedByType_STATUS_Key = SystemData_CreatedByType_STATUS("Key") SystemData_CreatedByType_STATUS_ManagedIdentity = SystemData_CreatedByType_STATUS("ManagedIdentity") SystemData_CreatedByType_STATUS_User = SystemData_CreatedByType_STATUS("User") )
const ( SystemData_LastModifiedByType_STATUS_Application = SystemData_LastModifiedByType_STATUS("Application") SystemData_LastModifiedByType_STATUS_Key = SystemData_LastModifiedByType_STATUS("Key") SystemData_LastModifiedByType_STATUS_ManagedIdentity = SystemData_LastModifiedByType_STATUS("ManagedIdentity") SystemData_LastModifiedByType_STATUS_User = SystemData_LastModifiedByType_STATUS("User") )
const ( Condition_Operator_STATUS_Equals = Condition_Operator_STATUS("Equals") Condition_Operator_STATUS_GreaterThan = Condition_Operator_STATUS("GreaterThan") Condition_Operator_STATUS_GreaterThanOrEqual = Condition_Operator_STATUS("GreaterThanOrEqual") Condition_Operator_STATUS_LessThan = Condition_Operator_STATUS("LessThan") Condition_Operator_STATUS_LessThanOrEqual = Condition_Operator_STATUS("LessThanOrEqual") )
const ( Condition_TimeAggregation_STATUS_Average = Condition_TimeAggregation_STATUS("Average") Condition_TimeAggregation_STATUS_Count = Condition_TimeAggregation_STATUS("Count") Condition_TimeAggregation_STATUS_Maximum = Condition_TimeAggregation_STATUS("Maximum") Condition_TimeAggregation_STATUS_Minimum = Condition_TimeAggregation_STATUS("Minimum") Condition_TimeAggregation_STATUS_Total = Condition_TimeAggregation_STATUS("Total") )
const ( Dimension_Operator_STATUS_Exclude = Dimension_Operator_STATUS("Exclude") Dimension_Operator_STATUS_Include = Dimension_Operator_STATUS("Include") )
const ( WebTestProperties_Kind_Multistep = WebTestProperties_Kind("multistep") WebTestProperties_Kind_Ping = WebTestProperties_Kind("ping") WebTestProperties_Kind_Standard = WebTestProperties_Kind("standard") )
const ( WebTestProperties_Kind_STATUS_Multistep = WebTestProperties_Kind_STATUS("multistep") WebTestProperties_Kind_STATUS_Ping = WebTestProperties_Kind_STATUS("ping") WebTestProperties_Kind_STATUS_Standard = WebTestProperties_Kind_STATUS("standard") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions struct {
ActionGroups []string `json:"actionGroups,omitempty"`
// CustomProperties: The properties of an alert payload.
CustomProperties map[string]string `json:"customProperties,omitempty"`
}
Actions to invoke when the alert fires.
type Actions_STATUS ¶
type Actions_STATUS struct {
// ActionGroups: Action Group resource Ids to invoke when the alert fires.
ActionGroups []string `json:"actionGroups,omitempty"`
// CustomProperties: The properties of an alert payload.
CustomProperties map[string]string `json:"customProperties,omitempty"`
}
Actions to invoke when the alert fires.
type Condition ¶
type Condition struct {
// Dimensions: List of Dimensions conditions
Dimensions []Dimension `json:"dimensions,omitempty"`
// FailingPeriods: The minimum number of violations required within the selected lookback time window required to raise an
// alert. Relevant only for rules of the kind LogAlert.
FailingPeriods *Condition_FailingPeriods `json:"failingPeriods,omitempty"`
// MetricMeasureColumn: The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
MetricMeasureColumn *string `json:"metricMeasureColumn,omitempty"`
// MetricName: The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
MetricName *string `json:"metricName,omitempty"`
// Operator: The criteria operator. Relevant and required only for rules of the kind LogAlert.
Operator *Condition_Operator `json:"operator,omitempty"`
// Query: Log query alert
Query *string `json:"query,omitempty"`
ResourceIdColumn *string `json:"resourceIdColumn,omitempty"`
// Threshold: the criteria threshold value that activates the alert. Relevant and required only for rules of the kind
// LogAlert.
Threshold *float64 `json:"threshold,omitempty"`
// TimeAggregation: Aggregation type. Relevant and required only for rules of the kind LogAlert.
TimeAggregation *Condition_TimeAggregation `json:"timeAggregation,omitempty"`
}
A condition of the scheduled query rule.
type Condition_FailingPeriods ¶
type Condition_FailingPeriods struct {
// MinFailingPeriodsToAlert: The number of violations to trigger an alert. Should be smaller or equal to
// numberOfEvaluationPeriods. Default value is 1
MinFailingPeriodsToAlert *int `json:"minFailingPeriodsToAlert,omitempty"`
// NumberOfEvaluationPeriods: The number of aggregated lookback points. The lookback time window is calculated based on the
// aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
NumberOfEvaluationPeriods *int `json:"numberOfEvaluationPeriods,omitempty"`
}
type Condition_FailingPeriods_STATUS ¶
type Condition_FailingPeriods_STATUS struct {
// MinFailingPeriodsToAlert: The number of violations to trigger an alert. Should be smaller or equal to
// numberOfEvaluationPeriods. Default value is 1
MinFailingPeriodsToAlert *int `json:"minFailingPeriodsToAlert,omitempty"`
// NumberOfEvaluationPeriods: The number of aggregated lookback points. The lookback time window is calculated based on the
// aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1
NumberOfEvaluationPeriods *int `json:"numberOfEvaluationPeriods,omitempty"`
}
type Condition_Operator ¶
type Condition_Operator string
+kubebuilder:validation:Enum={"Equals","GreaterThan","GreaterThanOrEqual","LessThan","LessThanOrEqual"}
type Condition_Operator_STATUS ¶
type Condition_Operator_STATUS string
type Condition_STATUS ¶
type Condition_STATUS struct {
// Dimensions: List of Dimensions conditions
Dimensions []Dimension_STATUS `json:"dimensions,omitempty"`
// FailingPeriods: The minimum number of violations required within the selected lookback time window required to raise an
// alert. Relevant only for rules of the kind LogAlert.
FailingPeriods *Condition_FailingPeriods_STATUS `json:"failingPeriods,omitempty"`
// MetricMeasureColumn: The column containing the metric measure number. Relevant only for rules of the kind LogAlert.
MetricMeasureColumn *string `json:"metricMeasureColumn,omitempty"`
// MetricName: The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.
MetricName *string `json:"metricName,omitempty"`
// Operator: The criteria operator. Relevant and required only for rules of the kind LogAlert.
Operator *Condition_Operator_STATUS `json:"operator,omitempty"`
// Query: Log query alert
Query *string `json:"query,omitempty"`
// ResourceIdColumn: The column containing the resource id. The content of the column must be a uri formatted as resource
// id. Relevant only for rules of the kind LogAlert.
ResourceIdColumn *string `json:"resourceIdColumn,omitempty"`
// Threshold: the criteria threshold value that activates the alert. Relevant and required only for rules of the kind
// LogAlert.
Threshold *float64 `json:"threshold,omitempty"`
// TimeAggregation: Aggregation type. Relevant and required only for rules of the kind LogAlert.
TimeAggregation *Condition_TimeAggregation_STATUS `json:"timeAggregation,omitempty"`
}
A condition of the scheduled query rule.
type Condition_TimeAggregation ¶
type Condition_TimeAggregation string
+kubebuilder:validation:Enum={"Average","Count","Maximum","Minimum","Total"}
type Condition_TimeAggregation_STATUS ¶
type Condition_TimeAggregation_STATUS string
type Dimension ¶
type Dimension struct {
// Name: Name of the dimension
Name *string `json:"name,omitempty"`
// Operator: Operator for dimension values
Operator *Dimension_Operator `json:"operator,omitempty"`
// Values: List of dimension values
Values []string `json:"values,omitempty"`
}
Dimension splitting and filtering definition
type Dimension_Operator ¶
type Dimension_Operator string
+kubebuilder:validation:Enum={"Exclude","Include"}
type Dimension_Operator_STATUS ¶
type Dimension_Operator_STATUS string
type Dimension_STATUS ¶
type Dimension_STATUS struct {
// Name: Name of the dimension
Name *string `json:"name,omitempty"`
// Operator: Operator for dimension values
Operator *Dimension_Operator_STATUS `json:"operator,omitempty"`
// Values: List of dimension values
Values []string `json:"values,omitempty"`
}
Dimension splitting and filtering definition
type HeaderField ¶
type HeaderField struct {
// Key: The name of the header.
Key *string `json:"key,omitempty"`
// Value: The value of the header.
Value *string `json:"value,omitempty"`
}
A header to add to the WebTest.
type HeaderField_STATUS ¶
type HeaderField_STATUS struct {
// Key: The name of the header.
Key *string `json:"key,omitempty"`
// Value: The value of the header.
Value *string `json:"value,omitempty"`
}
A header to add to the WebTest.
type ScheduledQueryRuleCriteria ¶
type ScheduledQueryRuleCriteria struct {
// AllOf: A list of conditions to evaluate against the specified scopes
AllOf []Condition `json:"allOf,omitempty"`
}
The rule criteria that defines the conditions of the scheduled query rule.
type ScheduledQueryRuleCriteria_STATUS ¶
type ScheduledQueryRuleCriteria_STATUS struct {
// AllOf: A list of conditions to evaluate against the specified scopes
AllOf []Condition_STATUS `json:"allOf,omitempty"`
}
The rule criteria that defines the conditions of the scheduled query rule.
type ScheduledQueryRuleProperties ¶
type ScheduledQueryRuleProperties struct {
// Actions: Actions to invoke when the alert fires.
Actions *Actions `json:"actions,omitempty"`
// AutoMitigate: The flag that indicates whether the alert should be automatically resolved or not. The default is true.
// Relevant only for rules of the kind LogAlert.
AutoMitigate *bool `json:"autoMitigate,omitempty"`
// CheckWorkspaceAlertsStorageConfigured: The flag which indicates whether this scheduled query rule should be stored in
// the customer's storage. The default is false. Relevant only for rules of the kind LogAlert.
CheckWorkspaceAlertsStorageConfigured *bool `json:"checkWorkspaceAlertsStorageConfigured,omitempty"`
// Criteria: The rule criteria that defines the conditions of the scheduled query rule.
Criteria *ScheduledQueryRuleCriteria `json:"criteria,omitempty"`
// Description: The description of the scheduled query rule.
Description *string `json:"description,omitempty"`
// DisplayName: The display name of the alert rule
DisplayName *string `json:"displayName,omitempty"`
// Enabled: The flag which indicates whether this scheduled query rule is enabled. Value should be true or false
Enabled *bool `json:"enabled,omitempty"`
// EvaluationFrequency: How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant
// and required only for rules of the kind LogAlert.
EvaluationFrequency *string `json:"evaluationFrequency,omitempty"`
// MuteActionsDuration: Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired.
// Relevant only for rules of the kind LogAlert.
MuteActionsDuration *string `json:"muteActionsDuration,omitempty"`
// OverrideQueryTimeRange: If specified then overrides the query time range (default is
// WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert.
OverrideQueryTimeRange *string `json:"overrideQueryTimeRange,omitempty"`
Scopes []string `json:"scopes,omitempty"`
// Severity: Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only
// for rules of the kind LogAlert.
Severity *ScheduledQueryRuleProperties_Severity `json:"severity,omitempty"`
// SkipQueryValidation: The flag which indicates whether the provided query should be validated or not. The default is
// false. Relevant only for rules of the kind LogAlert.
SkipQueryValidation *bool `json:"skipQueryValidation,omitempty"`
// TargetResourceTypes: List of resource type of the target resource(s) on which the alert is created/updated. For example
// if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert
// will be fired for each virtual machine in the resource group which meet the alert criteria. Relevant only for rules of
// the kind LogAlert
TargetResourceTypes []string `json:"targetResourceTypes,omitempty"`
// WindowSize: The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size).
// Relevant and required only for rules of the kind LogAlert.
WindowSize *string `json:"windowSize,omitempty"`
}
scheduled query rule Definition
type ScheduledQueryRuleProperties_STATUS ¶
type ScheduledQueryRuleProperties_STATUS struct {
// Actions: Actions to invoke when the alert fires.
Actions *Actions_STATUS `json:"actions,omitempty"`
// AutoMitigate: The flag that indicates whether the alert should be automatically resolved or not. The default is true.
// Relevant only for rules of the kind LogAlert.
AutoMitigate *bool `json:"autoMitigate,omitempty"`
// CheckWorkspaceAlertsStorageConfigured: The flag which indicates whether this scheduled query rule should be stored in
// the customer's storage. The default is false. Relevant only for rules of the kind LogAlert.
CheckWorkspaceAlertsStorageConfigured *bool `json:"checkWorkspaceAlertsStorageConfigured,omitempty"`
// CreatedWithApiVersion: The api-version used when creating this alert rule
CreatedWithApiVersion *string `json:"createdWithApiVersion,omitempty"`
// Criteria: The rule criteria that defines the conditions of the scheduled query rule.
Criteria *ScheduledQueryRuleCriteria_STATUS `json:"criteria,omitempty"`
// Description: The description of the scheduled query rule.
Description *string `json:"description,omitempty"`
// DisplayName: The display name of the alert rule
DisplayName *string `json:"displayName,omitempty"`
// Enabled: The flag which indicates whether this scheduled query rule is enabled. Value should be true or false
Enabled *bool `json:"enabled,omitempty"`
// EvaluationFrequency: How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant
// and required only for rules of the kind LogAlert.
EvaluationFrequency *string `json:"evaluationFrequency,omitempty"`
// IsLegacyLogAnalyticsRule: True if alert rule is legacy Log Analytic rule
IsLegacyLogAnalyticsRule *bool `json:"isLegacyLogAnalyticsRule,omitempty"`
// IsWorkspaceAlertsStorageConfigured: The flag which indicates whether this scheduled query rule has been configured to be
// stored in the customer's storage. The default is false.
IsWorkspaceAlertsStorageConfigured *bool `json:"isWorkspaceAlertsStorageConfigured,omitempty"`
// MuteActionsDuration: Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired.
// Relevant only for rules of the kind LogAlert.
MuteActionsDuration *string `json:"muteActionsDuration,omitempty"`
// OverrideQueryTimeRange: If specified then overrides the query time range (default is
// WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert.
OverrideQueryTimeRange *string `json:"overrideQueryTimeRange,omitempty"`
// Scopes: The list of resource id's that this scheduled query rule is scoped to.
Scopes []string `json:"scopes,omitempty"`
// Severity: Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only
// for rules of the kind LogAlert.
Severity *ScheduledQueryRuleProperties_Severity_STATUS `json:"severity,omitempty"`
// SkipQueryValidation: The flag which indicates whether the provided query should be validated or not. The default is
// false. Relevant only for rules of the kind LogAlert.
SkipQueryValidation *bool `json:"skipQueryValidation,omitempty"`
// TargetResourceTypes: List of resource type of the target resource(s) on which the alert is created/updated. For example
// if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert
// will be fired for each virtual machine in the resource group which meet the alert criteria. Relevant only for rules of
// the kind LogAlert
TargetResourceTypes []string `json:"targetResourceTypes,omitempty"`
// WindowSize: The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size).
// Relevant and required only for rules of the kind LogAlert.
WindowSize *string `json:"windowSize,omitempty"`
}
scheduled query rule Definition
type ScheduledQueryRuleProperties_Severity ¶
type ScheduledQueryRuleProperties_Severity int
+kubebuilder:validation:Enum={0,1,2,3,4}
type ScheduledQueryRuleProperties_Severity_STATUS ¶
type ScheduledQueryRuleProperties_Severity_STATUS int
type ScheduledQueryRule_Kind_STATUS ¶
type ScheduledQueryRule_Kind_STATUS string
type ScheduledQueryRule_Kind_Spec ¶
type ScheduledQueryRule_Kind_Spec string
+kubebuilder:validation:Enum={"LogAlert","LogToMetric"}
type ScheduledQueryRule_STATUS ¶
type ScheduledQueryRule_STATUS struct {
// Etag: The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per
// the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource.
// HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and
// If-Range (section 14.27) header fields.
Etag *string `json:"etag,omitempty"`
// Id: Fully qualified resource ID for the resource. Ex -
// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Id *string `json:"id,omitempty"`
// Kind: Indicates the type of scheduled query rule. The default is LogAlert.
Kind *ScheduledQueryRule_Kind_STATUS `json:"kind,omitempty"`
// Location: The geo-location where the resource lives
Location *string `json:"location,omitempty"`
// Name: The name of the resource
Name *string `json:"name,omitempty"`
// Properties: The rule properties of the resource.
Properties *ScheduledQueryRuleProperties_STATUS `json:"properties,omitempty"`
// SystemData: SystemData of ScheduledQueryRule.
SystemData *SystemData_STATUS `json:"systemData,omitempty"`
// Tags: Resource tags.
Tags map[string]string `json:"tags,omitempty"`
// Type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty"`
}
type ScheduledQueryRule_Spec ¶
type ScheduledQueryRule_Spec struct {
// Kind: Indicates the type of scheduled query rule. The default is LogAlert.
Kind *ScheduledQueryRule_Kind_Spec `json:"kind,omitempty"`
// Location: The geo-location where the resource lives
Location *string `json:"location,omitempty"`
Name string `json:"name,omitempty"`
// Properties: The rule properties of the resource.
Properties *ScheduledQueryRuleProperties `json:"properties,omitempty"`
// Tags: Resource tags.
Tags map[string]string `json:"tags,omitempty"`
}
func (ScheduledQueryRule_Spec) GetAPIVersion ¶
func (rule ScheduledQueryRule_Spec) GetAPIVersion() string
GetAPIVersion returns the ARM API version of the resource. This is always "2022-06-15"
func (*ScheduledQueryRule_Spec) GetName ¶
func (rule *ScheduledQueryRule_Spec) GetName() string
GetName returns the Name of the resource
func (*ScheduledQueryRule_Spec) GetType ¶
func (rule *ScheduledQueryRule_Spec) GetType() string
GetType returns the ARM Type of the resource. This is always "Microsoft.Insights/scheduledQueryRules"
type SystemData_CreatedByType_STATUS ¶
type SystemData_CreatedByType_STATUS string
type SystemData_LastModifiedByType_STATUS ¶
type SystemData_LastModifiedByType_STATUS string
type SystemData_STATUS ¶
type SystemData_STATUS struct {
// CreatedAt: The timestamp of resource creation (UTC).
CreatedAt *string `json:"createdAt,omitempty"`
// CreatedBy: The identity that created the resource.
CreatedBy *string `json:"createdBy,omitempty"`
// CreatedByType: The type of identity that created the resource.
CreatedByType *SystemData_CreatedByType_STATUS `json:"createdByType,omitempty"`
// LastModifiedAt: The timestamp of resource last modification (UTC)
LastModifiedAt *string `json:"lastModifiedAt,omitempty"`
// LastModifiedBy: The identity that last modified the resource.
LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
// LastModifiedByType: The type of identity that last modified the resource.
LastModifiedByType *SystemData_LastModifiedByType_STATUS `json:"lastModifiedByType,omitempty"`
}
Metadata pertaining to creation and last modification of the resource.
type WebTestGeolocation ¶
type WebTestGeolocation struct {
// Id: Location ID for the WebTest to run from.
Id *string `json:"Id,omitempty"`
}
Geo-physical location to run a WebTest from. You must specify one or more locations for the test to run from.
type WebTestGeolocation_STATUS ¶
type WebTestGeolocation_STATUS struct {
// Id: Location ID for the WebTest to run from.
Id *string `json:"Id,omitempty"`
}
Geo-physical location to run a WebTest from. You must specify one or more locations for the test to run from.
type WebTestProperties ¶
type WebTestProperties struct {
// Configuration: An XML configuration specification for a WebTest.
Configuration *WebTestProperties_Configuration `json:"Configuration,omitempty"`
// Description: User defined description for this WebTest.
Description *string `json:"Description,omitempty"`
// Enabled: Is the test actively being monitored.
Enabled *bool `json:"Enabled,omitempty"`
// Frequency: Interval in seconds between test runs for this WebTest. Default value is 300.
Frequency *int `json:"Frequency,omitempty"`
// Kind: The kind of web test this is, valid choices are ping, multistep and standard.
Kind *WebTestProperties_Kind `json:"Kind,omitempty"`
// Locations: A list of where to physically run the tests from to give global coverage for accessibility of your
// application.
Locations []WebTestGeolocation `json:"Locations,omitempty"`
// Name: User defined name if this WebTest.
Name *string `json:"Name,omitempty"`
// Request: The collection of request properties
Request *WebTestProperties_Request `json:"Request,omitempty"`
// RetryEnabled: Allow for retries should this WebTest fail.
RetryEnabled *bool `json:"RetryEnabled,omitempty"`
// SyntheticMonitorId: Unique ID of this WebTest. This is typically the same value as the Name field.
SyntheticMonitorId *string `json:"SyntheticMonitorId,omitempty"`
// Timeout: Seconds until this WebTest will timeout and fail. Default value is 30.
Timeout *int `json:"Timeout,omitempty"`
// ValidationRules: The collection of validation rule properties
ValidationRules *WebTestProperties_ValidationRules `json:"ValidationRules,omitempty"`
}
Metadata describing a web test for an Azure resource.
type WebTestProperties_Configuration ¶
type WebTestProperties_Configuration struct {
// WebTest: The XML specification of a WebTest to run against an application.
WebTest *string `json:"WebTest,omitempty"`
}
type WebTestProperties_Configuration_STATUS ¶
type WebTestProperties_Configuration_STATUS struct {
// WebTest: The XML specification of a WebTest to run against an application.
WebTest *string `json:"WebTest,omitempty"`
}
type WebTestProperties_Kind ¶
type WebTestProperties_Kind string
+kubebuilder:validation:Enum={"multistep","ping","standard"}
type WebTestProperties_Kind_STATUS ¶
type WebTestProperties_Kind_STATUS string
type WebTestProperties_Request ¶
type WebTestProperties_Request struct {
// FollowRedirects: Follow redirects for this web test.
FollowRedirects *bool `json:"FollowRedirects,omitempty"`
// Headers: List of headers and their values to add to the WebTest call.
Headers []HeaderField `json:"Headers,omitempty"`
// HttpVerb: Http verb to use for this web test.
HttpVerb *string `json:"HttpVerb,omitempty"`
// ParseDependentRequests: Parse Dependent request for this WebTest.
ParseDependentRequests *bool `json:"ParseDependentRequests,omitempty"`
// RequestBody: Base64 encoded string body to send with this web test.
RequestBody *string `json:"RequestBody,omitempty"`
// RequestUrl: Url location to test.
RequestUrl *string `json:"RequestUrl,omitempty"`
}
type WebTestProperties_Request_STATUS ¶
type WebTestProperties_Request_STATUS struct {
// FollowRedirects: Follow redirects for this web test.
FollowRedirects *bool `json:"FollowRedirects,omitempty"`
// Headers: List of headers and their values to add to the WebTest call.
Headers []HeaderField_STATUS `json:"Headers,omitempty"`
// HttpVerb: Http verb to use for this web test.
HttpVerb *string `json:"HttpVerb,omitempty"`
// ParseDependentRequests: Parse Dependent request for this WebTest.
ParseDependentRequests *bool `json:"ParseDependentRequests,omitempty"`
// RequestBody: Base64 encoded string body to send with this web test.
RequestBody *string `json:"RequestBody,omitempty"`
// RequestUrl: Url location to test.
RequestUrl *string `json:"RequestUrl,omitempty"`
}
type WebTestProperties_STATUS ¶
type WebTestProperties_STATUS struct {
// Configuration: An XML configuration specification for a WebTest.
Configuration *WebTestProperties_Configuration_STATUS `json:"Configuration,omitempty"`
// Description: User defined description for this WebTest.
Description *string `json:"Description,omitempty"`
// Enabled: Is the test actively being monitored.
Enabled *bool `json:"Enabled,omitempty"`
// Frequency: Interval in seconds between test runs for this WebTest. Default value is 300.
Frequency *int `json:"Frequency,omitempty"`
// Kind: The kind of web test this is, valid choices are ping, multistep and standard.
Kind *WebTestProperties_Kind_STATUS `json:"Kind,omitempty"`
// Locations: A list of where to physically run the tests from to give global coverage for accessibility of your
// application.
Locations []WebTestGeolocation_STATUS `json:"Locations,omitempty"`
// Name: User defined name if this WebTest.
Name *string `json:"Name,omitempty"`
// ProvisioningState: Current state of this component, whether or not is has been provisioned within the resource group it
// is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying,
// Canceled, and Failed.
ProvisioningState *string `json:"provisioningState,omitempty"`
// Request: The collection of request properties
Request *WebTestProperties_Request_STATUS `json:"Request,omitempty"`
// RetryEnabled: Allow for retries should this WebTest fail.
RetryEnabled *bool `json:"RetryEnabled,omitempty"`
// SyntheticMonitorId: Unique ID of this WebTest. This is typically the same value as the Name field.
SyntheticMonitorId *string `json:"SyntheticMonitorId,omitempty"`
// Timeout: Seconds until this WebTest will timeout and fail. Default value is 30.
Timeout *int `json:"Timeout,omitempty"`
// ValidationRules: The collection of validation rule properties
ValidationRules *WebTestProperties_ValidationRules_STATUS `json:"ValidationRules,omitempty"`
}
Metadata describing a web test for an Azure resource.
type WebTestProperties_ValidationRules ¶
type WebTestProperties_ValidationRules struct {
// ContentValidation: The collection of content validation properties
ContentValidation *WebTestProperties_ValidationRules_ContentValidation `json:"ContentValidation,omitempty"`
// ExpectedHttpStatusCode: Validate that the WebTest returns the http status code provided.
ExpectedHttpStatusCode *int `json:"ExpectedHttpStatusCode,omitempty"`
// IgnoreHttpStatusCode: When set, validation will ignore the status code.
IgnoreHttpStatusCode *bool `json:"IgnoreHttpStatusCode,omitempty"`
// SSLCertRemainingLifetimeCheck: A number of days to check still remain before the the existing SSL cert expires. Value
// must be positive and the SSLCheck must be set to true.
SSLCertRemainingLifetimeCheck *int `json:"SSLCertRemainingLifetimeCheck,omitempty"`
// SSLCheck: Checks to see if the SSL cert is still valid.
SSLCheck *bool `json:"SSLCheck,omitempty"`
}
type WebTestProperties_ValidationRules_ContentValidation ¶
type WebTestProperties_ValidationRules_ContentValidation struct {
// ContentMatch: Content to look for in the return of the WebTest. Must not be null or empty.
ContentMatch *string `json:"ContentMatch,omitempty"`
// IgnoreCase: When set, this value makes the ContentMatch validation case insensitive.
IgnoreCase *bool `json:"IgnoreCase,omitempty"`
// PassIfTextFound: When true, validation will pass if there is a match for the ContentMatch string. If false, validation
// will fail if there is a match
PassIfTextFound *bool `json:"PassIfTextFound,omitempty"`
}
type WebTestProperties_ValidationRules_ContentValidation_STATUS ¶
type WebTestProperties_ValidationRules_ContentValidation_STATUS struct {
// ContentMatch: Content to look for in the return of the WebTest. Must not be null or empty.
ContentMatch *string `json:"ContentMatch,omitempty"`
// IgnoreCase: When set, this value makes the ContentMatch validation case insensitive.
IgnoreCase *bool `json:"IgnoreCase,omitempty"`
// PassIfTextFound: When true, validation will pass if there is a match for the ContentMatch string. If false, validation
// will fail if there is a match
PassIfTextFound *bool `json:"PassIfTextFound,omitempty"`
}
type WebTestProperties_ValidationRules_STATUS ¶
type WebTestProperties_ValidationRules_STATUS struct {
// ContentValidation: The collection of content validation properties
ContentValidation *WebTestProperties_ValidationRules_ContentValidation_STATUS `json:"ContentValidation,omitempty"`
// ExpectedHttpStatusCode: Validate that the WebTest returns the http status code provided.
ExpectedHttpStatusCode *int `json:"ExpectedHttpStatusCode,omitempty"`
// IgnoreHttpStatusCode: When set, validation will ignore the status code.
IgnoreHttpStatusCode *bool `json:"IgnoreHttpStatusCode,omitempty"`
// SSLCertRemainingLifetimeCheck: A number of days to check still remain before the the existing SSL cert expires. Value
// must be positive and the SSLCheck must be set to true.
SSLCertRemainingLifetimeCheck *int `json:"SSLCertRemainingLifetimeCheck,omitempty"`
// SSLCheck: Checks to see if the SSL cert is still valid.
SSLCheck *bool `json:"SSLCheck,omitempty"`
}
type Webtest_STATUS ¶
type Webtest_STATUS struct {
// Id: Azure resource Id
Id *string `json:"id,omitempty"`
// Location: Resource location
Location *string `json:"location,omitempty"`
// Name: Azure resource name
Name *string `json:"name,omitempty"`
// Properties: Metadata describing a web test for an Azure resource.
Properties *WebTestProperties_STATUS `json:"properties,omitempty"`
// Tags: Resource tags
Tags map[string]string `json:"tags,omitempty"`
// Type: Azure resource type
Type *string `json:"type,omitempty"`
}
type Webtest_Spec ¶
type Webtest_Spec struct {
// Location: Resource location
Location *string `json:"location,omitempty"`
Name string `json:"name,omitempty"`
// Properties: Metadata describing a web test for an Azure resource.
Properties *WebTestProperties `json:"properties,omitempty"`
// Tags: Resource tags
Tags map[string]string `json:"tags,omitempty"`
}
func (Webtest_Spec) GetAPIVersion ¶
func (webtest Webtest_Spec) GetAPIVersion() string
GetAPIVersion returns the ARM API version of the resource. This is always "2022-06-15"
func (*Webtest_Spec) GetName ¶
func (webtest *Webtest_Spec) GetName() string
GetName returns the Name of the resource
func (*Webtest_Spec) GetType ¶
func (webtest *Webtest_Spec) GetType() string
GetType returns the ARM Type of the resource. This is always "Microsoft.Insights/webtests"