Constants
ServiceHealth_ListEvents_FullMethodName, ServiceHealth_GetEvent_FullMethodName, ServiceHealth_ListOrganizationEvents_FullMethodName, ServiceHealth_GetOrganizationEvent_FullMethodName, ServiceHealth_ListOrganizationImpacts_FullMethodName, ServiceHealth_GetOrganizationImpact_FullMethodName
const (
ServiceHealth_ListEvents_FullMethodName = "/google.cloud.servicehealth.v1.ServiceHealth/ListEvents"
ServiceHealth_GetEvent_FullMethodName = "/google.cloud.servicehealth.v1.ServiceHealth/GetEvent"
ServiceHealth_ListOrganizationEvents_FullMethodName = "/google.cloud.servicehealth.v1.ServiceHealth/ListOrganizationEvents"
ServiceHealth_GetOrganizationEvent_FullMethodName = "/google.cloud.servicehealth.v1.ServiceHealth/GetOrganizationEvent"
ServiceHealth_ListOrganizationImpacts_FullMethodName = "/google.cloud.servicehealth.v1.ServiceHealth/ListOrganizationImpacts"
ServiceHealth_GetOrganizationImpact_FullMethodName = "/google.cloud.servicehealth.v1.ServiceHealth/GetOrganizationImpact"
)Variables
EventView_name, EventView_value
var (
EventView_name = map[int32]string{
0: "EVENT_VIEW_UNSPECIFIED",
1: "EVENT_VIEW_BASIC",
2: "EVENT_VIEW_FULL",
}
EventView_value = map[string]int32{
"EVENT_VIEW_UNSPECIFIED": 0,
"EVENT_VIEW_BASIC": 1,
"EVENT_VIEW_FULL": 2,
}
)Enum value maps for EventView.
OrganizationEventView_name, OrganizationEventView_value
var (
OrganizationEventView_name = map[int32]string{
0: "ORGANIZATION_EVENT_VIEW_UNSPECIFIED",
1: "ORGANIZATION_EVENT_VIEW_BASIC",
2: "ORGANIZATION_EVENT_VIEW_FULL",
}
OrganizationEventView_value = map[string]int32{
"ORGANIZATION_EVENT_VIEW_UNSPECIFIED": 0,
"ORGANIZATION_EVENT_VIEW_BASIC": 1,
"ORGANIZATION_EVENT_VIEW_FULL": 2,
}
)Enum value maps for OrganizationEventView.
Event_EventCategory_name, Event_EventCategory_value
var (
Event_EventCategory_name = map[int32]string{
0: "EVENT_CATEGORY_UNSPECIFIED",
2: "INCIDENT",
}
Event_EventCategory_value = map[string]int32{
"EVENT_CATEGORY_UNSPECIFIED": 0,
"INCIDENT": 2,
}
)Enum value maps for Event_EventCategory.
Event_DetailedCategory_name, Event_DetailedCategory_value
var (
Event_DetailedCategory_name = map[int32]string{
0: "DETAILED_CATEGORY_UNSPECIFIED",
1: "CONFIRMED_INCIDENT",
2: "EMERGING_INCIDENT",
}
Event_DetailedCategory_value = map[string]int32{
"DETAILED_CATEGORY_UNSPECIFIED": 0,
"CONFIRMED_INCIDENT": 1,
"EMERGING_INCIDENT": 2,
}
)Enum value maps for Event_DetailedCategory.
Event_State_name, Event_State_value
var (
Event_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ACTIVE",
2: "CLOSED",
}
Event_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ACTIVE": 1,
"CLOSED": 2,
}
)Enum value maps for Event_State.
Event_DetailedState_name, Event_DetailedState_value
var (
Event_DetailedState_name = map[int32]string{
0: "DETAILED_STATE_UNSPECIFIED",
1: "EMERGING",
2: "CONFIRMED",
3: "RESOLVED",
4: "MERGED",
9: "AUTO_CLOSED",
10: "FALSE_POSITIVE",
}
Event_DetailedState_value = map[string]int32{
"DETAILED_STATE_UNSPECIFIED": 0,
"EMERGING": 1,
"CONFIRMED": 2,
"RESOLVED": 3,
"MERGED": 4,
"AUTO_CLOSED": 9,
"FALSE_POSITIVE": 10,
}
)Enum value maps for Event_DetailedState.
Event_Relevance_name, Event_Relevance_value
var (
Event_Relevance_name = map[int32]string{
0: "RELEVANCE_UNSPECIFIED",
2: "UNKNOWN",
6: "NOT_IMPACTED",
7: "PARTIALLY_RELATED",
8: "RELATED",
9: "IMPACTED",
}
Event_Relevance_value = map[string]int32{
"RELEVANCE_UNSPECIFIED": 0,
"UNKNOWN": 2,
"NOT_IMPACTED": 6,
"PARTIALLY_RELATED": 7,
"RELATED": 8,
"IMPACTED": 9,
}
)Enum value maps for Event_Relevance.
OrganizationEvent_EventCategory_name, OrganizationEvent_EventCategory_value
var (
OrganizationEvent_EventCategory_name = map[int32]string{
0: "EVENT_CATEGORY_UNSPECIFIED",
2: "INCIDENT",
}
OrganizationEvent_EventCategory_value = map[string]int32{
"EVENT_CATEGORY_UNSPECIFIED": 0,
"INCIDENT": 2,
}
)Enum value maps for OrganizationEvent_EventCategory.
OrganizationEvent_DetailedCategory_name, OrganizationEvent_DetailedCategory_value
var (
OrganizationEvent_DetailedCategory_name = map[int32]string{
0: "DETAILED_CATEGORY_UNSPECIFIED",
1: "CONFIRMED_INCIDENT",
2: "EMERGING_INCIDENT",
}
OrganizationEvent_DetailedCategory_value = map[string]int32{
"DETAILED_CATEGORY_UNSPECIFIED": 0,
"CONFIRMED_INCIDENT": 1,
"EMERGING_INCIDENT": 2,
}
)Enum value maps for OrganizationEvent_DetailedCategory.
OrganizationEvent_State_name, OrganizationEvent_State_value
var (
OrganizationEvent_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ACTIVE",
2: "CLOSED",
}
OrganizationEvent_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ACTIVE": 1,
"CLOSED": 2,
}
)Enum value maps for OrganizationEvent_State.
OrganizationEvent_DetailedState_name, OrganizationEvent_DetailedState_value
var (
OrganizationEvent_DetailedState_name = map[int32]string{
0: "DETAILED_STATE_UNSPECIFIED",
1: "EMERGING",
2: "CONFIRMED",
3: "RESOLVED",
4: "MERGED",
9: "AUTO_CLOSED",
10: "FALSE_POSITIVE",
}
OrganizationEvent_DetailedState_value = map[string]int32{
"DETAILED_STATE_UNSPECIFIED": 0,
"EMERGING": 1,
"CONFIRMED": 2,
"RESOLVED": 3,
"MERGED": 4,
"AUTO_CLOSED": 9,
"FALSE_POSITIVE": 10,
}
)Enum value maps for OrganizationEvent_DetailedState.
File_google_cloud_servicehealth_v1_event_resources_proto
var File_google_cloud_servicehealth_v1_event_resources_proto protoreflect.FileDescriptorFile_google_cloud_servicehealth_v1_event_service_proto
var File_google_cloud_servicehealth_v1_event_service_proto protoreflect.FileDescriptorServiceHealth_ServiceDesc
var ServiceHealth_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.servicehealth.v1.ServiceHealth",
HandlerType: (*ServiceHealthServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListEvents",
Handler: _ServiceHealth_ListEvents_Handler,
},
{
MethodName: "GetEvent",
Handler: _ServiceHealth_GetEvent_Handler,
},
{
MethodName: "ListOrganizationEvents",
Handler: _ServiceHealth_ListOrganizationEvents_Handler,
},
{
MethodName: "GetOrganizationEvent",
Handler: _ServiceHealth_GetOrganizationEvent_Handler,
},
{
MethodName: "ListOrganizationImpacts",
Handler: _ServiceHealth_ListOrganizationImpacts_Handler,
},
{
MethodName: "GetOrganizationImpact",
Handler: _ServiceHealth_GetOrganizationImpact_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/servicehealth/v1/event_service.proto",
}ServiceHealth_ServiceDesc is the grpc.ServiceDesc for ServiceHealth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterServiceHealthServer
func RegisterServiceHealthServer(s grpc.ServiceRegistrar, srv ServiceHealthServer)Asset
type Asset struct {
// Output only. Full name of the resource as defined in
// [Resource
// Names](https://cloud.google.com/apis/design/resource_names#full_resource_name).
AssetName string `protobuf:"bytes,1,opt,name=asset_name,json=assetName,proto3" json:"asset_name,omitempty"`
// Output only. Type of the asset. Example:
// `"cloudresourcemanager.googleapis.com/Project"`
AssetType string `protobuf:"bytes,2,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
// contains filtered or unexported fields
}Represents the asset impacted by the events.
func (*Asset) Descriptor
Deprecated: Use Asset.ProtoReflect.Descriptor instead.
func (*Asset) GetAssetName
func (*Asset) GetAssetType
func (*Asset) ProtoMessage
func (*Asset) ProtoMessage()func (*Asset) ProtoReflect
func (x *Asset) ProtoReflect() protoreflect.Messagefunc (*Asset) Reset
func (x *Asset) Reset()func (*Asset) String
Event
type Event struct {
// Output only. Identifier. Name of the event. Unique name of the event in
// this scope including project and location using the form
// `projects/{project_id}/locations/{location}/events/{event_id}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Brief description for the event.
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// Output only. Free-form, human-readable description.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The category of the event.
Category Event_EventCategory `protobuf:"varint,4,opt,name=category,proto3,enum=google.cloud.servicehealth.v1.Event_EventCategory" json:"category,omitempty"`
// Output only. The detailed category of the event.
DetailedCategory Event_DetailedCategory `protobuf:"varint,21,opt,name=detailed_category,json=detailedCategory,proto3,enum=google.cloud.servicehealth.v1.Event_DetailedCategory" json:"detailed_category,omitempty"`
// Output only. The current state of the event.
State Event_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.servicehealth.v1.Event_State" json:"state,omitempty"`
// Output only. The current detailed state of the incident.
DetailedState Event_DetailedState `protobuf:"varint,19,opt,name=detailed_state,json=detailedState,proto3,enum=google.cloud.servicehealth.v1.Event_DetailedState" json:"detailed_state,omitempty"`
// Google Cloud products and locations impacted by the event.
EventImpacts []*EventImpact `protobuf:"bytes,20,rep,name=event_impacts,json=eventImpacts,proto3" json:"event_impacts,omitempty"`
// Output only. Communicates why a given event is deemed relevant in the
// context of a given project.
Relevance Event_Relevance `protobuf:"varint,8,opt,name=relevance,proto3,enum=google.cloud.servicehealth.v1.Event_Relevance" json:"relevance,omitempty"`
// Output only. Event updates are correspondence from Google.
Updates []*EventUpdate `protobuf:"bytes,9,rep,name=updates,proto3" json:"updates,omitempty"`
// Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
// name of the parent event. All further updates will be published to the
// parent event.
ParentEvent string `protobuf:"bytes,10,opt,name=parent_event,json=parentEvent,proto3" json:"parent_event,omitempty"`
// Output only. The time when the event was last modified.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. The start time of the event, if applicable.
StartTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Output only. The end time of the event, if applicable.
EndTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. The time when the next update can be expected.
NextUpdateTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=next_update_time,json=nextUpdateTime,proto3" json:"next_update_time,omitempty"`
// contains filtered or unexported fields
}Represents service health events that may affect Google Cloud products. Event resource is a read-only view and does not allow any modifications. All fields are output only.
func (*Event) Descriptor
Deprecated: Use Event.ProtoReflect.Descriptor instead.
func (*Event) GetCategory
func (x *Event) GetCategory() Event_EventCategoryfunc (*Event) GetDescription
func (*Event) GetDetailedCategory
func (x *Event) GetDetailedCategory() Event_DetailedCategoryfunc (*Event) GetDetailedState
func (x *Event) GetDetailedState() Event_DetailedStatefunc (*Event) GetEndTime
func (x *Event) GetEndTime() *timestamppb.Timestampfunc (*Event) GetEventImpacts
func (x *Event) GetEventImpacts() []*EventImpactfunc (*Event) GetName
func (*Event) GetNextUpdateTime
func (x *Event) GetNextUpdateTime() *timestamppb.Timestampfunc (*Event) GetParentEvent
func (*Event) GetRelevance
func (x *Event) GetRelevance() Event_Relevancefunc (*Event) GetStartTime
func (x *Event) GetStartTime() *timestamppb.Timestampfunc (*Event) GetState
func (x *Event) GetState() Event_Statefunc (*Event) GetTitle
func (*Event) GetUpdateTime
func (x *Event) GetUpdateTime() *timestamppb.Timestampfunc (*Event) GetUpdates
func (x *Event) GetUpdates() []*EventUpdatefunc (*Event) ProtoMessage
func (*Event) ProtoMessage()func (*Event) ProtoReflect
func (x *Event) ProtoReflect() protoreflect.Messagefunc (*Event) Reset
func (x *Event) Reset()func (*Event) String
EventImpact
type EventImpact struct {
// Google Cloud product impacted by the event.
Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
// Location impacted by the event.
Location *Location `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
// contains filtered or unexported fields
}Represents the Google Cloud products and locations impacted by the event.
func (*EventImpact) Descriptor
func (*EventImpact) Descriptor() ([]byte, []int)Deprecated: Use EventImpact.ProtoReflect.Descriptor instead.
func (*EventImpact) GetLocation
func (x *EventImpact) GetLocation() *Locationfunc (*EventImpact) GetProduct
func (x *EventImpact) GetProduct() *Productfunc (*EventImpact) ProtoMessage
func (*EventImpact) ProtoMessage()func (*EventImpact) ProtoReflect
func (x *EventImpact) ProtoReflect() protoreflect.Messagefunc (*EventImpact) Reset
func (x *EventImpact) Reset()func (*EventImpact) String
func (x *EventImpact) String() stringEventUpdate
type EventUpdate struct {
// Output only. The time the update was posted.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. Brief title for the event.
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// Output only. Free-form, human-readable description.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Symptoms of the event, if available.
Symptom string `protobuf:"bytes,4,opt,name=symptom,proto3" json:"symptom,omitempty"`
// Output only. Workaround steps to remediate the event impact, if available.
Workaround string `protobuf:"bytes,5,opt,name=workaround,proto3" json:"workaround,omitempty"`
// contains filtered or unexported fields
}Records an update made to the event.
func (*EventUpdate) Descriptor
func (*EventUpdate) Descriptor() ([]byte, []int)Deprecated: Use EventUpdate.ProtoReflect.Descriptor instead.
func (*EventUpdate) GetDescription
func (x *EventUpdate) GetDescription() stringfunc (*EventUpdate) GetSymptom
func (x *EventUpdate) GetSymptom() stringfunc (*EventUpdate) GetTitle
func (x *EventUpdate) GetTitle() stringfunc (*EventUpdate) GetUpdateTime
func (x *EventUpdate) GetUpdateTime() *timestamppb.Timestampfunc (*EventUpdate) GetWorkaround
func (x *EventUpdate) GetWorkaround() stringfunc (*EventUpdate) ProtoMessage
func (*EventUpdate) ProtoMessage()func (*EventUpdate) ProtoReflect
func (x *EventUpdate) ProtoReflect() protoreflect.Messagefunc (*EventUpdate) Reset
func (x *EventUpdate) Reset()func (*EventUpdate) String
func (x *EventUpdate) String() stringEventView
type EventView int32The event fields to include in ListEvents API response. This enum lists all possible event views.
EventView_EVENT_VIEW_UNSPECIFIED, EventView_EVENT_VIEW_BASIC, EventView_EVENT_VIEW_FULL
const (
// Unspecified event view. Default to `EVENT_VIEW_BASIC`.
EventView_EVENT_VIEW_UNSPECIFIED EventView = 0
// Includes all fields except `updates`. This view is the default for
// ListEvents API.
EventView_EVENT_VIEW_BASIC EventView = 1
// Includes all event fields.
EventView_EVENT_VIEW_FULL EventView = 2
)func (EventView) Descriptor
func (EventView) Descriptor() protoreflect.EnumDescriptorfunc (EventView) Enum
func (EventView) EnumDescriptor
Deprecated: Use EventView.Descriptor instead.
func (EventView) Number
func (x EventView) Number() protoreflect.EnumNumberfunc (EventView) String
func (EventView) Type
func (EventView) Type() protoreflect.EnumTypeEvent_DetailedCategory
type Event_DetailedCategory int32The detailed category of an event. Contains all possible states for all event categories.
Event_DETAILED_CATEGORY_UNSPECIFIED, Event_CONFIRMED_INCIDENT, Event_EMERGING_INCIDENT
const (
// Unspecified detailed category.
Event_DETAILED_CATEGORY_UNSPECIFIED Event_DetailedCategory = 0
// Indicates an event with category INCIDENT has a confirmed impact to at
// least one Google Cloud product.
Event_CONFIRMED_INCIDENT Event_DetailedCategory = 1
// Indicates an event with category INCIDENT is under investigation to
// determine if it has a confirmed impact on any Google Cloud products.
Event_EMERGING_INCIDENT Event_DetailedCategory = 2
)func (Event_DetailedCategory) Descriptor
func (Event_DetailedCategory) Descriptor() protoreflect.EnumDescriptorfunc (Event_DetailedCategory) Enum
func (x Event_DetailedCategory) Enum() *Event_DetailedCategoryfunc (Event_DetailedCategory) EnumDescriptor
func (Event_DetailedCategory) EnumDescriptor() ([]byte, []int)Deprecated: Use Event_DetailedCategory.Descriptor instead.
func (Event_DetailedCategory) Number
func (x Event_DetailedCategory) Number() protoreflect.EnumNumberfunc (Event_DetailedCategory) String
func (x Event_DetailedCategory) String() stringfunc (Event_DetailedCategory) Type
func (Event_DetailedCategory) Type() protoreflect.EnumTypeEvent_DetailedState
type Event_DetailedState int32The detailed state of the incident. This enum lists all possible detailed states of an incident.
Event_DETAILED_STATE_UNSPECIFIED, Event_EMERGING, Event_CONFIRMED, Event_RESOLVED, Event_MERGED, Event_AUTO_CLOSED, Event_FALSE_POSITIVE
const (
// Unspecified detail state.
Event_DETAILED_STATE_UNSPECIFIED Event_DetailedState = 0
// Google engineers are actively investigating the event to determine the
// impact.
Event_EMERGING Event_DetailedState = 1
// The incident is confirmed and impacting at least one Google Cloud
// product. Ongoing status updates will be provided until it is resolved.
Event_CONFIRMED Event_DetailedState = 2
// The incident is no longer affecting any Google Cloud product, and there
// will be no further updates.
Event_RESOLVED Event_DetailedState = 3
// The incident was merged into a parent incident. All further updates will
// be published to the parent only. The `parent_event` field contains the
// name of the parent.
Event_MERGED Event_DetailedState = 4
// The incident was automatically closed because of the following reasons:
//
// - The impact of the incident could not be confirmed.
//
// - The incident was intermittent or resolved itself.
//
// The incident does not have a resolution because no action or
// investigation happened. If it is intermittent, the incident may reopen.
Event_AUTO_CLOSED Event_DetailedState = 9
// Upon investigation, Google engineers concluded that the incident is not
// affecting a Google Cloud product. This state can change if the incident
// is reviewed again.
Event_FALSE_POSITIVE Event_DetailedState = 10
)func (Event_DetailedState) Descriptor
func (Event_DetailedState) Descriptor() protoreflect.EnumDescriptorfunc (Event_DetailedState) Enum
func (x Event_DetailedState) Enum() *Event_DetailedStatefunc (Event_DetailedState) EnumDescriptor
func (Event_DetailedState) EnumDescriptor() ([]byte, []int)Deprecated: Use Event_DetailedState.Descriptor instead.
func (Event_DetailedState) Number
func (x Event_DetailedState) Number() protoreflect.EnumNumberfunc (Event_DetailedState) String
func (x Event_DetailedState) String() stringfunc (Event_DetailedState) Type
func (Event_DetailedState) Type() protoreflect.EnumTypeEvent_EventCategory
type Event_EventCategory int32The category of the event. This enum lists all possible categories of event.
Event_EVENT_CATEGORY_UNSPECIFIED, Event_INCIDENT
const (
// Unspecified category.
Event_EVENT_CATEGORY_UNSPECIFIED Event_EventCategory = 0
// Event category for service outage or degradation.
Event_INCIDENT Event_EventCategory = 2
)func (Event_EventCategory) Descriptor
func (Event_EventCategory) Descriptor() protoreflect.EnumDescriptorfunc (Event_EventCategory) Enum
func (x Event_EventCategory) Enum() *Event_EventCategoryfunc (Event_EventCategory) EnumDescriptor
func (Event_EventCategory) EnumDescriptor() ([]byte, []int)Deprecated: Use Event_EventCategory.Descriptor instead.
func (Event_EventCategory) Number
func (x Event_EventCategory) Number() protoreflect.EnumNumberfunc (Event_EventCategory) String
func (x Event_EventCategory) String() stringfunc (Event_EventCategory) Type
func (Event_EventCategory) Type() protoreflect.EnumTypeEvent_Relevance
type Event_Relevance int32Communicates why a given incident is deemed relevant in the context of a given project. This enum lists all possible detailed states of relevance.
Event_RELEVANCE_UNSPECIFIED, Event_UNKNOWN, Event_NOT_IMPACTED, Event_PARTIALLY_RELATED, Event_RELATED, Event_IMPACTED
const (
// Unspecified relevance.
Event_RELEVANCE_UNSPECIFIED Event_Relevance = 0
// The relevance of the incident to the project is unknown.
Event_UNKNOWN Event_Relevance = 2
// The incident does not impact the project.
Event_NOT_IMPACTED Event_Relevance = 6
// The incident is associated with a Google Cloud product your project uses,
// but the incident may not be impacting your project. For example, the
// incident may be impacting a Google Cloud product that your project uses,
// but in a location that your project does not use.
Event_PARTIALLY_RELATED Event_Relevance = 7
// The incident has a direct connection with your project and impacts a
// Google Cloud product in a location your project uses.
Event_RELATED Event_Relevance = 8
// The incident is verified to be impacting your project.
Event_IMPACTED Event_Relevance = 9
)func (Event_Relevance) Descriptor
func (Event_Relevance) Descriptor() protoreflect.EnumDescriptorfunc (Event_Relevance) Enum
func (x Event_Relevance) Enum() *Event_Relevancefunc (Event_Relevance) EnumDescriptor
func (Event_Relevance) EnumDescriptor() ([]byte, []int)Deprecated: Use Event_Relevance.Descriptor instead.
func (Event_Relevance) Number
func (x Event_Relevance) Number() protoreflect.EnumNumberfunc (Event_Relevance) String
func (x Event_Relevance) String() stringfunc (Event_Relevance) Type
func (Event_Relevance) Type() protoreflect.EnumTypeEvent_State
type Event_State int32The state of the event. This enum lists all possible states of event.
Event_STATE_UNSPECIFIED, Event_ACTIVE, Event_CLOSED
const (
// Unspecified state.
Event_STATE_UNSPECIFIED Event_State = 0
// Event is actively affecting a Google Cloud product and will continue to
// receive updates.
Event_ACTIVE Event_State = 1
// Event is no longer affecting the Google Cloud product or has been merged
// with another event.
Event_CLOSED Event_State = 2
)func (Event_State) Descriptor
func (Event_State) Descriptor() protoreflect.EnumDescriptorfunc (Event_State) Enum
func (x Event_State) Enum() *Event_Statefunc (Event_State) EnumDescriptor
func (Event_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Event_State.Descriptor instead.
func (Event_State) Number
func (x Event_State) Number() protoreflect.EnumNumberfunc (Event_State) String
func (x Event_State) String() stringfunc (Event_State) Type
func (Event_State) Type() protoreflect.EnumTypeGetEventRequest
type GetEventRequest struct {
// Required. Unique name of the event in this scope including project
// and location using the form
// `projects/{project_id}/locations/{location}/events/{event_id}`.
//
// `project_id` - Project ID of the project that contains the event.
// `location` - The location to get the service health events from.
// `event_id` - Event ID to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Gets information about a specific event.
func (*GetEventRequest) Descriptor
func (*GetEventRequest) Descriptor() ([]byte, []int)Deprecated: Use GetEventRequest.ProtoReflect.Descriptor instead.
func (*GetEventRequest) GetName
func (x *GetEventRequest) GetName() stringfunc (*GetEventRequest) ProtoMessage
func (*GetEventRequest) ProtoMessage()func (*GetEventRequest) ProtoReflect
func (x *GetEventRequest) ProtoReflect() protoreflect.Messagefunc (*GetEventRequest) Reset
func (x *GetEventRequest) Reset()func (*GetEventRequest) String
func (x *GetEventRequest) String() stringGetOrganizationEventRequest
type GetOrganizationEventRequest struct {
// Required. Unique name of the event in this scope including organization and
// event ID using the form
// `organizations/{organization_id}/locations/locations/global/organizationEvents/{event_id}`.
//
// `organization_id` - ID (number) of the project that contains the event. To
// get your `organization_id`, see
// [Getting your organization resource
// ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
// `event_id` - Organization event ID to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Gets information about a specific event affecting an organization.
func (*GetOrganizationEventRequest) Descriptor
func (*GetOrganizationEventRequest) Descriptor() ([]byte, []int)Deprecated: Use GetOrganizationEventRequest.ProtoReflect.Descriptor instead.
func (*GetOrganizationEventRequest) GetName
func (x *GetOrganizationEventRequest) GetName() stringfunc (*GetOrganizationEventRequest) ProtoMessage
func (*GetOrganizationEventRequest) ProtoMessage()func (*GetOrganizationEventRequest) ProtoReflect
func (x *GetOrganizationEventRequest) ProtoReflect() protoreflect.Messagefunc (*GetOrganizationEventRequest) Reset
func (x *GetOrganizationEventRequest) Reset()func (*GetOrganizationEventRequest) String
func (x *GetOrganizationEventRequest) String() stringGetOrganizationImpactRequest
type GetOrganizationImpactRequest struct {
// Required. Name of the resource using the form
// `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
//
// `organization_id` - ID (number) of the organization that contains the
// event. To get your `organization_id`, see
// [Getting your organization resource
// ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
// `organization_impact_id` - ID of the [OrganizationImpact
// resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Gets information about an event that affects a project under an organization.
func (*GetOrganizationImpactRequest) Descriptor
func (*GetOrganizationImpactRequest) Descriptor() ([]byte, []int)Deprecated: Use GetOrganizationImpactRequest.ProtoReflect.Descriptor instead.
func (*GetOrganizationImpactRequest) GetName
func (x *GetOrganizationImpactRequest) GetName() stringfunc (*GetOrganizationImpactRequest) ProtoMessage
func (*GetOrganizationImpactRequest) ProtoMessage()func (*GetOrganizationImpactRequest) ProtoReflect
func (x *GetOrganizationImpactRequest) ProtoReflect() protoreflect.Messagefunc (*GetOrganizationImpactRequest) Reset
func (x *GetOrganizationImpactRequest) Reset()func (*GetOrganizationImpactRequest) String
func (x *GetOrganizationImpactRequest) String() stringListEventsRequest
type ListEventsRequest struct {
// Required. Parent value using the form
// `projects/{project_id}/locations/{location}/events`.
//
// `project_id` - ID of the project for which to list service health
// events.
// `location` - The location to get the service health events from.
// To retrieve service health events of category = INCIDENT, use `location` =
// `global`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of events that should be returned. Acceptable
// values are 1 to 100, inclusive. (The default value is 10.) If more results
// are available, the service returns a next_page_token that you can use to
// get the next page of results in subsequent list requests. The service may
// return fewer events than the requested page_size.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results the server should return.
// Provide Page token returned by a previous `ListEvents` call to retrieve the
// next page of results. When paginating, all other parameters provided to
// `ListEvents` must match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. A filter expression that filters resources listed in the
// response. The expression takes the following forms:
// * field=value for `category` and `state`
// * field <, >, <=, or >= value for `update_time`
// Examples: `category=INCIDENT`, `update_time>="2000-01-01T11:30:00-04:00"`,
// `event_impacts.product.product_name:"Eventarc"`
//
//
// Multiple filter queries are separated by spaces. Example:
// `category=INCIDENT state=ACTIVE`.
//
// By default, each expression is an AND expression. However, you can include
// AND and OR expressions explicitly.
//
// Filter is supported for the following fields: `category`, `state`,
// `update_time`, `event_impacts.product.product_name`
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Event fields to include in response.
View EventView `protobuf:"varint,6,opt,name=view,proto3,enum=google.cloud.servicehealth.v1.EventView" json:"view,omitempty"`
// contains filtered or unexported fields
}Requests list of events.
func (*ListEventsRequest) Descriptor
func (*ListEventsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead.
func (*ListEventsRequest) GetFilter
func (x *ListEventsRequest) GetFilter() stringfunc (*ListEventsRequest) GetPageSize
func (x *ListEventsRequest) GetPageSize() int32func (*ListEventsRequest) GetPageToken
func (x *ListEventsRequest) GetPageToken() stringfunc (*ListEventsRequest) GetParent
func (x *ListEventsRequest) GetParent() stringfunc (*ListEventsRequest) GetView
func (x *ListEventsRequest) GetView() EventViewfunc (*ListEventsRequest) ProtoMessage
func (*ListEventsRequest) ProtoMessage()func (*ListEventsRequest) ProtoReflect
func (x *ListEventsRequest) ProtoReflect() protoreflect.Messagefunc (*ListEventsRequest) Reset
func (x *ListEventsRequest) Reset()func (*ListEventsRequest) String
func (x *ListEventsRequest) String() stringListEventsResponse
type ListEventsResponse struct {
// Output only. List of events.
Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
// Output only. The continuation token, used to page through large result
// sets. Provide this value in a subsequent request as page_token to retrieve
// the next page.
//
// If this field is not present, there are no subsequent results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Output only. Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response to request for listing events.
func (*ListEventsResponse) Descriptor
func (*ListEventsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListEventsResponse.ProtoReflect.Descriptor instead.
func (*ListEventsResponse) GetEvents
func (x *ListEventsResponse) GetEvents() []*Eventfunc (*ListEventsResponse) GetNextPageToken
func (x *ListEventsResponse) GetNextPageToken() stringfunc (*ListEventsResponse) GetUnreachable
func (x *ListEventsResponse) GetUnreachable() []stringfunc (*ListEventsResponse) ProtoMessage
func (*ListEventsResponse) ProtoMessage()func (*ListEventsResponse) ProtoReflect
func (x *ListEventsResponse) ProtoReflect() protoreflect.Messagefunc (*ListEventsResponse) Reset
func (x *ListEventsResponse) Reset()func (*ListEventsResponse) String
func (x *ListEventsResponse) String() stringListOrganizationEventsRequest
type ListOrganizationEventsRequest struct {
// Required. Parent value using the form
// `organizations/{organization_id}/locations/{location}/organizationEvents`.
//
// `organization_id` - ID (number) of the project that contains the event. To
// get your `organization_id`, see
// [Getting your organization resource
// ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
// `location` - The location to get the service health events from. To
// retrieve service health events of category = INCIDENT, use `location` =
// `global`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of events that should be returned. Acceptable
// values are `1` to `100`, inclusive. (The default value is `10`.) If more
// results are available, the service returns a `next_page_token` that you can
// use to get the next page of results in subsequent list requests. The
// service may return fewer events than the requested `page_size`.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results the server should return.
//
// Provide Page token returned by a previous `ListOrganizationEvents` call to
// retrieve the next page of results.
//
// When paginating, all other parameters provided to
// `ListOrganizationEvents` must match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. A filter expression that filters resources listed in the
// response. The expression takes the following forms:
//
// * field=value for `category` and `state`
// * field <, >, <=, or >= value for `update_time`
//
// Examples: `category=INCIDENT`, `update_time>="2000-01-01T11:30:00-04:00"`
//
// Multiple filter queries are space-separated. Example:
// `category=INCIDENT state=ACTIVE`.
//
// By default, each expression is an AND expression. However, you can include
// AND and OR expressions explicitly.
//
// Filter is supported for the following fields: `category`, `state`,
// `update_time`
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. OrganizationEvent fields to include in response.
View OrganizationEventView `protobuf:"varint,6,opt,name=view,proto3,enum=google.cloud.servicehealth.v1.OrganizationEventView" json:"view,omitempty"`
// contains filtered or unexported fields
}Requests list of events that affect an organization.
func (*ListOrganizationEventsRequest) Descriptor
func (*ListOrganizationEventsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListOrganizationEventsRequest.ProtoReflect.Descriptor instead.
func (*ListOrganizationEventsRequest) GetFilter
func (x *ListOrganizationEventsRequest) GetFilter() stringfunc (*ListOrganizationEventsRequest) GetPageSize
func (x *ListOrganizationEventsRequest) GetPageSize() int32func (*ListOrganizationEventsRequest) GetPageToken
func (x *ListOrganizationEventsRequest) GetPageToken() stringfunc (*ListOrganizationEventsRequest) GetParent
func (x *ListOrganizationEventsRequest) GetParent() stringfunc (*ListOrganizationEventsRequest) GetView
func (x *ListOrganizationEventsRequest) GetView() OrganizationEventViewfunc (*ListOrganizationEventsRequest) ProtoMessage
func (*ListOrganizationEventsRequest) ProtoMessage()func (*ListOrganizationEventsRequest) ProtoReflect
func (x *ListOrganizationEventsRequest) ProtoReflect() protoreflect.Messagefunc (*ListOrganizationEventsRequest) Reset
func (x *ListOrganizationEventsRequest) Reset()func (*ListOrganizationEventsRequest) String
func (x *ListOrganizationEventsRequest) String() stringListOrganizationEventsResponse
type ListOrganizationEventsResponse struct {
// Output only. List of organization events affecting an organization.
OrganizationEvents []*OrganizationEvent `protobuf:"bytes,1,rep,name=organization_events,json=organizationEvents,proto3" json:"organization_events,omitempty"`
// Output only. The continuation token, used to page through large result
// sets. Provide this value in a subsequent request as `page_token` to
// retrieve the next page.
//
// If this field is not present, there are no subsequent results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Output only. Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response to request for listing organization events.
func (*ListOrganizationEventsResponse) Descriptor
func (*ListOrganizationEventsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListOrganizationEventsResponse.ProtoReflect.Descriptor instead.
func (*ListOrganizationEventsResponse) GetNextPageToken
func (x *ListOrganizationEventsResponse) GetNextPageToken() stringfunc (*ListOrganizationEventsResponse) GetOrganizationEvents
func (x *ListOrganizationEventsResponse) GetOrganizationEvents() []*OrganizationEventfunc (*ListOrganizationEventsResponse) GetUnreachable
func (x *ListOrganizationEventsResponse) GetUnreachable() []stringfunc (*ListOrganizationEventsResponse) ProtoMessage
func (*ListOrganizationEventsResponse) ProtoMessage()func (*ListOrganizationEventsResponse) ProtoReflect
func (x *ListOrganizationEventsResponse) ProtoReflect() protoreflect.Messagefunc (*ListOrganizationEventsResponse) Reset
func (x *ListOrganizationEventsResponse) Reset()func (*ListOrganizationEventsResponse) String
func (x *ListOrganizationEventsResponse) String() stringListOrganizationImpactsRequest
type ListOrganizationImpactsRequest struct {
// Required. Parent value using the form
// `organizations/{organization_id}/locations/{location}/organizationImpacts`.
//
// `organization_id` - ID (number) of the project that contains the event. To
// get your `organization_id`, see
// [Getting your organization resource
// ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of events that should be returned. Acceptable
// values are `1` to `100`, inclusive. The default value is `10`.
//
// If more results are available, the service returns a
//
// `next_page_token` that can be used to get the next page of results in
// subsequent list requests. The service may return fewer
// [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
// than the requested `page_size`.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results the server should return.
//
// Provide `page_token` returned by a previous `ListOrganizationImpacts` call
// to retrieve the next page of results.
//
// When paginating, all other parameters provided to `ListOrganizationImpacts`
// must match the call that provided the page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. A filter expression that filters resources listed in the
// response. The expression is in the form of `field:value` for checking if a
// repeated field contains a value.
//
// Example:
// `events:organizations%2F{organization_id}%2Flocations%2Fglobal%2ForganizationEvents%2Fevent-id`
//
// To get your `{organization_id}`, see
// [Getting your organization resource
// ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
//
// Multiple filter queries are separated by spaces.
//
// By default, each expression is an AND expression. However, you can include
// AND and OR expressions explicitly.
// Filter is supported for the following fields: `events`.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}Requests list of projects under an organization affected by an event.
func (*ListOrganizationImpactsRequest) Descriptor
func (*ListOrganizationImpactsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListOrganizationImpactsRequest.ProtoReflect.Descriptor instead.
func (*ListOrganizationImpactsRequest) GetFilter
func (x *ListOrganizationImpactsRequest) GetFilter() stringfunc (*ListOrganizationImpactsRequest) GetPageSize
func (x *ListOrganizationImpactsRequest) GetPageSize() int32func (*ListOrganizationImpactsRequest) GetPageToken
func (x *ListOrganizationImpactsRequest) GetPageToken() stringfunc (*ListOrganizationImpactsRequest) GetParent
func (x *ListOrganizationImpactsRequest) GetParent() stringfunc (*ListOrganizationImpactsRequest) ProtoMessage
func (*ListOrganizationImpactsRequest) ProtoMessage()func (*ListOrganizationImpactsRequest) ProtoReflect
func (x *ListOrganizationImpactsRequest) ProtoReflect() protoreflect.Messagefunc (*ListOrganizationImpactsRequest) Reset
func (x *ListOrganizationImpactsRequest) Reset()func (*ListOrganizationImpactsRequest) String
func (x *ListOrganizationImpactsRequest) String() stringListOrganizationImpactsResponse
type ListOrganizationImpactsResponse struct {
// Output only. List of
// [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
// for an organization affected by service health events.
OrganizationImpacts []*OrganizationImpact `protobuf:"bytes,1,rep,name=organization_impacts,json=organizationImpacts,proto3" json:"organization_impacts,omitempty"`
// Output only. The continuation token, used to page through large result
// sets. Provide this value in a subsequent request as `page_token` to
// retrieve the next page.
//
// If this field is not present, there are no subsequent results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Output only. Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response to request for listing projects under an organization affected by an event.
func (*ListOrganizationImpactsResponse) Descriptor
func (*ListOrganizationImpactsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListOrganizationImpactsResponse.ProtoReflect.Descriptor instead.
func (*ListOrganizationImpactsResponse) GetNextPageToken
func (x *ListOrganizationImpactsResponse) GetNextPageToken() stringfunc (*ListOrganizationImpactsResponse) GetOrganizationImpacts
func (x *ListOrganizationImpactsResponse) GetOrganizationImpacts() []*OrganizationImpactfunc (*ListOrganizationImpactsResponse) GetUnreachable
func (x *ListOrganizationImpactsResponse) GetUnreachable() []stringfunc (*ListOrganizationImpactsResponse) ProtoMessage
func (*ListOrganizationImpactsResponse) ProtoMessage()func (*ListOrganizationImpactsResponse) ProtoReflect
func (x *ListOrganizationImpactsResponse) ProtoReflect() protoreflect.Messagefunc (*ListOrganizationImpactsResponse) Reset
func (x *ListOrganizationImpactsResponse) Reset()func (*ListOrganizationImpactsResponse) String
func (x *ListOrganizationImpactsResponse) String() stringLocation
type Location struct {
// Location impacted by the event. Example: `"us-central1"`
LocationName string `protobuf:"bytes,1,opt,name=location_name,json=locationName,proto3" json:"location_name,omitempty"`
// contains filtered or unexported fields
}Represents the locations impacted by the event.
func (*Location) Descriptor
Deprecated: Use Location.ProtoReflect.Descriptor instead.
func (*Location) GetLocationName
func (*Location) ProtoMessage
func (*Location) ProtoMessage()func (*Location) ProtoReflect
func (x *Location) ProtoReflect() protoreflect.Messagefunc (*Location) Reset
func (x *Location) Reset()func (*Location) String
OrganizationEvent
type OrganizationEvent struct {
// Output only. Identifier. Name of the event. Unique name of the event in
// this scope including organization ID and location using the form
// `organizations/{organization_id}/locations/{location}/organizationEvents/{event_id}`.
//
// `organization_id` - see [Getting your organization resource
// ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
// `location` - The location to get the service health events from.
// `event_id` - Organization event ID to retrieve.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Brief description for the event.
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// Output only. Free-form, human-readable description.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The category of the event.
Category OrganizationEvent_EventCategory `protobuf:"varint,4,opt,name=category,proto3,enum=google.cloud.servicehealth.v1.OrganizationEvent_EventCategory" json:"category,omitempty"`
// Output only. The detailed category of the event.
DetailedCategory OrganizationEvent_DetailedCategory `protobuf:"varint,17,opt,name=detailed_category,json=detailedCategory,proto3,enum=google.cloud.servicehealth.v1.OrganizationEvent_DetailedCategory" json:"detailed_category,omitempty"`
// Output only. The current state of the event.
State OrganizationEvent_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.servicehealth.v1.OrganizationEvent_State" json:"state,omitempty"`
// Output only. The current detailed state of the incident.
DetailedState OrganizationEvent_DetailedState `protobuf:"varint,16,opt,name=detailed_state,json=detailedState,proto3,enum=google.cloud.servicehealth.v1.OrganizationEvent_DetailedState" json:"detailed_state,omitempty"`
// Output only. Represents the Google Cloud products and locations impacted by
// the event.
EventImpacts []*EventImpact `protobuf:"bytes,15,rep,name=event_impacts,json=eventImpacts,proto3" json:"event_impacts,omitempty"`
// Output only. Incident-only field. Event updates are correspondence from
// Google.
Updates []*EventUpdate `protobuf:"bytes,8,rep,name=updates,proto3" json:"updates,omitempty"`
// Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
// name of the parent event. All further updates will be published to the
// parent event.
ParentEvent string `protobuf:"bytes,9,opt,name=parent_event,json=parentEvent,proto3" json:"parent_event,omitempty"`
// Output only. The time the update was posted.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. The start time of the event, if applicable.
StartTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Output only. The end time of the event, if applicable.
EndTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Incident-only field. The time when the next update can be
// expected.
NextUpdateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=next_update_time,json=nextUpdateTime,proto3" json:"next_update_time,omitempty"`
// contains filtered or unexported fields
}Represents service health events that may affect Google Cloud products used across the organization. It is a read-only view and does not allow any modifications.
func (*OrganizationEvent) Descriptor
func (*OrganizationEvent) Descriptor() ([]byte, []int)Deprecated: Use OrganizationEvent.ProtoReflect.Descriptor instead.
func (*OrganizationEvent) GetCategory
func (x *OrganizationEvent) GetCategory() OrganizationEvent_EventCategoryfunc (*OrganizationEvent) GetDescription
func (x *OrganizationEvent) GetDescription() stringfunc (*OrganizationEvent) GetDetailedCategory
func (x *OrganizationEvent) GetDetailedCategory() OrganizationEvent_DetailedCategoryfunc (*OrganizationEvent) GetDetailedState
func (x *OrganizationEvent) GetDetailedState() OrganizationEvent_DetailedStatefunc (*OrganizationEvent) GetEndTime
func (x *OrganizationEvent) GetEndTime() *timestamppb.Timestampfunc (*OrganizationEvent) GetEventImpacts
func (x *OrganizationEvent) GetEventImpacts() []*EventImpactfunc (*OrganizationEvent) GetName
func (x *OrganizationEvent) GetName() stringfunc (*OrganizationEvent) GetNextUpdateTime
func (x *OrganizationEvent) GetNextUpdateTime() *timestamppb.Timestampfunc (*OrganizationEvent) GetParentEvent
func (x *OrganizationEvent) GetParentEvent() stringfunc (*OrganizationEvent) GetStartTime
func (x *OrganizationEvent) GetStartTime() *timestamppb.Timestampfunc (*OrganizationEvent) GetState
func (x *OrganizationEvent) GetState() OrganizationEvent_Statefunc (*OrganizationEvent) GetTitle
func (x *OrganizationEvent) GetTitle() stringfunc (*OrganizationEvent) GetUpdateTime
func (x *OrganizationEvent) GetUpdateTime() *timestamppb.Timestampfunc (*OrganizationEvent) GetUpdates
func (x *OrganizationEvent) GetUpdates() []*EventUpdatefunc (*OrganizationEvent) ProtoMessage
func (*OrganizationEvent) ProtoMessage()func (*OrganizationEvent) ProtoReflect
func (x *OrganizationEvent) ProtoReflect() protoreflect.Messagefunc (*OrganizationEvent) Reset
func (x *OrganizationEvent) Reset()func (*OrganizationEvent) String
func (x *OrganizationEvent) String() stringOrganizationEventView
type OrganizationEventView int32The organization event fields to include in ListOrganizationEvents API response. This enum lists all possible organization event views.
OrganizationEventView_ORGANIZATION_EVENT_VIEW_UNSPECIFIED, OrganizationEventView_ORGANIZATION_EVENT_VIEW_BASIC, OrganizationEventView_ORGANIZATION_EVENT_VIEW_FULL
const (
// Unspecified event view. Default to `ORGANIZATION_EVENT_VIEW_BASIC`.
OrganizationEventView_ORGANIZATION_EVENT_VIEW_UNSPECIFIED OrganizationEventView = 0
// Includes all organization event fields except `updates`. This view is the
// default for ListOrganizationEvents API.
OrganizationEventView_ORGANIZATION_EVENT_VIEW_BASIC OrganizationEventView = 1
// Includes all organization event fields.
OrganizationEventView_ORGANIZATION_EVENT_VIEW_FULL OrganizationEventView = 2
)func (OrganizationEventView) Descriptor
func (OrganizationEventView) Descriptor() protoreflect.EnumDescriptorfunc (OrganizationEventView) Enum
func (x OrganizationEventView) Enum() *OrganizationEventViewfunc (OrganizationEventView) EnumDescriptor
func (OrganizationEventView) EnumDescriptor() ([]byte, []int)Deprecated: Use OrganizationEventView.Descriptor instead.
func (OrganizationEventView) Number
func (x OrganizationEventView) Number() protoreflect.EnumNumberfunc (OrganizationEventView) String
func (x OrganizationEventView) String() stringfunc (OrganizationEventView) Type
func (OrganizationEventView) Type() protoreflect.EnumTypeOrganizationEvent_DetailedCategory
type OrganizationEvent_DetailedCategory int32The detailed category of an event. Contains all possible states for all event categories.
OrganizationEvent_DETAILED_CATEGORY_UNSPECIFIED, OrganizationEvent_CONFIRMED_INCIDENT, OrganizationEvent_EMERGING_INCIDENT
const (
// Unspecified detailed category.
OrganizationEvent_DETAILED_CATEGORY_UNSPECIFIED OrganizationEvent_DetailedCategory = 0
// Indicates an event with category INCIDENT has a confirmed impact to at
// least one Google Cloud product.
OrganizationEvent_CONFIRMED_INCIDENT OrganizationEvent_DetailedCategory = 1
// Indicates an event with category INCIDENT is under investigation to
// determine if it has a confirmed impact on any Google Cloud products.
OrganizationEvent_EMERGING_INCIDENT OrganizationEvent_DetailedCategory = 2
)func (OrganizationEvent_DetailedCategory) Descriptor
func (OrganizationEvent_DetailedCategory) Descriptor() protoreflect.EnumDescriptorfunc (OrganizationEvent_DetailedCategory) Enum
func (x OrganizationEvent_DetailedCategory) Enum() *OrganizationEvent_DetailedCategoryfunc (OrganizationEvent_DetailedCategory) EnumDescriptor
func (OrganizationEvent_DetailedCategory) EnumDescriptor() ([]byte, []int)Deprecated: Use OrganizationEvent_DetailedCategory.Descriptor instead.
func (OrganizationEvent_DetailedCategory) Number
func (x OrganizationEvent_DetailedCategory) Number() protoreflect.EnumNumberfunc (OrganizationEvent_DetailedCategory) String
func (x OrganizationEvent_DetailedCategory) String() stringfunc (OrganizationEvent_DetailedCategory) Type
func (OrganizationEvent_DetailedCategory) Type() protoreflect.EnumTypeOrganizationEvent_DetailedState
type OrganizationEvent_DetailedState int32The detailed state of the incident. This enum lists all possible detailed states of an incident.
OrganizationEvent_DETAILED_STATE_UNSPECIFIED, OrganizationEvent_EMERGING, OrganizationEvent_CONFIRMED, OrganizationEvent_RESOLVED, OrganizationEvent_MERGED, OrganizationEvent_AUTO_CLOSED, OrganizationEvent_FALSE_POSITIVE
const (
// Unspecified detail state.
OrganizationEvent_DETAILED_STATE_UNSPECIFIED OrganizationEvent_DetailedState = 0
// Google engineers are actively investigating the incident to determine the
// impact.
OrganizationEvent_EMERGING OrganizationEvent_DetailedState = 1
// The incident is confirmed and impacting at least one Google Cloud
// product. Ongoing status updates will be provided until it is resolved.
OrganizationEvent_CONFIRMED OrganizationEvent_DetailedState = 2
// The incident is no longer affecting any Google Cloud product, and there
// will be no further updates.
OrganizationEvent_RESOLVED OrganizationEvent_DetailedState = 3
// The incident was merged into a parent event. All further updates will be
// published to the parent only. The `parent_event` contains the name of the
// parent.
OrganizationEvent_MERGED OrganizationEvent_DetailedState = 4
// The incident was automatically closed because of the following reasons:
//
// - The impact of the incident could not be confirmed.
//
// - The incident was intermittent or resolved itself.
//
// The incident does not have a resolution because no action or
// investigation happened. If it is intermittent, the incident may reopen.
OrganizationEvent_AUTO_CLOSED OrganizationEvent_DetailedState = 9
// Upon investigation, Google engineers concluded that the incident is not
// affecting a Google Cloud product. This state can change if the incident
// is reviewed again.
OrganizationEvent_FALSE_POSITIVE OrganizationEvent_DetailedState = 10
)func (OrganizationEvent_DetailedState) Descriptor
func (OrganizationEvent_DetailedState) Descriptor() protoreflect.EnumDescriptorfunc (OrganizationEvent_DetailedState) Enum
func (x OrganizationEvent_DetailedState) Enum() *OrganizationEvent_DetailedStatefunc (OrganizationEvent_DetailedState) EnumDescriptor
func (OrganizationEvent_DetailedState) EnumDescriptor() ([]byte, []int)Deprecated: Use OrganizationEvent_DetailedState.Descriptor instead.
func (OrganizationEvent_DetailedState) Number
func (x OrganizationEvent_DetailedState) Number() protoreflect.EnumNumberfunc (OrganizationEvent_DetailedState) String
func (x OrganizationEvent_DetailedState) String() stringfunc (OrganizationEvent_DetailedState) Type
func (OrganizationEvent_DetailedState) Type() protoreflect.EnumTypeOrganizationEvent_EventCategory
type OrganizationEvent_EventCategory int32The category of the event. This enum lists all possible categories of event.
OrganizationEvent_EVENT_CATEGORY_UNSPECIFIED, OrganizationEvent_INCIDENT
const (
// Unspecified category.
OrganizationEvent_EVENT_CATEGORY_UNSPECIFIED OrganizationEvent_EventCategory = 0
// Event category for service outage or degradation.
OrganizationEvent_INCIDENT OrganizationEvent_EventCategory = 2
)func (OrganizationEvent_EventCategory) Descriptor
func (OrganizationEvent_EventCategory) Descriptor() protoreflect.EnumDescriptorfunc (OrganizationEvent_EventCategory) Enum
func (x OrganizationEvent_EventCategory) Enum() *OrganizationEvent_EventCategoryfunc (OrganizationEvent_EventCategory) EnumDescriptor
func (OrganizationEvent_EventCategory) EnumDescriptor() ([]byte, []int)Deprecated: Use OrganizationEvent_EventCategory.Descriptor instead.
func (OrganizationEvent_EventCategory) Number
func (x OrganizationEvent_EventCategory) Number() protoreflect.EnumNumberfunc (OrganizationEvent_EventCategory) String
func (x OrganizationEvent_EventCategory) String() stringfunc (OrganizationEvent_EventCategory) Type
func (OrganizationEvent_EventCategory) Type() protoreflect.EnumTypeOrganizationEvent_State
type OrganizationEvent_State int32The state of the organization event. This enum lists all possible states of event.
OrganizationEvent_STATE_UNSPECIFIED, OrganizationEvent_ACTIVE, OrganizationEvent_CLOSED
const (
// Unspecified state.
OrganizationEvent_STATE_UNSPECIFIED OrganizationEvent_State = 0
// Event is actively affecting a Google Cloud product and will continue to
// receive updates.
OrganizationEvent_ACTIVE OrganizationEvent_State = 1
// Event is no longer affecting the Google Cloud product or has been merged
// with another event.
OrganizationEvent_CLOSED OrganizationEvent_State = 2
)func (OrganizationEvent_State) Descriptor
func (OrganizationEvent_State) Descriptor() protoreflect.EnumDescriptorfunc (OrganizationEvent_State) Enum
func (x OrganizationEvent_State) Enum() *OrganizationEvent_Statefunc (OrganizationEvent_State) EnumDescriptor
func (OrganizationEvent_State) EnumDescriptor() ([]byte, []int)Deprecated: Use OrganizationEvent_State.Descriptor instead.
func (OrganizationEvent_State) Number
func (x OrganizationEvent_State) Number() protoreflect.EnumNumberfunc (OrganizationEvent_State) String
func (x OrganizationEvent_State) String() stringfunc (OrganizationEvent_State) Type
func (OrganizationEvent_State) Type() protoreflect.EnumTypeOrganizationImpact
type OrganizationImpact struct {
// Output only. Identifier. Unique name of the organization impact in this
// scope including organization and location using the form
// `organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}`.
//
// `organization_id` - ID (number) of the organization that contains the
// event. To get your `organization_id`, see
// [Getting your organization resource
// ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
// `organization_impact_id` - ID of the [OrganizationImpact
// resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. A list of event names impacting the asset.
Events []string `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"`
// Output only. Google Cloud asset possibly impacted by the specified events.
Asset *Asset `protobuf:"bytes,3,opt,name=asset,proto3" json:"asset,omitempty"`
// Output only. The time when the affected project was last modified.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// contains filtered or unexported fields
}Represents impact to assets at organizational level. It is a read-only view and does not allow any modifications.
func (*OrganizationImpact) Descriptor
func (*OrganizationImpact) Descriptor() ([]byte, []int)Deprecated: Use OrganizationImpact.ProtoReflect.Descriptor instead.
func (*OrganizationImpact) GetAsset
func (x *OrganizationImpact) GetAsset() *Assetfunc (*OrganizationImpact) GetEvents
func (x *OrganizationImpact) GetEvents() []stringfunc (*OrganizationImpact) GetName
func (x *OrganizationImpact) GetName() stringfunc (*OrganizationImpact) GetUpdateTime
func (x *OrganizationImpact) GetUpdateTime() *timestamppb.Timestampfunc (*OrganizationImpact) ProtoMessage
func (*OrganizationImpact) ProtoMessage()func (*OrganizationImpact) ProtoReflect
func (x *OrganizationImpact) ProtoReflect() protoreflect.Messagefunc (*OrganizationImpact) Reset
func (x *OrganizationImpact) Reset()func (*OrganizationImpact) String
func (x *OrganizationImpact) String() stringProduct
type Product struct {
// Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
ProductName string `protobuf:"bytes,1,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"`
// Unique identifier for the product.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}Represents the Google Cloud product impacted by the event.
func (*Product) Descriptor
Deprecated: Use Product.ProtoReflect.Descriptor instead.
func (*Product) GetId
func (*Product) GetProductName
func (*Product) ProtoMessage
func (*Product) ProtoMessage()func (*Product) ProtoReflect
func (x *Product) ProtoReflect() protoreflect.Messagefunc (*Product) Reset
func (x *Product) Reset()func (*Product) String
ServiceHealthClient
type ServiceHealthClient interface {
// Lists events under a given project and location.
ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error)
// Retrieves a resource containing information about an event.
GetEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*Event, error)
// Lists organization events under a given organization and location.
ListOrganizationEvents(ctx context.Context, in *ListOrganizationEventsRequest, opts ...grpc.CallOption) (*ListOrganizationEventsResponse, error)
// Retrieves a resource containing information about an event affecting an
// organization .
GetOrganizationEvent(ctx context.Context, in *GetOrganizationEventRequest, opts ...grpc.CallOption) (*OrganizationEvent, error)
// Lists assets impacted by organization events under a given organization and
// location.
ListOrganizationImpacts(ctx context.Context, in *ListOrganizationImpactsRequest, opts ...grpc.CallOption) (*ListOrganizationImpactsResponse, error)
// Retrieves a resource containing information about impact to an asset under
// an organization affected by a service health event.
GetOrganizationImpact(ctx context.Context, in *GetOrganizationImpactRequest, opts ...grpc.CallOption) (*OrganizationImpact, error)
}ServiceHealthClient is the client API for ServiceHealth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewServiceHealthClient
func NewServiceHealthClient(cc grpc.ClientConnInterface) ServiceHealthClientServiceHealthServer
type ServiceHealthServer interface {
// Lists events under a given project and location.
ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
// Retrieves a resource containing information about an event.
GetEvent(context.Context, *GetEventRequest) (*Event, error)
// Lists organization events under a given organization and location.
ListOrganizationEvents(context.Context, *ListOrganizationEventsRequest) (*ListOrganizationEventsResponse, error)
// Retrieves a resource containing information about an event affecting an
// organization .
GetOrganizationEvent(context.Context, *GetOrganizationEventRequest) (*OrganizationEvent, error)
// Lists assets impacted by organization events under a given organization and
// location.
ListOrganizationImpacts(context.Context, *ListOrganizationImpactsRequest) (*ListOrganizationImpactsResponse, error)
// Retrieves a resource containing information about impact to an asset under
// an organization affected by a service health event.
GetOrganizationImpact(context.Context, *GetOrganizationImpactRequest) (*OrganizationImpact, error)
}ServiceHealthServer is the server API for ServiceHealth service. All implementations should embed UnimplementedServiceHealthServer for forward compatibility
UnimplementedServiceHealthServer
type UnimplementedServiceHealthServer struct {
}UnimplementedServiceHealthServer should be embedded to have forward compatible implementations.
func (UnimplementedServiceHealthServer) GetEvent
func (UnimplementedServiceHealthServer) GetEvent(context.Context, *GetEventRequest) (*Event, error)func (UnimplementedServiceHealthServer) GetOrganizationEvent
func (UnimplementedServiceHealthServer) GetOrganizationEvent(context.Context, *GetOrganizationEventRequest) (*OrganizationEvent, error)func (UnimplementedServiceHealthServer) GetOrganizationImpact
func (UnimplementedServiceHealthServer) GetOrganizationImpact(context.Context, *GetOrganizationImpactRequest) (*OrganizationImpact, error)func (UnimplementedServiceHealthServer) ListEvents
func (UnimplementedServiceHealthServer) ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)func (UnimplementedServiceHealthServer) ListOrganizationEvents
func (UnimplementedServiceHealthServer) ListOrganizationEvents(context.Context, *ListOrganizationEventsRequest) (*ListOrganizationEventsResponse, error)func (UnimplementedServiceHealthServer) ListOrganizationImpacts
func (UnimplementedServiceHealthServer) ListOrganizationImpacts(context.Context, *ListOrganizationImpactsRequest) (*ListOrganizationImpactsResponse, error)UnsafeServiceHealthServer
type UnsafeServiceHealthServer interface {
// contains filtered or unexported methods
}UnsafeServiceHealthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceHealthServer will result in compilation errors.