Documentation ¶
Overview ¶
Package v1
Monitor ¶
A monitor is a set of checks that you can run against your data. A monitor watches your data over time and alerts you when certain conditions are met. For example, you can create a monitor that watches the average response time of your website and alerts you when the response time is greater than 1 second.
Monitors are made up of one or more checks. A check is a single test that you can run against your data. For example, you can create a check that watches the average response time of your website. You can also create a check that watches the percentage of 5xx errors in your logs.
Guance Cloud supports defining monitors, users can customize the configuration of detection rules and trigger conditions, and open the monitors to receive related alarm events triggered by the detection rules.
Relationships:
```mermaid graph LR
A[Monitor] --> B[Alert Policy] --> C[Notification] ```
Code generated by Iacker. DO NOT EDIT IT.
Index ¶
- Constants
- Variables
- type AlertPolicy
- func (*AlertPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *AlertPolicy) GetId() string
- func (*AlertPolicy) ProtoMessage()
- func (x *AlertPolicy) ProtoReflect() protoreflect.Message
- func (x *AlertPolicy) Reset()
- func (x *AlertPolicy) String() string
- func (m *AlertPolicy) Validate() error
- func (m *AlertPolicy) ValidateAll() error
- type AlertPolicyMultiError
- type AlertPolicyValidationError
- func (e AlertPolicyValidationError) Cause() error
- func (e AlertPolicyValidationError) Error() string
- func (e AlertPolicyValidationError) ErrorName() string
- func (e AlertPolicyValidationError) Field() string
- func (e AlertPolicyValidationError) Key() bool
- func (e AlertPolicyValidationError) Reason() string
- type Dashboard
- func (*Dashboard) Descriptor() ([]byte, []int)deprecated
- func (x *Dashboard) GetId() string
- func (*Dashboard) ProtoMessage()
- func (x *Dashboard) ProtoReflect() protoreflect.Message
- func (x *Dashboard) Reset()
- func (x *Dashboard) String() string
- func (m *Dashboard) Validate() error
- func (m *Dashboard) ValidateAll() error
- type DashboardMultiError
- type DashboardValidationError
- type Monitor
- func (*Monitor) Descriptor() ([]byte, []int)deprecated
- func (x *Monitor) GetAlertPolicy() *AlertPolicy
- func (x *Monitor) GetDashboard() *Dashboard
- func (x *Monitor) GetManifest() string
- func (*Monitor) ProtoMessage()
- func (x *Monitor) ProtoReflect() protoreflect.Message
- func (x *Monitor) Reset()
- func (x *Monitor) String() string
- func (m *Monitor) Validate() error
- func (m *Monitor) ValidateAll() error
- type MonitorMultiError
- type MonitorValidationError
Constants ¶
const ResourceType = "Monitor"
ResourceType is the unique type name of Monitor
Variables ¶
var File_pkg_resources_monitor_v1_monitor_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AlertPolicy ¶
type AlertPolicy struct { // Alert Policy ID Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AlertPolicy) Descriptor
deprecated
func (*AlertPolicy) Descriptor() ([]byte, []int)
Deprecated: Use AlertPolicy.ProtoReflect.Descriptor instead.
func (*AlertPolicy) GetId ¶
func (x *AlertPolicy) GetId() string
func (*AlertPolicy) ProtoMessage ¶
func (*AlertPolicy) ProtoMessage()
func (*AlertPolicy) ProtoReflect ¶
func (x *AlertPolicy) ProtoReflect() protoreflect.Message
func (*AlertPolicy) Reset ¶
func (x *AlertPolicy) Reset()
func (*AlertPolicy) String ¶
func (x *AlertPolicy) String() string
func (*AlertPolicy) Validate ¶
func (m *AlertPolicy) Validate() error
Validate checks the field values on AlertPolicy with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AlertPolicy) ValidateAll ¶
func (m *AlertPolicy) ValidateAll() error
ValidateAll checks the field values on AlertPolicy with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AlertPolicyMultiError, or nil if none found.
type AlertPolicyMultiError ¶
type AlertPolicyMultiError []error
AlertPolicyMultiError is an error wrapping multiple validation errors returned by AlertPolicy.ValidateAll() if the designated constraints aren't met.
func (AlertPolicyMultiError) AllErrors ¶
func (m AlertPolicyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AlertPolicyMultiError) Error ¶
func (m AlertPolicyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AlertPolicyValidationError ¶
type AlertPolicyValidationError struct {
// contains filtered or unexported fields
}
AlertPolicyValidationError is the validation error returned by AlertPolicy.Validate if the designated constraints aren't met.
func (AlertPolicyValidationError) Cause ¶
func (e AlertPolicyValidationError) Cause() error
Cause function returns cause value.
func (AlertPolicyValidationError) Error ¶
func (e AlertPolicyValidationError) Error() string
Error satisfies the builtin error interface
func (AlertPolicyValidationError) ErrorName ¶
func (e AlertPolicyValidationError) ErrorName() string
ErrorName returns error name.
func (AlertPolicyValidationError) Field ¶
func (e AlertPolicyValidationError) Field() string
Field function returns field value.
func (AlertPolicyValidationError) Key ¶
func (e AlertPolicyValidationError) Key() bool
Key function returns key value.
func (AlertPolicyValidationError) Reason ¶
func (e AlertPolicyValidationError) Reason() string
Reason function returns reason value.
type Dashboard ¶
type Dashboard struct { // Dashboard ID Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Dashboard) Descriptor
deprecated
func (*Dashboard) ProtoMessage ¶
func (*Dashboard) ProtoMessage()
func (*Dashboard) ProtoReflect ¶
func (x *Dashboard) ProtoReflect() protoreflect.Message
func (*Dashboard) Validate ¶
Validate checks the field values on Dashboard with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Dashboard) ValidateAll ¶
ValidateAll checks the field values on Dashboard with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DashboardMultiError, or nil if none found.
type DashboardMultiError ¶
type DashboardMultiError []error
DashboardMultiError is an error wrapping multiple validation errors returned by Dashboard.ValidateAll() if the designated constraints aren't met.
func (DashboardMultiError) AllErrors ¶
func (m DashboardMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DashboardMultiError) Error ¶
func (m DashboardMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DashboardValidationError ¶
type DashboardValidationError struct {
// contains filtered or unexported fields
}
DashboardValidationError is the validation error returned by Dashboard.Validate if the designated constraints aren't met.
func (DashboardValidationError) Cause ¶
func (e DashboardValidationError) Cause() error
Cause function returns cause value.
func (DashboardValidationError) Error ¶
func (e DashboardValidationError) Error() string
Error satisfies the builtin error interface
func (DashboardValidationError) ErrorName ¶
func (e DashboardValidationError) ErrorName() string
ErrorName returns error name.
func (DashboardValidationError) Field ¶
func (e DashboardValidationError) Field() string
Field function returns field value.
func (DashboardValidationError) Key ¶
func (e DashboardValidationError) Key() bool
Key function returns key value.
func (DashboardValidationError) Reason ¶
func (e DashboardValidationError) Reason() string
Reason function returns reason value.
type Monitor ¶
type Monitor struct { // Monitor Configuration Manifest string `protobuf:"bytes,1,opt,name=manifest,proto3" json:"manifest,omitempty"` // Alert Policy Configuration AlertPolicy *AlertPolicy `protobuf:"bytes,2,opt,name=alert_policy,json=alertPolicy,proto3" json:"alert_policy,omitempty"` // Dashboard Configuration Dashboard *Dashboard `protobuf:"bytes,3,opt,name=dashboard,proto3" json:"dashboard,omitempty"` // contains filtered or unexported fields }
func (*Monitor) Descriptor
deprecated
func (*Monitor) GetAlertPolicy ¶
func (x *Monitor) GetAlertPolicy() *AlertPolicy
func (*Monitor) GetDashboard ¶
func (*Monitor) GetManifest ¶
func (*Monitor) ProtoMessage ¶
func (*Monitor) ProtoMessage()
func (*Monitor) ProtoReflect ¶
func (x *Monitor) ProtoReflect() protoreflect.Message
func (*Monitor) Validate ¶
Validate checks the field values on Monitor with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Monitor) ValidateAll ¶
ValidateAll checks the field values on Monitor with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MonitorMultiError, or nil if none found.
type MonitorMultiError ¶
type MonitorMultiError []error
MonitorMultiError is an error wrapping multiple validation errors returned by Monitor.ValidateAll() if the designated constraints aren't met.
func (MonitorMultiError) AllErrors ¶
func (m MonitorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MonitorMultiError) Error ¶
func (m MonitorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MonitorValidationError ¶
type MonitorValidationError struct {
// contains filtered or unexported fields
}
MonitorValidationError is the validation error returned by Monitor.Validate if the designated constraints aren't met.
func (MonitorValidationError) Cause ¶
func (e MonitorValidationError) Cause() error
Cause function returns cause value.
func (MonitorValidationError) Error ¶
func (e MonitorValidationError) Error() string
Error satisfies the builtin error interface
func (MonitorValidationError) ErrorName ¶
func (e MonitorValidationError) ErrorName() string
ErrorName returns error name.
func (MonitorValidationError) Field ¶
func (e MonitorValidationError) Field() string
Field function returns field value.
func (MonitorValidationError) Key ¶
func (e MonitorValidationError) Key() bool
Key function returns key value.
func (MonitorValidationError) Reason ¶
func (e MonitorValidationError) Reason() string
Reason function returns reason value.