-
Notifications
You must be signed in to change notification settings - Fork 4
/
hashicorp_cloud_consul_telemetry20230414_service.go
83 lines (62 loc) · 2.49 KB
/
hashicorp_cloud_consul_telemetry20230414_service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// HashicorpCloudConsulTelemetry20230414Service Service is a single service within the service topology.
//
// swagger:model hashicorp.cloud.consul_telemetry_20230414.Service
type HashicorpCloudConsulTelemetry20230414Service struct {
// Count of critical service instances.
ChecksCritical int32 `json:"checks_critical,omitempty"`
// Count of passing service instances.
ChecksPassing int32 `json:"checks_passing,omitempty"`
// Count of warning service instances.
ChecksWarning int32 `json:"checks_warning,omitempty"`
// Count of total service instances.
InstanceCount int32 `json:"instance_count,omitempty"`
// Count of instances with critical checks.
InstancesCritical int32 `json:"instances_critical,omitempty"`
// Count of instances passing checks.
InstancesPassing int32 `json:"instances_passing,omitempty"`
// Count of instances with warning checks.
InstancesWarning int32 `json:"instances_warning,omitempty"`
// The kind of service.
Kind string `json:"kind,omitempty"`
// Name of the service.
Name string `json:"name,omitempty"`
// Namespace where the service is deployed.
Namespace string `json:"namespace,omitempty"`
// Partition where the service is deployed.
Partition string `json:"partition,omitempty"`
// The sameness group the service belongs to.
SamenessGroup string `json:"sameness_group,omitempty"`
}
// Validate validates this hashicorp cloud consul telemetry 20230414 service
func (m *HashicorpCloudConsulTelemetry20230414Service) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this hashicorp cloud consul telemetry 20230414 service based on context it is used
func (m *HashicorpCloudConsulTelemetry20230414Service) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *HashicorpCloudConsulTelemetry20230414Service) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *HashicorpCloudConsulTelemetry20230414Service) UnmarshalBinary(b []byte) error {
var res HashicorpCloudConsulTelemetry20230414Service
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}