1
0
mirror of https://github.com/rancher/types.git synced 2025-07-16 06:25:50 +00:00

update vendor

This commit is contained in:
Aiwantaozi 2019-02-14 12:04:35 +08:00 committed by Craig Jellick
parent 4fec1faea1
commit d20e3225a1
5 changed files with 15 additions and 2 deletions

View File

@ -1170,7 +1170,7 @@ func (in *ClusterAlertRuleList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ClusterAlertRuleSpec) DeepCopyInto(out *ClusterAlertRuleSpec) {
*out = *in
out.CommonRuleField = in.CommonRuleField
in.CommonRuleField.DeepCopyInto(&out.CommonRuleField)
if in.NodeRule != nil {
in, out := &in.NodeRule, &out.NodeRule
*out = new(NodeRule)
@ -1952,6 +1952,11 @@ func (in *CommonQueryMetricInput) DeepCopy() *CommonQueryMetricInput {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CommonRuleField) DeepCopyInto(out *CommonRuleField) {
*out = *in
if in.Inherited != nil {
in, out := &in.Inherited, &out.Inherited
*out = new(bool)
**out = **in
}
out.TimingField = in.TimingField
return
}
@ -6147,7 +6152,7 @@ func (in *ProjectAlertRuleList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ProjectAlertRuleSpec) DeepCopyInto(out *ProjectAlertRuleSpec) {
*out = *in
out.CommonRuleField = in.CommonRuleField
in.CommonRuleField.DeepCopyInto(&out.CommonRuleField)
if in.PodRule != nil {
in, out := &in.PodRule, &out.PodRule
*out = new(PodRule)

View File

@ -15,6 +15,7 @@ const (
ClusterAlertRuleFieldGroupID = "groupId"
ClusterAlertRuleFieldGroupIntervalSeconds = "groupIntervalSeconds"
ClusterAlertRuleFieldGroupWaitSeconds = "groupWaitSeconds"
ClusterAlertRuleFieldInherited = "inherited"
ClusterAlertRuleFieldLabels = "labels"
ClusterAlertRuleFieldMetricRule = "metricRule"
ClusterAlertRuleFieldName = "name"
@ -42,6 +43,7 @@ type ClusterAlertRule struct {
GroupID string `json:"groupId,omitempty" yaml:"groupId,omitempty"`
GroupIntervalSeconds int64 `json:"groupIntervalSeconds,omitempty" yaml:"groupIntervalSeconds,omitempty"`
GroupWaitSeconds int64 `json:"groupWaitSeconds,omitempty" yaml:"groupWaitSeconds,omitempty"`
Inherited *bool `json:"inherited,omitempty" yaml:"inherited,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
MetricRule *MetricRule `json:"metricRule,omitempty" yaml:"metricRule,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`

View File

@ -8,6 +8,7 @@ const (
ClusterAlertRuleSpecFieldGroupID = "groupId"
ClusterAlertRuleSpecFieldGroupIntervalSeconds = "groupIntervalSeconds"
ClusterAlertRuleSpecFieldGroupWaitSeconds = "groupWaitSeconds"
ClusterAlertRuleSpecFieldInherited = "inherited"
ClusterAlertRuleSpecFieldMetricRule = "metricRule"
ClusterAlertRuleSpecFieldNodeRule = "nodeRule"
ClusterAlertRuleSpecFieldRepeatIntervalSeconds = "repeatIntervalSeconds"
@ -22,6 +23,7 @@ type ClusterAlertRuleSpec struct {
GroupID string `json:"groupId,omitempty" yaml:"groupId,omitempty"`
GroupIntervalSeconds int64 `json:"groupIntervalSeconds,omitempty" yaml:"groupIntervalSeconds,omitempty"`
GroupWaitSeconds int64 `json:"groupWaitSeconds,omitempty" yaml:"groupWaitSeconds,omitempty"`
Inherited *bool `json:"inherited,omitempty" yaml:"inherited,omitempty"`
MetricRule *MetricRule `json:"metricRule,omitempty" yaml:"metricRule,omitempty"`
NodeRule *NodeRule `json:"nodeRule,omitempty" yaml:"nodeRule,omitempty"`
RepeatIntervalSeconds int64 `json:"repeatIntervalSeconds,omitempty" yaml:"repeatIntervalSeconds,omitempty"`

View File

@ -13,6 +13,7 @@ const (
ProjectAlertRuleFieldGroupID = "groupId"
ProjectAlertRuleFieldGroupIntervalSeconds = "groupIntervalSeconds"
ProjectAlertRuleFieldGroupWaitSeconds = "groupWaitSeconds"
ProjectAlertRuleFieldInherited = "inherited"
ProjectAlertRuleFieldLabels = "labels"
ProjectAlertRuleFieldMetricRule = "metricRule"
ProjectAlertRuleFieldName = "name"
@ -39,6 +40,7 @@ type ProjectAlertRule struct {
GroupID string `json:"groupId,omitempty" yaml:"groupId,omitempty"`
GroupIntervalSeconds int64 `json:"groupIntervalSeconds,omitempty" yaml:"groupIntervalSeconds,omitempty"`
GroupWaitSeconds int64 `json:"groupWaitSeconds,omitempty" yaml:"groupWaitSeconds,omitempty"`
Inherited *bool `json:"inherited,omitempty" yaml:"inherited,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
MetricRule *MetricRule `json:"metricRule,omitempty" yaml:"metricRule,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`

View File

@ -6,6 +6,7 @@ const (
ProjectAlertRuleSpecFieldGroupID = "groupId"
ProjectAlertRuleSpecFieldGroupIntervalSeconds = "groupIntervalSeconds"
ProjectAlertRuleSpecFieldGroupWaitSeconds = "groupWaitSeconds"
ProjectAlertRuleSpecFieldInherited = "inherited"
ProjectAlertRuleSpecFieldMetricRule = "metricRule"
ProjectAlertRuleSpecFieldPodRule = "podRule"
ProjectAlertRuleSpecFieldProjectID = "projectId"
@ -19,6 +20,7 @@ type ProjectAlertRuleSpec struct {
GroupID string `json:"groupId,omitempty" yaml:"groupId,omitempty"`
GroupIntervalSeconds int64 `json:"groupIntervalSeconds,omitempty" yaml:"groupIntervalSeconds,omitempty"`
GroupWaitSeconds int64 `json:"groupWaitSeconds,omitempty" yaml:"groupWaitSeconds,omitempty"`
Inherited *bool `json:"inherited,omitempty" yaml:"inherited,omitempty"`
MetricRule *MetricRule `json:"metricRule,omitempty" yaml:"metricRule,omitempty"`
PodRule *PodRule `json:"podRule,omitempty" yaml:"podRule,omitempty"`
ProjectID string `json:"projectId,omitempty" yaml:"projectId,omitempty"`