v1

package
v0.0.0-...-ae3c806 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Alert_Create_FullMethodName      = "/spaceone.api.monitoring.v1.Alert/create"
	Alert_Update_FullMethodName      = "/spaceone.api.monitoring.v1.Alert/update"
	Alert_AssignUser_FullMethodName  = "/spaceone.api.monitoring.v1.Alert/assign_user"
	Alert_UpdateState_FullMethodName = "/spaceone.api.monitoring.v1.Alert/update_state"
	Alert_Delete_FullMethodName      = "/spaceone.api.monitoring.v1.Alert/delete"
	Alert_Get_FullMethodName         = "/spaceone.api.monitoring.v1.Alert/get"
	Alert_List_FullMethodName        = "/spaceone.api.monitoring.v1.Alert/list"
	Alert_Stat_FullMethodName        = "/spaceone.api.monitoring.v1.Alert/stat"
)
View Source
const (
	DataSource_Register_FullMethodName     = "/spaceone.api.monitoring.v1.DataSource/register"
	DataSource_Update_FullMethodName       = "/spaceone.api.monitoring.v1.DataSource/update"
	DataSource_Enable_FullMethodName       = "/spaceone.api.monitoring.v1.DataSource/enable"
	DataSource_Disable_FullMethodName      = "/spaceone.api.monitoring.v1.DataSource/disable"
	DataSource_Deregister_FullMethodName   = "/spaceone.api.monitoring.v1.DataSource/deregister"
	DataSource_UpdatePlugin_FullMethodName = "/spaceone.api.monitoring.v1.DataSource/update_plugin"
	DataSource_VerifyPlugin_FullMethodName = "/spaceone.api.monitoring.v1.DataSource/verify_plugin"
	DataSource_Get_FullMethodName          = "/spaceone.api.monitoring.v1.DataSource/get"
	DataSource_List_FullMethodName         = "/spaceone.api.monitoring.v1.DataSource/list"
	DataSource_Stat_FullMethodName         = "/spaceone.api.monitoring.v1.DataSource/stat"
)
View Source
const (
	EscalationPolicy_Create_FullMethodName     = "/spaceone.api.monitoring.v1.EscalationPolicy/create"
	EscalationPolicy_Update_FullMethodName     = "/spaceone.api.monitoring.v1.EscalationPolicy/update"
	EscalationPolicy_SetDefault_FullMethodName = "/spaceone.api.monitoring.v1.EscalationPolicy/set_default"
	EscalationPolicy_Delete_FullMethodName     = "/spaceone.api.monitoring.v1.EscalationPolicy/delete"
	EscalationPolicy_Get_FullMethodName        = "/spaceone.api.monitoring.v1.EscalationPolicy/get"
	EscalationPolicy_List_FullMethodName       = "/spaceone.api.monitoring.v1.EscalationPolicy/list"
	EscalationPolicy_Stat_FullMethodName       = "/spaceone.api.monitoring.v1.EscalationPolicy/stat"
)
View Source
const (
	Event_Create_FullMethodName = "/spaceone.api.monitoring.v1.Event/create"
	Event_Get_FullMethodName    = "/spaceone.api.monitoring.v1.Event/get"
	Event_List_FullMethodName   = "/spaceone.api.monitoring.v1.Event/list"
	Event_Stat_FullMethodName   = "/spaceone.api.monitoring.v1.Event/stat"
)
View Source
const (
	EventRule_Create_FullMethodName      = "/spaceone.api.monitoring.v1.EventRule/create"
	EventRule_Update_FullMethodName      = "/spaceone.api.monitoring.v1.EventRule/update"
	EventRule_ChangeOrder_FullMethodName = "/spaceone.api.monitoring.v1.EventRule/change_order"
	EventRule_Delete_FullMethodName      = "/spaceone.api.monitoring.v1.EventRule/delete"
	EventRule_Get_FullMethodName         = "/spaceone.api.monitoring.v1.EventRule/get"
	EventRule_List_FullMethodName        = "/spaceone.api.monitoring.v1.EventRule/list"
	EventRule_Stat_FullMethodName        = "/spaceone.api.monitoring.v1.EventRule/stat"
)
View Source
const (
	Metric_List_FullMethodName    = "/spaceone.api.monitoring.v1.Metric/list"
	Metric_GetData_FullMethodName = "/spaceone.api.monitoring.v1.Metric/get_data"
)
View Source
const (
	Note_Create_FullMethodName = "/spaceone.api.monitoring.v1.Note/create"
	Note_Update_FullMethodName = "/spaceone.api.monitoring.v1.Note/update"
	Note_Delete_FullMethodName = "/spaceone.api.monitoring.v1.Note/delete"
	Note_Get_FullMethodName    = "/spaceone.api.monitoring.v1.Note/get"
	Note_List_FullMethodName   = "/spaceone.api.monitoring.v1.Note/list"
	Note_Stat_FullMethodName   = "/spaceone.api.monitoring.v1.Note/stat"
)
View Source
const (
	ProjectAlertConfig_Create_FullMethodName = "/spaceone.api.monitoring.v1.ProjectAlertConfig/create"
	ProjectAlertConfig_Update_FullMethodName = "/spaceone.api.monitoring.v1.ProjectAlertConfig/update"
	ProjectAlertConfig_Delete_FullMethodName = "/spaceone.api.monitoring.v1.ProjectAlertConfig/delete"
	ProjectAlertConfig_Get_FullMethodName    = "/spaceone.api.monitoring.v1.ProjectAlertConfig/get"
	ProjectAlertConfig_List_FullMethodName   = "/spaceone.api.monitoring.v1.ProjectAlertConfig/list"
	ProjectAlertConfig_Stat_FullMethodName   = "/spaceone.api.monitoring.v1.ProjectAlertConfig/stat"
)
View Source
const (
	Webhook_Create_FullMethodName       = "/spaceone.api.monitoring.v1.Webhook/create"
	Webhook_Update_FullMethodName       = "/spaceone.api.monitoring.v1.Webhook/update"
	Webhook_UpdatePlugin_FullMethodName = "/spaceone.api.monitoring.v1.Webhook/update_plugin"
	Webhook_VerifyPlugin_FullMethodName = "/spaceone.api.monitoring.v1.Webhook/verify_plugin"
	Webhook_Enable_FullMethodName       = "/spaceone.api.monitoring.v1.Webhook/enable"
	Webhook_Disable_FullMethodName      = "/spaceone.api.monitoring.v1.Webhook/disable"
	Webhook_Delete_FullMethodName       = "/spaceone.api.monitoring.v1.Webhook/delete"
	Webhook_Get_FullMethodName          = "/spaceone.api.monitoring.v1.Webhook/get"
	Webhook_List_FullMethodName         = "/spaceone.api.monitoring.v1.Webhook/list"
	Webhook_Stat_FullMethodName         = "/spaceone.api.monitoring.v1.Webhook/stat"
)
View Source
const (
	Log_List_FullMethodName = "/spaceone.api.monitoring.v1.Log/list"
)

Variables

View Source
var (
	AlertUrgency_name = map[int32]string{
		0: "ALERT_URGENCY_NONE",
		1: "HIGH",
		2: "LOW",
	}
	AlertUrgency_value = map[string]int32{
		"ALERT_URGENCY_NONE": 0,
		"HIGH":               1,
		"LOW":                2,
	}
)

Enum value maps for AlertUrgency.

View Source
var (
	AlertState_name = map[int32]string{
		0: "ALERT_STATE_NONE",
		1: "TRIGGERED",
		2: "ACKNOWLEDGED",
		3: "RESOLVED",
		4: "ERROR",
	}
	AlertState_value = map[string]int32{
		"ALERT_STATE_NONE": 0,
		"TRIGGERED":        1,
		"ACKNOWLEDGED":     2,
		"RESOLVED":         3,
		"ERROR":            4,
	}
)

Enum value maps for AlertState.

View Source
var (
	MonitoringType_name = map[int32]string{
		0: "NONE",
		1: "METRIC",
		2: "LOG",
	}
	MonitoringType_value = map[string]int32{
		"NONE":   0,
		"METRIC": 1,
		"LOG":    2,
	}
)

Enum value maps for MonitoringType.

View Source
var (
	DataSourcePluginInfo_UpgradeMode_name = map[int32]string{
		0: "NONE",
		1: "MANUAL",
		2: "AUTO",
	}
	DataSourcePluginInfo_UpgradeMode_value = map[string]int32{
		"NONE":   0,
		"MANUAL": 1,
		"AUTO":   2,
	}
)

Enum value maps for DataSourcePluginInfo_UpgradeMode.

View Source
var (
	UpdateDataSourcePluginRequest_UpgradeMode_name = map[int32]string{
		0: "NONE",
		1: "MANUAL",
		2: "AUTO",
	}
	UpdateDataSourcePluginRequest_UpgradeMode_value = map[string]int32{
		"NONE":   0,
		"MANUAL": 1,
		"AUTO":   2,
	}
)

Enum value maps for UpdateDataSourcePluginRequest_UpgradeMode.

View Source
var (
	DataSourceInfo_State_name = map[int32]string{
		0: "NONE",
		1: "ENABLED",
		2: "DISABLED",
	}
	DataSourceInfo_State_value = map[string]int32{
		"NONE":     0,
		"ENABLED":  1,
		"DISABLED": 2,
	}
)

Enum value maps for DataSourceInfo_State.

View Source
var (
	EscalationPolicyRule_NotificationLevel_name = map[int32]string{
		0: "NONE",
		1: "ALL",
		2: "LV1",
		3: "LV2",
		4: "LV3",
		5: "LV4",
		6: "LV5",
	}
	EscalationPolicyRule_NotificationLevel_value = map[string]int32{
		"NONE": 0,
		"ALL":  1,
		"LV1":  2,
		"LV2":  3,
		"LV3":  4,
		"LV4":  5,
		"LV5":  6,
	}
)

Enum value maps for EscalationPolicyRule_NotificationLevel.

View Source
var (
	CreateEscalationPolicyRequest_EscalationFinishCondition_name = map[int32]string{
		0: "NONE",
		1: "ACKNOWLEDGED",
		2: "RESOLVED",
	}
	CreateEscalationPolicyRequest_EscalationFinishCondition_value = map[string]int32{
		"NONE":         0,
		"ACKNOWLEDGED": 1,
		"RESOLVED":     2,
	}
)

Enum value maps for CreateEscalationPolicyRequest_EscalationFinishCondition.

View Source
var (
	CreateEscalationPolicyRequest_ResourceGroup_name = map[int32]string{
		0: "RESOURCE_GROUP_NONE",
		1: "WORKSPACE",
		2: "PROJECT",
	}
	CreateEscalationPolicyRequest_ResourceGroup_value = map[string]int32{
		"RESOURCE_GROUP_NONE": 0,
		"WORKSPACE":           1,
		"PROJECT":             2,
	}
)

Enum value maps for CreateEscalationPolicyRequest_ResourceGroup.

View Source
var (
	UpdateEscalationPolicyRequest_EscalationFinishCondition_name = map[int32]string{
		0: "NONE",
		1: "ACKNOWLEDGED",
		2: "RESOLVED",
	}
	UpdateEscalationPolicyRequest_EscalationFinishCondition_value = map[string]int32{
		"NONE":         0,
		"ACKNOWLEDGED": 1,
		"RESOLVED":     2,
	}
)

Enum value maps for UpdateEscalationPolicyRequest_EscalationFinishCondition.

View Source
var (
	EscalationPolicyQuery_EscalationFinishCondition_name = map[int32]string{
		0: "NONE",
		1: "ACKNOWLEDGED",
		2: "RESOLVED",
	}
	EscalationPolicyQuery_EscalationFinishCondition_value = map[string]int32{
		"NONE":         0,
		"ACKNOWLEDGED": 1,
		"RESOLVED":     2,
	}
)

Enum value maps for EscalationPolicyQuery_EscalationFinishCondition.

View Source
var (
	EscalationPolicyQuery_ResourceGroup_name = map[int32]string{
		0: "RESOURCE_GROUP_NONE",
		1: "WORKSPACE",
		2: "PROJECT",
	}
	EscalationPolicyQuery_ResourceGroup_value = map[string]int32{
		"RESOURCE_GROUP_NONE": 0,
		"WORKSPACE":           1,
		"PROJECT":             2,
	}
)

Enum value maps for EscalationPolicyQuery_ResourceGroup.

View Source
var (
	EscalationPolicyInfo_EscalationFinishCondition_name = map[int32]string{
		0: "NONE",
		1: "ACKNOWLEDGED",
		2: "RESOLVED",
	}
	EscalationPolicyInfo_EscalationFinishCondition_value = map[string]int32{
		"NONE":         0,
		"ACKNOWLEDGED": 1,
		"RESOLVED":     2,
	}
)

Enum value maps for EscalationPolicyInfo_EscalationFinishCondition.

View Source
var (
	EscalationPolicyInfo_ResourceGroup_name = map[int32]string{
		0: "RESOURCE_GROUP_NONE",
		1: "WORKSPACE",
		2: "PROJECT",
	}
	EscalationPolicyInfo_ResourceGroup_value = map[string]int32{
		"RESOURCE_GROUP_NONE": 0,
		"WORKSPACE":           1,
		"PROJECT":             2,
	}
)

Enum value maps for EscalationPolicyInfo_ResourceGroup.

View Source
var (
	CreateEventRuleRequest_ConditionsPolicy_name = map[int32]string{
		0: "NONE",
		1: "ALL",
		2: "ANY",
		3: "ALWAYS",
	}
	CreateEventRuleRequest_ConditionsPolicy_value = map[string]int32{
		"NONE":   0,
		"ALL":    1,
		"ANY":    2,
		"ALWAYS": 3,
	}
)

Enum value maps for CreateEventRuleRequest_ConditionsPolicy.

View Source
var (
	CreateEventRuleRequest_ResourceGroup_name = map[int32]string{
		0: "RESOURCE_GROUP_NONE",
		1: "WORKSPACE",
		2: "PROJECT",
	}
	CreateEventRuleRequest_ResourceGroup_value = map[string]int32{
		"RESOURCE_GROUP_NONE": 0,
		"WORKSPACE":           1,
		"PROJECT":             2,
	}
)

Enum value maps for CreateEventRuleRequest_ResourceGroup.

View Source
var (
	UpdateEventRuleRequest_ConditionsPolicy_name = map[int32]string{
		0: "NONE",
		1: "ALL",
		2: "ANY",
		3: "ALWAYS",
	}
	UpdateEventRuleRequest_ConditionsPolicy_value = map[string]int32{
		"NONE":   0,
		"ALL":    1,
		"ANY":    2,
		"ALWAYS": 3,
	}
)

Enum value maps for UpdateEventRuleRequest_ConditionsPolicy.

View Source
var (
	EventRuleInfo_ConditionsPolicy_name = map[int32]string{
		0: "NONE",
		1: "ALL",
		2: "ANY",
		3: "ALWAYS",
	}
	EventRuleInfo_ConditionsPolicy_value = map[string]int32{
		"NONE":   0,
		"ALL":    1,
		"ANY":    2,
		"ALWAYS": 3,
	}
)

Enum value maps for EventRuleInfo_ConditionsPolicy.

View Source
var (
	EventRuleInfo_ResourceGroup_name = map[int32]string{
		0: "RESOURCE_GROUP_NONE",
		1: "WORKSPACE",
		2: "PROJECT",
	}
	EventRuleInfo_ResourceGroup_value = map[string]int32{
		"RESOURCE_GROUP_NONE": 0,
		"WORKSPACE":           1,
		"PROJECT":             2,
	}
)

Enum value maps for EventRuleInfo_ResourceGroup.

View Source
var (
	AlertOptions_UrgencyOption_name = map[int32]string{
		0: "URGENCY_NONE",
		1: "ALL",
		2: "HIGH_ONLY",
	}
	AlertOptions_UrgencyOption_value = map[string]int32{
		"URGENCY_NONE": 0,
		"ALL":          1,
		"HIGH_ONLY":    2,
	}
)

Enum value maps for AlertOptions_UrgencyOption.

View Source
var (
	AlertOptions_RecoveryOption_name = map[int32]string{
		0: "RECOVERY_NONE",
		1: "AUTO",
		2: "MANUAL",
	}
	AlertOptions_RecoveryOption_value = map[string]int32{
		"RECOVERY_NONE": 0,
		"AUTO":          1,
		"MANUAL":        2,
	}
)

Enum value maps for AlertOptions_RecoveryOption.

View Source
var (
	WebhookPluginInfo_UpgradeMode_name = map[int32]string{
		0: "NONE",
		1: "MANUAL",
		2: "AUTO",
	}
	WebhookPluginInfo_UpgradeMode_value = map[string]int32{
		"NONE":   0,
		"MANUAL": 1,
		"AUTO":   2,
	}
)

Enum value maps for WebhookPluginInfo_UpgradeMode.

View Source
var (
	UpdateWebhookPluginRequest_UpgradeMode_name = map[int32]string{
		0: "NONE",
		1: "MANUAL",
		2: "AUTO",
	}
	UpdateWebhookPluginRequest_UpgradeMode_value = map[string]int32{
		"NONE":   0,
		"MANUAL": 1,
		"AUTO":   2,
	}
)

Enum value maps for UpdateWebhookPluginRequest_UpgradeMode.

View Source
var (
	WebhookQuery_WebhookState_name = map[int32]string{
		0: "NONE",
		1: "ENABLED",
		2: "DISABLED",
	}
	WebhookQuery_WebhookState_value = map[string]int32{
		"NONE":     0,
		"ENABLED":  1,
		"DISABLED": 2,
	}
)

Enum value maps for WebhookQuery_WebhookState.

View Source
var (
	WebhookInfo_WebhookState_name = map[int32]string{
		0: "NONE",
		1: "ENABLED",
		2: "DISABLED",
	}
	WebhookInfo_WebhookState_value = map[string]int32{
		"NONE":     0,
		"ENABLED":  1,
		"DISABLED": 2,
	}
)

Enum value maps for WebhookInfo_WebhookState.

View Source
var Alert_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.monitoring.v1.Alert",
	HandlerType: (*AlertServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "create",
			Handler:    _Alert_Create_Handler,
		},
		{
			MethodName: "update",
			Handler:    _Alert_Update_Handler,
		},
		{
			MethodName: "assign_user",
			Handler:    _Alert_AssignUser_Handler,
		},
		{
			MethodName: "update_state",
			Handler:    _Alert_UpdateState_Handler,
		},
		{
			MethodName: "delete",
			Handler:    _Alert_Delete_Handler,
		},
		{
			MethodName: "get",
			Handler:    _Alert_Get_Handler,
		},
		{
			MethodName: "list",
			Handler:    _Alert_List_Handler,
		},
		{
			MethodName: "stat",
			Handler:    _Alert_Stat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/monitoring/v1/alert.proto",
}

Alert_ServiceDesc is the grpc.ServiceDesc for Alert service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var DataSource_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.monitoring.v1.DataSource",
	HandlerType: (*DataSourceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "register",
			Handler:    _DataSource_Register_Handler,
		},
		{
			MethodName: "update",
			Handler:    _DataSource_Update_Handler,
		},
		{
			MethodName: "enable",
			Handler:    _DataSource_Enable_Handler,
		},
		{
			MethodName: "disable",
			Handler:    _DataSource_Disable_Handler,
		},
		{
			MethodName: "deregister",
			Handler:    _DataSource_Deregister_Handler,
		},
		{
			MethodName: "update_plugin",
			Handler:    _DataSource_UpdatePlugin_Handler,
		},
		{
			MethodName: "verify_plugin",
			Handler:    _DataSource_VerifyPlugin_Handler,
		},
		{
			MethodName: "get",
			Handler:    _DataSource_Get_Handler,
		},
		{
			MethodName: "list",
			Handler:    _DataSource_List_Handler,
		},
		{
			MethodName: "stat",
			Handler:    _DataSource_Stat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/monitoring/v1/data_source.proto",
}

DataSource_ServiceDesc is the grpc.ServiceDesc for DataSource service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var EscalationPolicy_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.monitoring.v1.EscalationPolicy",
	HandlerType: (*EscalationPolicyServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "create",
			Handler:    _EscalationPolicy_Create_Handler,
		},
		{
			MethodName: "update",
			Handler:    _EscalationPolicy_Update_Handler,
		},
		{
			MethodName: "set_default",
			Handler:    _EscalationPolicy_SetDefault_Handler,
		},
		{
			MethodName: "delete",
			Handler:    _EscalationPolicy_Delete_Handler,
		},
		{
			MethodName: "get",
			Handler:    _EscalationPolicy_Get_Handler,
		},
		{
			MethodName: "list",
			Handler:    _EscalationPolicy_List_Handler,
		},
		{
			MethodName: "stat",
			Handler:    _EscalationPolicy_Stat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/monitoring/v1/escalation_policy.proto",
}

EscalationPolicy_ServiceDesc is the grpc.ServiceDesc for EscalationPolicy service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var EventRule_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.monitoring.v1.EventRule",
	HandlerType: (*EventRuleServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "create",
			Handler:    _EventRule_Create_Handler,
		},
		{
			MethodName: "update",
			Handler:    _EventRule_Update_Handler,
		},
		{
			MethodName: "change_order",
			Handler:    _EventRule_ChangeOrder_Handler,
		},
		{
			MethodName: "delete",
			Handler:    _EventRule_Delete_Handler,
		},
		{
			MethodName: "get",
			Handler:    _EventRule_Get_Handler,
		},
		{
			MethodName: "list",
			Handler:    _EventRule_List_Handler,
		},
		{
			MethodName: "stat",
			Handler:    _EventRule_Stat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/monitoring/v1/event_rule.proto",
}

EventRule_ServiceDesc is the grpc.ServiceDesc for EventRule service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Event_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.monitoring.v1.Event",
	HandlerType: (*EventServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "create",
			Handler:    _Event_Create_Handler,
		},
		{
			MethodName: "get",
			Handler:    _Event_Get_Handler,
		},
		{
			MethodName: "list",
			Handler:    _Event_List_Handler,
		},
		{
			MethodName: "stat",
			Handler:    _Event_Stat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/monitoring/v1/event.proto",
}

Event_ServiceDesc is the grpc.ServiceDesc for Event service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_spaceone_api_monitoring_v1_alert_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_monitoring_v1_data_source_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_monitoring_v1_escalation_policy_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_monitoring_v1_event_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_monitoring_v1_event_rule_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_monitoring_v1_log_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_monitoring_v1_metric_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_monitoring_v1_note_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_monitoring_v1_project_alert_config_proto protoreflect.FileDescriptor
View Source
var File_spaceone_api_monitoring_v1_webhook_proto protoreflect.FileDescriptor
View Source
var Log_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.monitoring.v1.Log",
	HandlerType: (*LogServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "list",
			Handler:    _Log_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/monitoring/v1/log.proto",
}

Log_ServiceDesc is the grpc.ServiceDesc for Log service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Metric_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.monitoring.v1.Metric",
	HandlerType: (*MetricServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "list",
			Handler:    _Metric_List_Handler,
		},
		{
			MethodName: "get_data",
			Handler:    _Metric_GetData_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/monitoring/v1/metric.proto",
}

Metric_ServiceDesc is the grpc.ServiceDesc for Metric service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Note_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.monitoring.v1.Note",
	HandlerType: (*NoteServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "create",
			Handler:    _Note_Create_Handler,
		},
		{
			MethodName: "update",
			Handler:    _Note_Update_Handler,
		},
		{
			MethodName: "delete",
			Handler:    _Note_Delete_Handler,
		},
		{
			MethodName: "get",
			Handler:    _Note_Get_Handler,
		},
		{
			MethodName: "list",
			Handler:    _Note_List_Handler,
		},
		{
			MethodName: "stat",
			Handler:    _Note_Stat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/monitoring/v1/note.proto",
}

Note_ServiceDesc is the grpc.ServiceDesc for Note service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ProjectAlertConfig_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.monitoring.v1.ProjectAlertConfig",
	HandlerType: (*ProjectAlertConfigServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "create",
			Handler:    _ProjectAlertConfig_Create_Handler,
		},
		{
			MethodName: "update",
			Handler:    _ProjectAlertConfig_Update_Handler,
		},
		{
			MethodName: "delete",
			Handler:    _ProjectAlertConfig_Delete_Handler,
		},
		{
			MethodName: "get",
			Handler:    _ProjectAlertConfig_Get_Handler,
		},
		{
			MethodName: "list",
			Handler:    _ProjectAlertConfig_List_Handler,
		},
		{
			MethodName: "stat",
			Handler:    _ProjectAlertConfig_Stat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/monitoring/v1/project_alert_config.proto",
}

ProjectAlertConfig_ServiceDesc is the grpc.ServiceDesc for ProjectAlertConfig service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Webhook_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spaceone.api.monitoring.v1.Webhook",
	HandlerType: (*WebhookServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "create",
			Handler:    _Webhook_Create_Handler,
		},
		{
			MethodName: "update",
			Handler:    _Webhook_Update_Handler,
		},
		{
			MethodName: "update_plugin",
			Handler:    _Webhook_UpdatePlugin_Handler,
		},
		{
			MethodName: "verify_plugin",
			Handler:    _Webhook_VerifyPlugin_Handler,
		},
		{
			MethodName: "enable",
			Handler:    _Webhook_Enable_Handler,
		},
		{
			MethodName: "disable",
			Handler:    _Webhook_Disable_Handler,
		},
		{
			MethodName: "delete",
			Handler:    _Webhook_Delete_Handler,
		},
		{
			MethodName: "get",
			Handler:    _Webhook_Get_Handler,
		},
		{
			MethodName: "list",
			Handler:    _Webhook_List_Handler,
		},
		{
			MethodName: "stat",
			Handler:    _Webhook_Stat_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spaceone/api/monitoring/v1/webhook.proto",
}

Webhook_ServiceDesc is the grpc.ServiceDesc for Webhook service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAlertServer

func RegisterAlertServer(s grpc.ServiceRegistrar, srv AlertServer)

func RegisterDataSourceServer

func RegisterDataSourceServer(s grpc.ServiceRegistrar, srv DataSourceServer)

func RegisterEscalationPolicyServer

func RegisterEscalationPolicyServer(s grpc.ServiceRegistrar, srv EscalationPolicyServer)

func RegisterEventRuleServer

func RegisterEventRuleServer(s grpc.ServiceRegistrar, srv EventRuleServer)

func RegisterEventServer

func RegisterEventServer(s grpc.ServiceRegistrar, srv EventServer)

func RegisterLogServer

func RegisterLogServer(s grpc.ServiceRegistrar, srv LogServer)

func RegisterMetricServer

func RegisterMetricServer(s grpc.ServiceRegistrar, srv MetricServer)

func RegisterNoteServer

func RegisterNoteServer(s grpc.ServiceRegistrar, srv NoteServer)

func RegisterProjectAlertConfigServer

func RegisterProjectAlertConfigServer(s grpc.ServiceRegistrar, srv ProjectAlertConfigServer)

func RegisterWebhookServer

func RegisterWebhookServer(s grpc.ServiceRegistrar, srv WebhookServer)

Types

type AlertClient

type AlertClient interface {
	// Creates a new Alert. Alerts generated with `create` method are made in a manual way. Manually made Alerts can be used for Notifications.
	Create(ctx context.Context, in *CreateAlertRequest, opts ...grpc.CallOption) (*AlertInfo, error)
	// Updates a specific Alert. You can make changes in Alert settings, including the `title`, `description`, `responder`, `state`, and `urgency`. The `responder` of the Alert is a User who is assigned to respond to the Alert.
	Update(ctx context.Context, in *UpdateAlertRequest, opts ...grpc.CallOption) (*AlertInfo, error)
	AssignUser(ctx context.Context, in *AssignUserRequest, opts ...grpc.CallOption) (*AlertInfo, error)
	// Updates the state of an Alert via callback URL by creating a temporary `access_key` while generating a Notification about the Alert.
	// +noauth
	UpdateState(ctx context.Context, in *UpdateAlertStateRequest, opts ...grpc.CallOption) (*AlertInfo, error)
	// Deletes a specific Alert and remove it from the list of Alerts. You must specify the `alert_id` of the Alert to delete.
	Delete(ctx context.Context, in *AlertRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets a specific Alert. Prints detailed information about the Alert.
	Get(ctx context.Context, in *AlertRequest, opts ...grpc.CallOption) (*AlertInfo, error)
	// Gets a list of all Alerts. You can use a query to get a filtered list of Alerts.
	List(ctx context.Context, in *AlertQuery, opts ...grpc.CallOption) (*AlertsInfo, error)
	Stat(ctx context.Context, in *AlertStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error)
}

AlertClient is the client API for Alert 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 NewAlertClient

func NewAlertClient(cc grpc.ClientConnInterface) AlertClient

type AlertInfo

type AlertInfo struct {
	AlertNumber        int32           `protobuf:"varint,1,opt,name=alert_number,json=alertNumber,proto3" json:"alert_number,omitempty"`
	AlertId            string          `protobuf:"bytes,2,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	Title              string          `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	State              AlertState      `protobuf:"varint,4,opt,name=state,proto3,enum=spaceone.api.monitoring.v1.AlertState" json:"state,omitempty"`
	Description        string          `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Assignee           string          `protobuf:"bytes,6,opt,name=assignee,proto3" json:"assignee,omitempty"`
	Urgency            AlertUrgency    `protobuf:"varint,7,opt,name=urgency,proto3,enum=spaceone.api.monitoring.v1.AlertUrgency" json:"urgency,omitempty"`
	Severity           string          `protobuf:"bytes,8,opt,name=severity,proto3" json:"severity,omitempty"`
	Rule               string          `protobuf:"bytes,9,opt,name=rule,proto3" json:"rule,omitempty"`
	ImageUrl           string          `protobuf:"bytes,10,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	Resource           *AlertResource  `protobuf:"bytes,11,opt,name=resource,proto3" json:"resource,omitempty"`
	Provider           string          `protobuf:"bytes,12,opt,name=provider,proto3" json:"provider,omitempty"`
	Account            string          `protobuf:"bytes,13,opt,name=account,proto3" json:"account,omitempty"`
	AdditionalInfo     *_struct.Struct `protobuf:"bytes,14,opt,name=additional_info,json=additionalInfo,proto3" json:"additional_info,omitempty"`
	EscalationStep     int32           `protobuf:"varint,15,opt,name=escalation_step,json=escalationStep,proto3" json:"escalation_step,omitempty"`
	EscalationTtl      int32           `protobuf:"varint,16,opt,name=escalation_ttl,json=escalationTtl,proto3" json:"escalation_ttl,omitempty"`
	TriggeredBy        string          `protobuf:"bytes,17,opt,name=triggered_by,json=triggeredBy,proto3" json:"triggered_by,omitempty"`
	DomainId           string          `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	WorkspaceId        string          `protobuf:"bytes,22,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	ProjectId          string          `protobuf:"bytes,23,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	WebhookId          string          `protobuf:"bytes,24,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
	EscalationPolicyId string          `protobuf:"bytes,25,opt,name=escalation_policy_id,json=escalationPolicyId,proto3" json:"escalation_policy_id,omitempty"`
	CreatedAt          string          `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt          string          `protobuf:"bytes,32,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	AcknowledgedAt     string          `protobuf:"bytes,33,opt,name=acknowledged_at,json=acknowledgedAt,proto3" json:"acknowledged_at,omitempty"`
	ResolvedAt         string          `protobuf:"bytes,34,opt,name=resolved_at,json=resolvedAt,proto3" json:"resolved_at,omitempty"`
	EscalatedAt        string          `protobuf:"bytes,35,opt,name=escalated_at,json=escalatedAt,proto3" json:"escalated_at,omitempty"`
	// contains filtered or unexported fields
}
{
     "alert_number": 104053,
     "alert_id": "alert-123456789012",
     "title": "sample test",
     "state": "TRIGGERED",
     "description": "This is a description of sample.",
     "urgency": "HIGH",
     "severity": "NONE",
     "escalation_step": 1,
     "additional_info": {},
     "triggered_by": "user1@email.com",
     "escalation_policy_id": "ep-123456789012",
     "project_id": "project-123456789012",
     "domain_id": "domain-123456789012",
     "created_at": "2022-01-01T01:43:08.566Z",
     "updated_at": "2022-01-01T01:43:08.566Z",
     "escalated_at": "2022-01-01T01:43:54.464Z"
}

func (*AlertInfo) Descriptor deprecated

func (*AlertInfo) Descriptor() ([]byte, []int)

Deprecated: Use AlertInfo.ProtoReflect.Descriptor instead.

func (*AlertInfo) GetAccount

func (x *AlertInfo) GetAccount() string

func (*AlertInfo) GetAcknowledgedAt

func (x *AlertInfo) GetAcknowledgedAt() string

func (*AlertInfo) GetAdditionalInfo

func (x *AlertInfo) GetAdditionalInfo() *_struct.Struct

func (*AlertInfo) GetAlertId

func (x *AlertInfo) GetAlertId() string

func (*AlertInfo) GetAlertNumber

func (x *AlertInfo) GetAlertNumber() int32

func (*AlertInfo) GetAssignee

func (x *AlertInfo) GetAssignee() string

func (*AlertInfo) GetCreatedAt

func (x *AlertInfo) GetCreatedAt() string

func (*AlertInfo) GetDescription

func (x *AlertInfo) GetDescription() string

func (*AlertInfo) GetDomainId

func (x *AlertInfo) GetDomainId() string

func (*AlertInfo) GetEscalatedAt

func (x *AlertInfo) GetEscalatedAt() string

func (*AlertInfo) GetEscalationPolicyId

func (x *AlertInfo) GetEscalationPolicyId() string

func (*AlertInfo) GetEscalationStep

func (x *AlertInfo) GetEscalationStep() int32

func (*AlertInfo) GetEscalationTtl

func (x *AlertInfo) GetEscalationTtl() int32

func (*AlertInfo) GetImageUrl

func (x *AlertInfo) GetImageUrl() string

func (*AlertInfo) GetProjectId

func (x *AlertInfo) GetProjectId() string

func (*AlertInfo) GetProvider

func (x *AlertInfo) GetProvider() string

func (*AlertInfo) GetResolvedAt

func (x *AlertInfo) GetResolvedAt() string

func (*AlertInfo) GetResource

func (x *AlertInfo) GetResource() *AlertResource

func (*AlertInfo) GetRule

func (x *AlertInfo) GetRule() string

func (*AlertInfo) GetSeverity

func (x *AlertInfo) GetSeverity() string

func (*AlertInfo) GetState

func (x *AlertInfo) GetState() AlertState

func (*AlertInfo) GetTitle

func (x *AlertInfo) GetTitle() string

func (*AlertInfo) GetTriggeredBy

func (x *AlertInfo) GetTriggeredBy() string

func (*AlertInfo) GetUpdatedAt

func (x *AlertInfo) GetUpdatedAt() string

func (*AlertInfo) GetUrgency

func (x *AlertInfo) GetUrgency() AlertUrgency

func (*AlertInfo) GetWebhookId

func (x *AlertInfo) GetWebhookId() string

func (*AlertInfo) GetWorkspaceId

func (x *AlertInfo) GetWorkspaceId() string

func (*AlertInfo) ProtoMessage

func (*AlertInfo) ProtoMessage()

func (*AlertInfo) ProtoReflect

func (x *AlertInfo) ProtoReflect() protoreflect.Message

func (*AlertInfo) Reset

func (x *AlertInfo) Reset()

func (*AlertInfo) String

func (x *AlertInfo) String() string

type AlertOptions

type AlertOptions struct {
	NotificationUrgency AlertOptions_UrgencyOption  `` /* 178-byte string literal not displayed */
	RecoveryMode        AlertOptions_RecoveryOption `` /* 158-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AlertOptions) Descriptor deprecated

func (*AlertOptions) Descriptor() ([]byte, []int)

Deprecated: Use AlertOptions.ProtoReflect.Descriptor instead.

func (*AlertOptions) GetNotificationUrgency

func (x *AlertOptions) GetNotificationUrgency() AlertOptions_UrgencyOption

func (*AlertOptions) GetRecoveryMode

func (x *AlertOptions) GetRecoveryMode() AlertOptions_RecoveryOption

func (*AlertOptions) ProtoMessage

func (*AlertOptions) ProtoMessage()

func (*AlertOptions) ProtoReflect

func (x *AlertOptions) ProtoReflect() protoreflect.Message

func (*AlertOptions) Reset

func (x *AlertOptions) Reset()

func (*AlertOptions) String

func (x *AlertOptions) String() string

type AlertOptions_RecoveryOption

type AlertOptions_RecoveryOption int32
const (
	AlertOptions_RECOVERY_NONE AlertOptions_RecoveryOption = 0
	AlertOptions_AUTO          AlertOptions_RecoveryOption = 1
	AlertOptions_MANUAL        AlertOptions_RecoveryOption = 2
)

func (AlertOptions_RecoveryOption) Descriptor

func (AlertOptions_RecoveryOption) Enum

func (AlertOptions_RecoveryOption) EnumDescriptor deprecated

func (AlertOptions_RecoveryOption) EnumDescriptor() ([]byte, []int)

Deprecated: Use AlertOptions_RecoveryOption.Descriptor instead.

func (AlertOptions_RecoveryOption) Number

func (AlertOptions_RecoveryOption) String

func (AlertOptions_RecoveryOption) Type

type AlertOptions_UrgencyOption

type AlertOptions_UrgencyOption int32
const (
	AlertOptions_URGENCY_NONE AlertOptions_UrgencyOption = 0
	AlertOptions_ALL          AlertOptions_UrgencyOption = 1
	AlertOptions_HIGH_ONLY    AlertOptions_UrgencyOption = 2
)

func (AlertOptions_UrgencyOption) Descriptor

func (AlertOptions_UrgencyOption) Enum

func (AlertOptions_UrgencyOption) EnumDescriptor deprecated

func (AlertOptions_UrgencyOption) EnumDescriptor() ([]byte, []int)

Deprecated: Use AlertOptions_UrgencyOption.Descriptor instead.

func (AlertOptions_UrgencyOption) Number

func (AlertOptions_UrgencyOption) String

func (AlertOptions_UrgencyOption) Type

type AlertQuery

type AlertQuery struct {

	// +optional
	Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// +optional
	AlertNumber int32 `protobuf:"varint,2,opt,name=alert_number,json=alertNumber,proto3" json:"alert_number,omitempty"`
	// +optional
	AlertId string `protobuf:"bytes,3,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	// +optional
	Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	// +optional
	State AlertState `protobuf:"varint,5,opt,name=state,proto3,enum=spaceone.api.monitoring.v1.AlertState" json:"state,omitempty"`
	// +optional
	Assignee string `protobuf:"bytes,6,opt,name=assignee,proto3" json:"assignee,omitempty"`
	// +optional
	Urgency AlertUrgency `protobuf:"varint,7,opt,name=urgency,proto3,enum=spaceone.api.monitoring.v1.AlertUrgency" json:"urgency,omitempty"`
	// +optional
	Severity string `protobuf:"bytes,8,opt,name=severity,proto3" json:"severity,omitempty"`
	// +optional
	ResourceId string `protobuf:"bytes,10,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// +optional
	Provider string `protobuf:"bytes,11,opt,name=provider,proto3" json:"provider,omitempty"`
	// +optional
	Account string `protobuf:"bytes,12,opt,name=account,proto3" json:"account,omitempty"`
	// +optional
	TriggeredBy string `protobuf:"bytes,13,opt,name=triggered_by,json=triggeredBy,proto3" json:"triggered_by,omitempty"`
	// +optional
	WorkspaceId string `protobuf:"bytes,21,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	// +optional
	ProjectId string `protobuf:"bytes,22,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// +optional
	WebhookId string `protobuf:"bytes,23,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
	// +optional
	EscalationPolicyId string `protobuf:"bytes,24,opt,name=escalation_policy_id,json=escalationPolicyId,proto3" json:"escalation_policy_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "query": {},
   "domain_id": "domain-123456789012"
}

func (*AlertQuery) Descriptor deprecated

func (*AlertQuery) Descriptor() ([]byte, []int)

Deprecated: Use AlertQuery.ProtoReflect.Descriptor instead.

func (*AlertQuery) GetAccount

func (x *AlertQuery) GetAccount() string

func (*AlertQuery) GetAlertId

func (x *AlertQuery) GetAlertId() string

func (*AlertQuery) GetAlertNumber

func (x *AlertQuery) GetAlertNumber() int32

func (*AlertQuery) GetAssignee

func (x *AlertQuery) GetAssignee() string

func (*AlertQuery) GetEscalationPolicyId

func (x *AlertQuery) GetEscalationPolicyId() string

func (*AlertQuery) GetProjectId

func (x *AlertQuery) GetProjectId() string

func (*AlertQuery) GetProvider

func (x *AlertQuery) GetProvider() string

func (*AlertQuery) GetQuery

func (x *AlertQuery) GetQuery() *v2.Query

func (*AlertQuery) GetResourceId

func (x *AlertQuery) GetResourceId() string

func (*AlertQuery) GetSeverity

func (x *AlertQuery) GetSeverity() string

func (*AlertQuery) GetState

func (x *AlertQuery) GetState() AlertState

func (*AlertQuery) GetTitle

func (x *AlertQuery) GetTitle() string

func (*AlertQuery) GetTriggeredBy

func (x *AlertQuery) GetTriggeredBy() string

func (*AlertQuery) GetUrgency

func (x *AlertQuery) GetUrgency() AlertUrgency

func (*AlertQuery) GetWebhookId

func (x *AlertQuery) GetWebhookId() string

func (*AlertQuery) GetWorkspaceId

func (x *AlertQuery) GetWorkspaceId() string

func (*AlertQuery) ProtoMessage

func (*AlertQuery) ProtoMessage()

func (*AlertQuery) ProtoReflect

func (x *AlertQuery) ProtoReflect() protoreflect.Message

func (*AlertQuery) Reset

func (x *AlertQuery) Reset()

func (*AlertQuery) String

func (x *AlertQuery) String() string

type AlertRequest

type AlertRequest struct {
	AlertId string `protobuf:"bytes,1,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	// contains filtered or unexported fields
}
{
     "alert_id": "alert-123456789012",
}

func (*AlertRequest) Descriptor deprecated

func (*AlertRequest) Descriptor() ([]byte, []int)

Deprecated: Use AlertRequest.ProtoReflect.Descriptor instead.

func (*AlertRequest) GetAlertId

func (x *AlertRequest) GetAlertId() string

func (*AlertRequest) ProtoMessage

func (*AlertRequest) ProtoMessage()

func (*AlertRequest) ProtoReflect

func (x *AlertRequest) ProtoReflect() protoreflect.Message

func (*AlertRequest) Reset

func (x *AlertRequest) Reset()

func (*AlertRequest) String

func (x *AlertRequest) String() string

type AlertResource

type AlertResource struct {
	ResourceId   string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	ResourceType string `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	Name         string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertResource) Descriptor deprecated

func (*AlertResource) Descriptor() ([]byte, []int)

Deprecated: Use AlertResource.ProtoReflect.Descriptor instead.

func (*AlertResource) GetName

func (x *AlertResource) GetName() string

func (*AlertResource) GetResourceId

func (x *AlertResource) GetResourceId() string

func (*AlertResource) GetResourceType

func (x *AlertResource) GetResourceType() string

func (*AlertResource) ProtoMessage

func (*AlertResource) ProtoMessage()

func (*AlertResource) ProtoReflect

func (x *AlertResource) ProtoReflect() protoreflect.Message

func (*AlertResource) Reset

func (x *AlertResource) Reset()

func (*AlertResource) String

func (x *AlertResource) String() string

type AlertServer

type AlertServer interface {
	// Creates a new Alert. Alerts generated with `create` method are made in a manual way. Manually made Alerts can be used for Notifications.
	Create(context.Context, *CreateAlertRequest) (*AlertInfo, error)
	// Updates a specific Alert. You can make changes in Alert settings, including the `title`, `description`, `responder`, `state`, and `urgency`. The `responder` of the Alert is a User who is assigned to respond to the Alert.
	Update(context.Context, *UpdateAlertRequest) (*AlertInfo, error)
	AssignUser(context.Context, *AssignUserRequest) (*AlertInfo, error)
	// Updates the state of an Alert via callback URL by creating a temporary `access_key` while generating a Notification about the Alert.
	// +noauth
	UpdateState(context.Context, *UpdateAlertStateRequest) (*AlertInfo, error)
	// Deletes a specific Alert and remove it from the list of Alerts. You must specify the `alert_id` of the Alert to delete.
	Delete(context.Context, *AlertRequest) (*empty.Empty, error)
	// Gets a specific Alert. Prints detailed information about the Alert.
	Get(context.Context, *AlertRequest) (*AlertInfo, error)
	// Gets a list of all Alerts. You can use a query to get a filtered list of Alerts.
	List(context.Context, *AlertQuery) (*AlertsInfo, error)
	Stat(context.Context, *AlertStatQuery) (*_struct.Struct, error)
	// contains filtered or unexported methods
}

AlertServer is the server API for Alert service. All implementations must embed UnimplementedAlertServer for forward compatibility

type AlertStatQuery

type AlertStatQuery struct {
	Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*AlertStatQuery) Descriptor deprecated

func (*AlertStatQuery) Descriptor() ([]byte, []int)

Deprecated: Use AlertStatQuery.ProtoReflect.Descriptor instead.

func (*AlertStatQuery) GetQuery

func (x *AlertStatQuery) GetQuery() *v2.StatisticsQuery

func (*AlertStatQuery) ProtoMessage

func (*AlertStatQuery) ProtoMessage()

func (*AlertStatQuery) ProtoReflect

func (x *AlertStatQuery) ProtoReflect() protoreflect.Message

func (*AlertStatQuery) Reset

func (x *AlertStatQuery) Reset()

func (*AlertStatQuery) String

func (x *AlertStatQuery) String() string

type AlertState

type AlertState int32
const (
	AlertState_ALERT_STATE_NONE AlertState = 0
	AlertState_TRIGGERED        AlertState = 1
	AlertState_ACKNOWLEDGED     AlertState = 2
	AlertState_RESOLVED         AlertState = 3
	AlertState_ERROR            AlertState = 4
)

func (AlertState) Descriptor

func (AlertState) Descriptor() protoreflect.EnumDescriptor

func (AlertState) Enum

func (x AlertState) Enum() *AlertState

func (AlertState) EnumDescriptor deprecated

func (AlertState) EnumDescriptor() ([]byte, []int)

Deprecated: Use AlertState.Descriptor instead.

func (AlertState) Number

func (x AlertState) Number() protoreflect.EnumNumber

func (AlertState) String

func (x AlertState) String() string

func (AlertState) Type

type AlertUrgency

type AlertUrgency int32
const (
	AlertUrgency_ALERT_URGENCY_NONE AlertUrgency = 0
	AlertUrgency_HIGH               AlertUrgency = 1
	AlertUrgency_LOW                AlertUrgency = 2
)

func (AlertUrgency) Descriptor

func (AlertUrgency) Enum

func (x AlertUrgency) Enum() *AlertUrgency

func (AlertUrgency) EnumDescriptor deprecated

func (AlertUrgency) EnumDescriptor() ([]byte, []int)

Deprecated: Use AlertUrgency.Descriptor instead.

func (AlertUrgency) Number

func (AlertUrgency) String

func (x AlertUrgency) String() string

func (AlertUrgency) Type

type AlertsInfo

type AlertsInfo struct {
	Results    []*AlertInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	TotalCount int32        `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}
{
     "results": [
     {
     "alert_number": 104057,
     "alert_id": "alert-987654321098",
     "title": "Notification of access to the bastion Host",
     "state": "TRIGGERED",
     "description": "SSH Access to stargate-dev from adm",
     "urgency": "LOW",
     "severity": "INFO",
     "resource": {
     "resource_id": "server-123456789012",
     "resource_type": "inventory.Server",
     "name": "stargate-dev"
     },
     "escalation_step": 1,
     "escalation_ttl": 1,
     "additional_info": {
     "host": "[]",
     "user": "user1"
     },
     "triggered_by": "webhook-123456789012",
     "webhook_id": "webhook-123456789012",
     "escalation_policy_id": "ep-123456789012",
     "project_id": "project-123456789012",
     "domain_id": "domain-123456789012",
     "created_at": "2022-01-01T02:46:35.934Z",
     "updated_at": "2022-01-01T02:46:35.934Z",
     "escalated_at": "2022-01-01T02:46:35.979Z"
     },
     {
     "alert_number": 104056,
     "alert_id": "alert-123456789999",
     "title": "Notification of access to the bastion Host",
     "state": "TRIGGERED",
     "description": "SSH Access to stargate-dev from user3@email.com",
     "urgency": "LOW",
     "severity": "INFO",
     "resource": {
     "resource_id": "server-123456789012",
     "resource_type": "inventory.Server",
     "name": "stargate-dev"
     },
     "escalation_step": 1,
     "escalation_ttl": 1,
     "additional_info": {
     "user": "user3@email.com",
     "host": "['111.111.111.11']"
     },
     "triggered_by": "webhook-123456789012",
     "webhook_id": "webhook-123456789012",
     "escalation_policy_id": "ep-123456789012",
     "project_id": "project-123456789012",
     "domain_id": "domain-123456789012",
     "created_at": "2022-01-01T02:46:31.391Z",
     "updated_at": "2022-01-01T02:46:31.391Z",
     "escalated_at": "2022-01-01T02:46:31.553Z"
     }
     ],
     "total_count": 21283
}

func (*AlertsInfo) Descriptor deprecated

func (*AlertsInfo) Descriptor() ([]byte, []int)

Deprecated: Use AlertsInfo.ProtoReflect.Descriptor instead.

func (*AlertsInfo) GetResults

func (x *AlertsInfo) GetResults() []*AlertInfo

func (*AlertsInfo) GetTotalCount

func (x *AlertsInfo) GetTotalCount() int32

func (*AlertsInfo) ProtoMessage

func (*AlertsInfo) ProtoMessage()

func (*AlertsInfo) ProtoReflect

func (x *AlertsInfo) ProtoReflect() protoreflect.Message

func (*AlertsInfo) Reset

func (x *AlertsInfo) Reset()

func (*AlertsInfo) String

func (x *AlertsInfo) String() string

type AssignUserRequest

type AssignUserRequest struct {
	AlertId  string `protobuf:"bytes,1,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	Assignee string `protobuf:"bytes,2,opt,name=assignee,proto3" json:"assignee,omitempty"`
	// contains filtered or unexported fields
}

func (*AssignUserRequest) Descriptor deprecated

func (*AssignUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use AssignUserRequest.ProtoReflect.Descriptor instead.

func (*AssignUserRequest) GetAlertId

func (x *AssignUserRequest) GetAlertId() string

func (*AssignUserRequest) GetAssignee

func (x *AssignUserRequest) GetAssignee() string

func (*AssignUserRequest) ProtoMessage

func (*AssignUserRequest) ProtoMessage()

func (*AssignUserRequest) ProtoReflect

func (x *AssignUserRequest) ProtoReflect() protoreflect.Message

func (*AssignUserRequest) Reset

func (x *AssignUserRequest) Reset()

func (*AssignUserRequest) String

func (x *AssignUserRequest) String() string

type ChangeEventRuleOrderRequest

type ChangeEventRuleOrderRequest struct {
	EventRuleId string `protobuf:"bytes,1,opt,name=event_rule_id,json=eventRuleId,proto3" json:"event_rule_id,omitempty"`
	Order       int32  `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}
{
   "event_rule_id": "er-123456789012",
   "order": 2,
   "domain_id": "domain-123456789012"
}

func (*ChangeEventRuleOrderRequest) Descriptor deprecated

func (*ChangeEventRuleOrderRequest) Descriptor() ([]byte, []int)

Deprecated: Use ChangeEventRuleOrderRequest.ProtoReflect.Descriptor instead.

func (*ChangeEventRuleOrderRequest) GetEventRuleId

func (x *ChangeEventRuleOrderRequest) GetEventRuleId() string

func (*ChangeEventRuleOrderRequest) GetOrder

func (x *ChangeEventRuleOrderRequest) GetOrder() int32

func (*ChangeEventRuleOrderRequest) ProtoMessage

func (*ChangeEventRuleOrderRequest) ProtoMessage()

func (*ChangeEventRuleOrderRequest) ProtoReflect

func (*ChangeEventRuleOrderRequest) Reset

func (x *ChangeEventRuleOrderRequest) Reset()

func (*ChangeEventRuleOrderRequest) String

func (x *ChangeEventRuleOrderRequest) String() string

type CreateAlertRequest

type CreateAlertRequest struct {
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// +optional
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// +optional
	Assignee string `protobuf:"bytes,3,opt,name=assignee,proto3" json:"assignee,omitempty"`
	// +optional
	Urgency   AlertUrgency `protobuf:"varint,4,opt,name=urgency,proto3,enum=spaceone.api.monitoring.v1.AlertUrgency" json:"urgency,omitempty"`
	ProjectId string       `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}
{
     "title": "sample test",
     "description": "This is a description of sample.",
     "urgency": "HIGH",
     "project_id": "project-123456789012",
     "domain_id": "domain-123456789012"
}

func (*CreateAlertRequest) Descriptor deprecated

func (*CreateAlertRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAlertRequest.ProtoReflect.Descriptor instead.

func (*CreateAlertRequest) GetAssignee

func (x *CreateAlertRequest) GetAssignee() string

func (*CreateAlertRequest) GetDescription

func (x *CreateAlertRequest) GetDescription() string

func (*CreateAlertRequest) GetProjectId

func (x *CreateAlertRequest) GetProjectId() string

func (*CreateAlertRequest) GetTitle

func (x *CreateAlertRequest) GetTitle() string

func (*CreateAlertRequest) GetUrgency

func (x *CreateAlertRequest) GetUrgency() AlertUrgency

func (*CreateAlertRequest) ProtoMessage

func (*CreateAlertRequest) ProtoMessage()

func (*CreateAlertRequest) ProtoReflect

func (x *CreateAlertRequest) ProtoReflect() protoreflect.Message

func (*CreateAlertRequest) Reset

func (x *CreateAlertRequest) Reset()

func (*CreateAlertRequest) String

func (x *CreateAlertRequest) String() string

type CreateEscalationPolicyRequest

type CreateEscalationPolicyRequest struct {
	Name  string                  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Rules []*EscalationPolicyRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`
	// +optional
	RepeatCount int32 `protobuf:"varint,3,opt,name=repeat_count,json=repeatCount,proto3" json:"repeat_count,omitempty"`
	// +optional
	FinishCondition CreateEscalationPolicyRequest_EscalationFinishCondition `` /* 195-byte string literal not displayed */
	// +optional
	Tags          *_struct.Struct                             `protobuf:"bytes,5,opt,name=tags,proto3" json:"tags,omitempty"`
	ResourceGroup CreateEscalationPolicyRequest_ResourceGroup `` /* 178-byte string literal not displayed */
	// +optional
	ProjectId string `protobuf:"bytes,21,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "name": "es-test",
   "rules": [{"notification_level": "LV1", "escalate_minutes": 30},
             {"notification_level": "LV2", "escalate_minutes": 30}],
   "repeat_count": 2,
   "finish_condition": "ACKNOWLEDGED",
   "domain_id": "domain-58010aa2e451"
}

func (*CreateEscalationPolicyRequest) Descriptor deprecated

func (*CreateEscalationPolicyRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateEscalationPolicyRequest.ProtoReflect.Descriptor instead.

func (*CreateEscalationPolicyRequest) GetFinishCondition

func (*CreateEscalationPolicyRequest) GetName

func (*CreateEscalationPolicyRequest) GetProjectId

func (x *CreateEscalationPolicyRequest) GetProjectId() string

func (*CreateEscalationPolicyRequest) GetRepeatCount

func (x *CreateEscalationPolicyRequest) GetRepeatCount() int32

func (*CreateEscalationPolicyRequest) GetResourceGroup

func (*CreateEscalationPolicyRequest) GetRules

func (*CreateEscalationPolicyRequest) GetTags

func (*CreateEscalationPolicyRequest) ProtoMessage

func (*CreateEscalationPolicyRequest) ProtoMessage()

func (*CreateEscalationPolicyRequest) ProtoReflect

func (*CreateEscalationPolicyRequest) Reset

func (x *CreateEscalationPolicyRequest) Reset()

func (*CreateEscalationPolicyRequest) String

type CreateEscalationPolicyRequest_EscalationFinishCondition

type CreateEscalationPolicyRequest_EscalationFinishCondition int32
const (
	CreateEscalationPolicyRequest_NONE         CreateEscalationPolicyRequest_EscalationFinishCondition = 0
	CreateEscalationPolicyRequest_ACKNOWLEDGED CreateEscalationPolicyRequest_EscalationFinishCondition = 1
	CreateEscalationPolicyRequest_RESOLVED     CreateEscalationPolicyRequest_EscalationFinishCondition = 2
)

func (CreateEscalationPolicyRequest_EscalationFinishCondition) Descriptor

func (CreateEscalationPolicyRequest_EscalationFinishCondition) Enum

func (CreateEscalationPolicyRequest_EscalationFinishCondition) EnumDescriptor deprecated

Deprecated: Use CreateEscalationPolicyRequest_EscalationFinishCondition.Descriptor instead.

func (CreateEscalationPolicyRequest_EscalationFinishCondition) Number

func (CreateEscalationPolicyRequest_EscalationFinishCondition) String

func (CreateEscalationPolicyRequest_EscalationFinishCondition) Type

type CreateEscalationPolicyRequest_ResourceGroup

type CreateEscalationPolicyRequest_ResourceGroup int32
const (
	CreateEscalationPolicyRequest_RESOURCE_GROUP_NONE CreateEscalationPolicyRequest_ResourceGroup = 0
	CreateEscalationPolicyRequest_WORKSPACE           CreateEscalationPolicyRequest_ResourceGroup = 1
	CreateEscalationPolicyRequest_PROJECT             CreateEscalationPolicyRequest_ResourceGroup = 2
)

func (CreateEscalationPolicyRequest_ResourceGroup) Descriptor

func (CreateEscalationPolicyRequest_ResourceGroup) Enum

func (CreateEscalationPolicyRequest_ResourceGroup) EnumDescriptor deprecated

func (CreateEscalationPolicyRequest_ResourceGroup) EnumDescriptor() ([]byte, []int)

Deprecated: Use CreateEscalationPolicyRequest_ResourceGroup.Descriptor instead.

func (CreateEscalationPolicyRequest_ResourceGroup) Number

func (CreateEscalationPolicyRequest_ResourceGroup) String

func (CreateEscalationPolicyRequest_ResourceGroup) Type

type CreateEventRequest

type CreateEventRequest struct {
	WebhookId string          `protobuf:"bytes,1,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
	AccessKey string          `protobuf:"bytes,2,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
	Data      *_struct.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateEventRequest) Descriptor deprecated

func (*CreateEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateEventRequest.ProtoReflect.Descriptor instead.

func (*CreateEventRequest) GetAccessKey

func (x *CreateEventRequest) GetAccessKey() string

func (*CreateEventRequest) GetData

func (x *CreateEventRequest) GetData() *_struct.Struct

func (*CreateEventRequest) GetWebhookId

func (x *CreateEventRequest) GetWebhookId() string

func (*CreateEventRequest) ProtoMessage

func (*CreateEventRequest) ProtoMessage()

func (*CreateEventRequest) ProtoReflect

func (x *CreateEventRequest) ProtoReflect() protoreflect.Message

func (*CreateEventRequest) Reset

func (x *CreateEventRequest) Reset()

func (*CreateEventRequest) String

func (x *CreateEventRequest) String() string

type CreateEventRuleRequest

type CreateEventRuleRequest struct {
	Name             string                                  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Conditions       []*EventRuleCondition                   `protobuf:"bytes,2,rep,name=conditions,proto3" json:"conditions,omitempty"`
	ConditionsPolicy CreateEventRuleRequest_ConditionsPolicy `` /* 182-byte string literal not displayed */
	Actions          *EventRuleActions                       `protobuf:"bytes,4,opt,name=actions,proto3" json:"actions,omitempty"`
	// +optional
	Options *EventRuleOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"`
	// +optional
	Tags          *_struct.Struct                      `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"`
	ResourceGroup CreateEventRuleRequest_ResourceGroup `` /* 171-byte string literal not displayed */
	// +optional
	ProjectId string `protobuf:"bytes,21,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}
{
     "conditions": [{"key": "description", "value": "API", "operator": "contain"}],
     "conditions_policy": "ALL",
     "actions": {"change_assignee": "user1@email.com",
     "change_urgency": "LOW",
     "change_project": "project-123456789012",
     "add_additional_info": {"type": "personal rule"},
     "no_notification": true},
     "options": {},
     "project_id": "project-123456789012",
     "domain_id": "domain-123456789012"
}

func (*CreateEventRuleRequest) Descriptor deprecated

func (*CreateEventRuleRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateEventRuleRequest.ProtoReflect.Descriptor instead.

func (*CreateEventRuleRequest) GetActions

func (x *CreateEventRuleRequest) GetActions() *EventRuleActions

func (*CreateEventRuleRequest) GetConditions

func (x *CreateEventRuleRequest) GetConditions() []*EventRuleCondition

func (*CreateEventRuleRequest) GetConditionsPolicy

func (*CreateEventRuleRequest) GetName

func (x *CreateEventRuleRequest) GetName() string

func (*CreateEventRuleRequest) GetOptions

func (x *CreateEventRuleRequest) GetOptions() *EventRuleOptions

func (*CreateEventRuleRequest) GetProjectId

func (x *CreateEventRuleRequest) GetProjectId() string

func (*CreateEventRuleRequest) GetResourceGroup

func (*CreateEventRuleRequest) GetTags

func (x *CreateEventRuleRequest) GetTags() *_struct.Struct

func (*CreateEventRuleRequest) ProtoMessage

func (*CreateEventRuleRequest) ProtoMessage()

func (*CreateEventRuleRequest) ProtoReflect

func (x *CreateEventRuleRequest) ProtoReflect() protoreflect.Message

func (*CreateEventRuleRequest) Reset

func (x *CreateEventRuleRequest) Reset()

func (*CreateEventRuleRequest) String

func (x *CreateEventRuleRequest) String() string

type CreateEventRuleRequest_ConditionsPolicy

type CreateEventRuleRequest_ConditionsPolicy int32
const (
	CreateEventRuleRequest_NONE   CreateEventRuleRequest_ConditionsPolicy = 0
	CreateEventRuleRequest_ALL    CreateEventRuleRequest_ConditionsPolicy = 1
	CreateEventRuleRequest_ANY    CreateEventRuleRequest_ConditionsPolicy = 2
	CreateEventRuleRequest_ALWAYS CreateEventRuleRequest_ConditionsPolicy = 3
)

func (CreateEventRuleRequest_ConditionsPolicy) Descriptor

func (CreateEventRuleRequest_ConditionsPolicy) Enum

func (CreateEventRuleRequest_ConditionsPolicy) EnumDescriptor deprecated

func (CreateEventRuleRequest_ConditionsPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use CreateEventRuleRequest_ConditionsPolicy.Descriptor instead.

func (CreateEventRuleRequest_ConditionsPolicy) Number

func (CreateEventRuleRequest_ConditionsPolicy) String

func (CreateEventRuleRequest_ConditionsPolicy) Type

type CreateEventRuleRequest_ResourceGroup

type CreateEventRuleRequest_ResourceGroup int32
const (
	CreateEventRuleRequest_RESOURCE_GROUP_NONE CreateEventRuleRequest_ResourceGroup = 0
	CreateEventRuleRequest_WORKSPACE           CreateEventRuleRequest_ResourceGroup = 1
	CreateEventRuleRequest_PROJECT             CreateEventRuleRequest_ResourceGroup = 2
)

func (CreateEventRuleRequest_ResourceGroup) Descriptor

func (CreateEventRuleRequest_ResourceGroup) Enum

func (CreateEventRuleRequest_ResourceGroup) EnumDescriptor deprecated

func (CreateEventRuleRequest_ResourceGroup) EnumDescriptor() ([]byte, []int)

Deprecated: Use CreateEventRuleRequest_ResourceGroup.Descriptor instead.

func (CreateEventRuleRequest_ResourceGroup) Number

func (CreateEventRuleRequest_ResourceGroup) String

func (CreateEventRuleRequest_ResourceGroup) Type

type CreateNoteRequest

type CreateNoteRequest struct {
	AlertId string `protobuf:"bytes,1,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	Note    string `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}
{
   "alert_id": "alert-160ce04f6908",
   "note": "This is a description",
}

func (*CreateNoteRequest) Descriptor deprecated

func (*CreateNoteRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateNoteRequest.ProtoReflect.Descriptor instead.

func (*CreateNoteRequest) GetAlertId

func (x *CreateNoteRequest) GetAlertId() string

func (*CreateNoteRequest) GetNote

func (x *CreateNoteRequest) GetNote() string

func (*CreateNoteRequest) ProtoMessage

func (*CreateNoteRequest) ProtoMessage()

func (*CreateNoteRequest) ProtoReflect

func (x *CreateNoteRequest) ProtoReflect() protoreflect.Message

func (*CreateNoteRequest) Reset

func (x *CreateNoteRequest) Reset()

func (*CreateNoteRequest) String

func (x *CreateNoteRequest) String() string

type CreateProjectAlertConfigRequest

type CreateProjectAlertConfigRequest struct {
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// +optional
	EscalationPolicyId string `protobuf:"bytes,2,opt,name=escalation_policy_id,json=escalationPolicyId,proto3" json:"escalation_policy_id,omitempty"`
	// +optional
	Options *AlertOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}
{
   "project_id": "project-dee2a81d4859",
   "escalation_policy_id": "ep-b441abe04ca9",
   "options": {
       "notification_urgency": "ALL",
       "recovery_mode": "AUTO"
   },
   "domain_id": "domain-58010aa2e451"
}

func (*CreateProjectAlertConfigRequest) Descriptor deprecated

func (*CreateProjectAlertConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateProjectAlertConfigRequest.ProtoReflect.Descriptor instead.

func (*CreateProjectAlertConfigRequest) GetEscalationPolicyId

func (x *CreateProjectAlertConfigRequest) GetEscalationPolicyId() string

func (*CreateProjectAlertConfigRequest) GetOptions

func (*CreateProjectAlertConfigRequest) GetProjectId

func (x *CreateProjectAlertConfigRequest) GetProjectId() string

func (*CreateProjectAlertConfigRequest) ProtoMessage

func (*CreateProjectAlertConfigRequest) ProtoMessage()

func (*CreateProjectAlertConfigRequest) ProtoReflect

func (*CreateProjectAlertConfigRequest) Reset

func (*CreateProjectAlertConfigRequest) String

type CreateWebhookRequest

type CreateWebhookRequest struct {
	Name       string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	PluginInfo *WebhookPluginInfo `protobuf:"bytes,2,opt,name=plugin_info,json=pluginInfo,proto3" json:"plugin_info,omitempty"`
	// +optional
	Tags      *_struct.Struct `protobuf:"bytes,3,opt,name=tags,proto3" json:"tags,omitempty"`
	ProjectId string          `protobuf:"bytes,11,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}
{
     "name": "aws-sns-webhook-for-phd",
     "plugin_info": {
     "plugin_id": "plugin-aws-sns-mon-webhook",
     "options": {}
     },
     "project_id": "project-123456789012",
     "domain_id": "domain-123456789012"
}

func (*CreateWebhookRequest) Descriptor deprecated

func (*CreateWebhookRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateWebhookRequest.ProtoReflect.Descriptor instead.

func (*CreateWebhookRequest) GetName

func (x *CreateWebhookRequest) GetName() string

func (*CreateWebhookRequest) GetPluginInfo

func (x *CreateWebhookRequest) GetPluginInfo() *WebhookPluginInfo

func (*CreateWebhookRequest) GetProjectId

func (x *CreateWebhookRequest) GetProjectId() string

func (*CreateWebhookRequest) GetTags

func (x *CreateWebhookRequest) GetTags() *_struct.Struct

func (*CreateWebhookRequest) ProtoMessage

func (*CreateWebhookRequest) ProtoMessage()

func (*CreateWebhookRequest) ProtoReflect

func (x *CreateWebhookRequest) ProtoReflect() protoreflect.Message

func (*CreateWebhookRequest) Reset

func (x *CreateWebhookRequest) Reset()

func (*CreateWebhookRequest) String

func (x *CreateWebhookRequest) String() string

type DataSourceClient

type DataSourceClient interface {
	// Registers a DataSource with information of the plugin to use. Information of the plugin includes `version`, `provider`, `upgrade_mode`.
	Register(ctx context.Context, in *RegisterDataSourceRequest, opts ...grpc.CallOption) (*DataSourceInfo, error)
	// Updates a specific DataSource. You can make changes in DataSource settings, including `name` and `tags`.
	Update(ctx context.Context, in *UpdateDataSourceRequest, opts ...grpc.CallOption) (*DataSourceInfo, error)
	// Enables a specific DataSource. By enabling a DataSource, you can communicate with an external cloud service via the plugin.
	Enable(ctx context.Context, in *DataSourceRequest, opts ...grpc.CallOption) (*DataSourceInfo, error)
	// Disables a specific DataSource. By disabling a DataSource, you can block communication with an external cloud service via the plugin.
	Disable(ctx context.Context, in *DataSourceRequest, opts ...grpc.CallOption) (*DataSourceInfo, error)
	// Deregisters and deletes a specific DataSource. You must specify the `data_source_id` of the DataSource to deregister.
	Deregister(ctx context.Context, in *DataSourceRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Updates the plugin of a specific DataSource. This method resets the plugin data in the DataSource to update the `metadata`.
	UpdatePlugin(ctx context.Context, in *UpdateDataSourcePluginRequest, opts ...grpc.CallOption) (*DataSourceInfo, error)
	// Verifies the plugin of a specific DataSource. This method validates the plugin data, `version` and `endpoint`.
	VerifyPlugin(ctx context.Context, in *DataSourceRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets a specific DataSource. Prints detailed information about the DataSource, including `name`, `state`, and `plugin_info`.
	Get(ctx context.Context, in *DataSourceRequest, opts ...grpc.CallOption) (*DataSourceInfo, error)
	// Gets a list of all DataSources. You can use a query to get a filtered list of DataSources.
	List(ctx context.Context, in *DataSourceQuery, opts ...grpc.CallOption) (*DataSourcesInfo, error)
	Stat(ctx context.Context, in *DataSourceStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error)
}

DataSourceClient is the client API for DataSource 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 NewDataSourceClient

func NewDataSourceClient(cc grpc.ClientConnInterface) DataSourceClient

type DataSourceInfo

type DataSourceInfo struct {
	DataSourceId   string                `protobuf:"bytes,1,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	Name           string                `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	State          DataSourceInfo_State  `protobuf:"varint,3,opt,name=state,proto3,enum=spaceone.api.monitoring.v1.DataSourceInfo_State" json:"state,omitempty"`
	MonitoringType MonitoringType        `` /* 151-byte string literal not displayed */
	Provider       string                `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider,omitempty"`
	Capability     *_struct.Struct       `protobuf:"bytes,6,opt,name=capability,proto3" json:"capability,omitempty"`
	PluginInfo     *DataSourcePluginInfo `protobuf:"bytes,7,opt,name=plugin_info,json=pluginInfo,proto3" json:"plugin_info,omitempty"`
	Tags           *_struct.Struct       `protobuf:"bytes,8,opt,name=tags,proto3" json:"tags,omitempty"`
	DomainId       string                `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	CreatedAt      string                `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}
{
   "data_source_id": "ds-123456789012",
   "name": "datasource-test",
   "state": "ENABLED",
   "monitoring_type": "METRIC",
   "provider": "aws",
   "capability": {
       "supported_schema": [
           "aws_access_key",
           "aws_assume_role"
       ],
       "use_resource_secret": true,
       "monitoring_type": "METRIC"
   },
   "plugin_info": {
       "plugin_id": "plugin-123456789012",
       "version": "1.1.4.20220617.135934",
       "options": {},
       "provider": "aws",
       "metadata": {
           "supported_stat": [
               "AVERAGE",
               "MAX",
               "MIN",
               "SUM"
           ],
           "supported_resource_type": [
               "inventory.Server",
               "inventory.CloudService"
           ],
           "required_keys": [
               "data.cloudwatch"
           ]
       },
       "upgrade_mode": "AUTO"
   },
   "tags": {
       "a": "b"
   },
   "domain_id": "domain-123456789012",
   "created_at": "2022-06-21T01:17:12.144Z"
}

func (*DataSourceInfo) Descriptor deprecated

func (*DataSourceInfo) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceInfo.ProtoReflect.Descriptor instead.

func (*DataSourceInfo) GetCapability

func (x *DataSourceInfo) GetCapability() *_struct.Struct

func (*DataSourceInfo) GetCreatedAt

func (x *DataSourceInfo) GetCreatedAt() string

func (*DataSourceInfo) GetDataSourceId

func (x *DataSourceInfo) GetDataSourceId() string

func (*DataSourceInfo) GetDomainId

func (x *DataSourceInfo) GetDomainId() string

func (*DataSourceInfo) GetMonitoringType

func (x *DataSourceInfo) GetMonitoringType() MonitoringType

func (*DataSourceInfo) GetName

func (x *DataSourceInfo) GetName() string

func (*DataSourceInfo) GetPluginInfo

func (x *DataSourceInfo) GetPluginInfo() *DataSourcePluginInfo

func (*DataSourceInfo) GetProvider

func (x *DataSourceInfo) GetProvider() string

func (*DataSourceInfo) GetState

func (x *DataSourceInfo) GetState() DataSourceInfo_State

func (*DataSourceInfo) GetTags

func (x *DataSourceInfo) GetTags() *_struct.Struct

func (*DataSourceInfo) ProtoMessage

func (*DataSourceInfo) ProtoMessage()

func (*DataSourceInfo) ProtoReflect

func (x *DataSourceInfo) ProtoReflect() protoreflect.Message

func (*DataSourceInfo) Reset

func (x *DataSourceInfo) Reset()

func (*DataSourceInfo) String

func (x *DataSourceInfo) String() string

type DataSourceInfo_State

type DataSourceInfo_State int32
const (
	DataSourceInfo_NONE     DataSourceInfo_State = 0
	DataSourceInfo_ENABLED  DataSourceInfo_State = 1
	DataSourceInfo_DISABLED DataSourceInfo_State = 2
)

func (DataSourceInfo_State) Descriptor

func (DataSourceInfo_State) Enum

func (DataSourceInfo_State) EnumDescriptor deprecated

func (DataSourceInfo_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use DataSourceInfo_State.Descriptor instead.

func (DataSourceInfo_State) Number

func (DataSourceInfo_State) String

func (x DataSourceInfo_State) String() string

func (DataSourceInfo_State) Type

type DataSourcePluginInfo

type DataSourcePluginInfo struct {
	PluginId    string                           `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
	Version     string                           `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Options     *_struct.Struct                  `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	Metadata    *_struct.Struct                  `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
	UpgradeMode DataSourcePluginInfo_UpgradeMode `` /* 160-byte string literal not displayed */
	// Types that are assignable to PluginSecret:
	//
	//	*DataSourcePluginInfo_SecretId
	//	*DataSourcePluginInfo_Provider
	PluginSecret isDataSourcePluginInfo_PluginSecret `protobuf_oneof:"plugin_secret"`
	// contains filtered or unexported fields
}

func (*DataSourcePluginInfo) Descriptor deprecated

func (*DataSourcePluginInfo) Descriptor() ([]byte, []int)

Deprecated: Use DataSourcePluginInfo.ProtoReflect.Descriptor instead.

func (*DataSourcePluginInfo) GetMetadata

func (x *DataSourcePluginInfo) GetMetadata() *_struct.Struct

func (*DataSourcePluginInfo) GetOptions

func (x *DataSourcePluginInfo) GetOptions() *_struct.Struct

func (*DataSourcePluginInfo) GetPluginId

func (x *DataSourcePluginInfo) GetPluginId() string

func (*DataSourcePluginInfo) GetPluginSecret

func (m *DataSourcePluginInfo) GetPluginSecret() isDataSourcePluginInfo_PluginSecret

func (*DataSourcePluginInfo) GetProvider

func (x *DataSourcePluginInfo) GetProvider() string

func (*DataSourcePluginInfo) GetSecretId

func (x *DataSourcePluginInfo) GetSecretId() string

func (*DataSourcePluginInfo) GetUpgradeMode

func (*DataSourcePluginInfo) GetVersion

func (x *DataSourcePluginInfo) GetVersion() string

func (*DataSourcePluginInfo) ProtoMessage

func (*DataSourcePluginInfo) ProtoMessage()

func (*DataSourcePluginInfo) ProtoReflect

func (x *DataSourcePluginInfo) ProtoReflect() protoreflect.Message

func (*DataSourcePluginInfo) Reset

func (x *DataSourcePluginInfo) Reset()

func (*DataSourcePluginInfo) String

func (x *DataSourcePluginInfo) String() string

type DataSourcePluginInfo_Provider

type DataSourcePluginInfo_Provider struct {
	Provider string `protobuf:"bytes,5,opt,name=provider,proto3,oneof"`
}

type DataSourcePluginInfo_SecretId

type DataSourcePluginInfo_SecretId struct {
	SecretId string `protobuf:"bytes,4,opt,name=secret_id,json=secretId,proto3,oneof"`
}

type DataSourcePluginInfo_UpgradeMode

type DataSourcePluginInfo_UpgradeMode int32
const (
	DataSourcePluginInfo_NONE   DataSourcePluginInfo_UpgradeMode = 0
	DataSourcePluginInfo_MANUAL DataSourcePluginInfo_UpgradeMode = 1
	DataSourcePluginInfo_AUTO   DataSourcePluginInfo_UpgradeMode = 2
)

func (DataSourcePluginInfo_UpgradeMode) Descriptor

func (DataSourcePluginInfo_UpgradeMode) Enum

func (DataSourcePluginInfo_UpgradeMode) EnumDescriptor deprecated

func (DataSourcePluginInfo_UpgradeMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use DataSourcePluginInfo_UpgradeMode.Descriptor instead.

func (DataSourcePluginInfo_UpgradeMode) Number

func (DataSourcePluginInfo_UpgradeMode) String

func (DataSourcePluginInfo_UpgradeMode) Type

type DataSourceQuery

type DataSourceQuery struct {

	// +optional
	Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// +optional
	DataSourceId string `protobuf:"bytes,2,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	// +optional
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// +optional
	State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
	// +optional
	MonitoringType MonitoringType `` /* 151-byte string literal not displayed */
	// +optional
	Provider string `protobuf:"bytes,6,opt,name=provider,proto3" json:"provider,omitempty"`
	// contains filtered or unexported fields
}
{
   "query": {},
   "domain_id": "domain-123456789012"
}

func (*DataSourceQuery) Descriptor deprecated

func (*DataSourceQuery) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceQuery.ProtoReflect.Descriptor instead.

func (*DataSourceQuery) GetDataSourceId

func (x *DataSourceQuery) GetDataSourceId() string

func (*DataSourceQuery) GetMonitoringType

func (x *DataSourceQuery) GetMonitoringType() MonitoringType

func (*DataSourceQuery) GetName

func (x *DataSourceQuery) GetName() string

func (*DataSourceQuery) GetProvider

func (x *DataSourceQuery) GetProvider() string

func (*DataSourceQuery) GetQuery

func (x *DataSourceQuery) GetQuery() *v2.Query

func (*DataSourceQuery) GetState

func (x *DataSourceQuery) GetState() string

func (*DataSourceQuery) ProtoMessage

func (*DataSourceQuery) ProtoMessage()

func (*DataSourceQuery) ProtoReflect

func (x *DataSourceQuery) ProtoReflect() protoreflect.Message

func (*DataSourceQuery) Reset

func (x *DataSourceQuery) Reset()

func (*DataSourceQuery) String

func (x *DataSourceQuery) String() string

type DataSourceRequest

type DataSourceRequest struct {
	DataSourceId string `protobuf:"bytes,1,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "data_source_id": "ds-6167ed6b42f4",
   "domain_id": "domain-123456789012"
}

func (*DataSourceRequest) Descriptor deprecated

func (*DataSourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceRequest.ProtoReflect.Descriptor instead.

func (*DataSourceRequest) GetDataSourceId

func (x *DataSourceRequest) GetDataSourceId() string

func (*DataSourceRequest) ProtoMessage

func (*DataSourceRequest) ProtoMessage()

func (*DataSourceRequest) ProtoReflect

func (x *DataSourceRequest) ProtoReflect() protoreflect.Message

func (*DataSourceRequest) Reset

func (x *DataSourceRequest) Reset()

func (*DataSourceRequest) String

func (x *DataSourceRequest) String() string

type DataSourceServer

type DataSourceServer interface {
	// Registers a DataSource with information of the plugin to use. Information of the plugin includes `version`, `provider`, `upgrade_mode`.
	Register(context.Context, *RegisterDataSourceRequest) (*DataSourceInfo, error)
	// Updates a specific DataSource. You can make changes in DataSource settings, including `name` and `tags`.
	Update(context.Context, *UpdateDataSourceRequest) (*DataSourceInfo, error)
	// Enables a specific DataSource. By enabling a DataSource, you can communicate with an external cloud service via the plugin.
	Enable(context.Context, *DataSourceRequest) (*DataSourceInfo, error)
	// Disables a specific DataSource. By disabling a DataSource, you can block communication with an external cloud service via the plugin.
	Disable(context.Context, *DataSourceRequest) (*DataSourceInfo, error)
	// Deregisters and deletes a specific DataSource. You must specify the `data_source_id` of the DataSource to deregister.
	Deregister(context.Context, *DataSourceRequest) (*empty.Empty, error)
	// Updates the plugin of a specific DataSource. This method resets the plugin data in the DataSource to update the `metadata`.
	UpdatePlugin(context.Context, *UpdateDataSourcePluginRequest) (*DataSourceInfo, error)
	// Verifies the plugin of a specific DataSource. This method validates the plugin data, `version` and `endpoint`.
	VerifyPlugin(context.Context, *DataSourceRequest) (*empty.Empty, error)
	// Gets a specific DataSource. Prints detailed information about the DataSource, including `name`, `state`, and `plugin_info`.
	Get(context.Context, *DataSourceRequest) (*DataSourceInfo, error)
	// Gets a list of all DataSources. You can use a query to get a filtered list of DataSources.
	List(context.Context, *DataSourceQuery) (*DataSourcesInfo, error)
	Stat(context.Context, *DataSourceStatQuery) (*_struct.Struct, error)
	// contains filtered or unexported methods
}

DataSourceServer is the server API for DataSource service. All implementations must embed UnimplementedDataSourceServer for forward compatibility

type DataSourceStatQuery

type DataSourceStatQuery struct {
	Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*DataSourceStatQuery) Descriptor deprecated

func (*DataSourceStatQuery) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceStatQuery.ProtoReflect.Descriptor instead.

func (*DataSourceStatQuery) GetQuery

func (x *DataSourceStatQuery) GetQuery() *v2.StatisticsQuery

func (*DataSourceStatQuery) ProtoMessage

func (*DataSourceStatQuery) ProtoMessage()

func (*DataSourceStatQuery) ProtoReflect

func (x *DataSourceStatQuery) ProtoReflect() protoreflect.Message

func (*DataSourceStatQuery) Reset

func (x *DataSourceStatQuery) Reset()

func (*DataSourceStatQuery) String

func (x *DataSourceStatQuery) String() string

type DataSourcesInfo

type DataSourcesInfo struct {
	Results    []*DataSourceInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	TotalCount int32             `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}
{
   "results": [
       {
           "data_source_id": "ds-89f1e81528e9",
           "name": "AWS CloudTrail",
           "state": "ENABLED",
           "monitoring_type": "LOG",
           "provider": "aws",
           "capability": {
               "use_resource_secret": true,
               "monitoring_type": "LOG",
               "supported_schema": [
                   "aws_access_key",
                   "aws_assume_role"
               ]
           },
           "plugin_info": {
               "plugin_id": "plugin-9881b9b440a4",
               "version": "1.0-dev2",
               "options": {},
               "provider": "aws",
               "metadata": {
                   "required_keys": [
                       "reference.resource_id"
                   ],
                   "supported_resource_type": [
                       "inventory.Server",
                       "inventory.CloudService"
                   ]
               },
               "upgrade_mode": "AUTO"
           },
           "tags": {},
           "domain_id": "domain-123456789012",
           "created_at": "2021-03-31T08:39:45.532Z"
       }
   ],
   "total_count": 2
}

func (*DataSourcesInfo) Descriptor deprecated

func (*DataSourcesInfo) Descriptor() ([]byte, []int)

Deprecated: Use DataSourcesInfo.ProtoReflect.Descriptor instead.

func (*DataSourcesInfo) GetResults

func (x *DataSourcesInfo) GetResults() []*DataSourceInfo

func (*DataSourcesInfo) GetTotalCount

func (x *DataSourcesInfo) GetTotalCount() int32

func (*DataSourcesInfo) ProtoMessage

func (*DataSourcesInfo) ProtoMessage()

func (*DataSourcesInfo) ProtoReflect

func (x *DataSourcesInfo) ProtoReflect() protoreflect.Message

func (*DataSourcesInfo) Reset

func (x *DataSourcesInfo) Reset()

func (*DataSourcesInfo) String

func (x *DataSourcesInfo) String() string

type EscalationPoliciesInfo

type EscalationPoliciesInfo struct {
	Results    []*EscalationPolicyInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	TotalCount int32                   `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}
{
   "results": [
       {
           "escalation_policy_id": "ep-7c9745003372",
           "name": "0525-ms-test-1",
           "rules": [
               {
                   "notification_level": "LV1"
               }
           ],
           "finish_condition": "ACKNOWLEDGED",
           "scope": "DOMAIN",
           "tags": {},
           "domain_id": "domain-58010aa2e451",
           "created_at": "2022-05-25T09:31:15.150Z"
       },
       {
           "escalation_policy_id": "ep-d75670166af4",
           "name": "0525-ms-test-2",
           "rules": [
               {
                   "notification_level": "LV2",
                   "escalate_minutes": 30
               },
               {
                   "notification_level": "LV2"
               }
           ],
           "finish_condition": "ACKNOWLEDGED",
           "scope": "DOMAIN",
           "tags": {},
           "domain_id": "domain-58010aa2e451",
           "created_at": "2022-05-25T09:31:38.573Z"
       }
   ],
   "total_count": 2
}

func (*EscalationPoliciesInfo) Descriptor deprecated

func (*EscalationPoliciesInfo) Descriptor() ([]byte, []int)

Deprecated: Use EscalationPoliciesInfo.ProtoReflect.Descriptor instead.

func (*EscalationPoliciesInfo) GetResults

func (x *EscalationPoliciesInfo) GetResults() []*EscalationPolicyInfo

func (*EscalationPoliciesInfo) GetTotalCount

func (x *EscalationPoliciesInfo) GetTotalCount() int32

func (*EscalationPoliciesInfo) ProtoMessage

func (*EscalationPoliciesInfo) ProtoMessage()

func (*EscalationPoliciesInfo) ProtoReflect

func (x *EscalationPoliciesInfo) ProtoReflect() protoreflect.Message

func (*EscalationPoliciesInfo) Reset

func (x *EscalationPoliciesInfo) Reset()

func (*EscalationPoliciesInfo) String

func (x *EscalationPoliciesInfo) String() string

type EscalationPolicyClient

type EscalationPolicyClient interface {
	// Creates a new EscalationPolicy. When creating an EscalationPolicy, if the project_id is assigned, the EscalationPolicy is applied to the Project with the same project_id. If an EscalationPolicy is set as a global policy, all Projects in the same domain can apply the policy.
	Create(ctx context.Context, in *CreateEscalationPolicyRequest, opts ...grpc.CallOption) (*EscalationPolicyInfo, error)
	// Updates a specific EscalationPolicy. You can make changes in EscalationPolicy settings, including the name, the escalation process, and the number of iterations.
	Update(ctx context.Context, in *UpdateEscalationPolicyRequest, opts ...grpc.CallOption) (*EscalationPolicyInfo, error)
	// Sets a specific EscalationPolicy as default. Only policies configured as global can be set as default. When a Project is created, even if you did not configure any policy to the Project, the default policy set by this api method is applied.
	SetDefault(ctx context.Context, in *EscalationPolicyRequest, opts ...grpc.CallOption) (*EscalationPolicyInfo, error)
	// Deletes a specific EscalationPolicy. Deletes the EscalationPolicy with the escalation_policy_id from the deletion request.
	Delete(ctx context.Context, in *EscalationPolicyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets a specific EscalationPolicy. Prints detailed information about the EscalationPolicy, including the name, rules, and termination conditions.
	Get(ctx context.Context, in *EscalationPolicyRequest, opts ...grpc.CallOption) (*EscalationPolicyInfo, error)
	// Gets a list of all EscalationPolicies. You can use a query to get a filtered list of EscalationPolicies.
	List(ctx context.Context, in *EscalationPolicyQuery, opts ...grpc.CallOption) (*EscalationPoliciesInfo, error)
	Stat(ctx context.Context, in *EscalationPolicyStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error)
}

EscalationPolicyClient is the client API for EscalationPolicy 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.

type EscalationPolicyInfo

type EscalationPolicyInfo struct {
	EscalationPolicyId string                                         `protobuf:"bytes,1,opt,name=escalation_policy_id,json=escalationPolicyId,proto3" json:"escalation_policy_id,omitempty"`
	Name               string                                         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	IsDefault          bool                                           `protobuf:"varint,3,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
	Rules              []*EscalationPolicyRule                        `protobuf:"bytes,4,rep,name=rules,proto3" json:"rules,omitempty"`
	RepeatCount        int32                                          `protobuf:"varint,5,opt,name=repeat_count,json=repeatCount,proto3" json:"repeat_count,omitempty"`
	FinishCondition    EscalationPolicyInfo_EscalationFinishCondition `` /* 186-byte string literal not displayed */
	ResourceGroup      EscalationPolicyInfo_ResourceGroup             `` /* 168-byte string literal not displayed */
	ProjectId          string                                         `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Tags               *_struct.Struct                                `protobuf:"bytes,9,opt,name=tags,proto3" json:"tags,omitempty"`
	WorkspaceId        string                                         `protobuf:"bytes,10,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	DomainId           string                                         `protobuf:"bytes,11,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	CreatedAt          string                                         `protobuf:"bytes,21,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}
{
       "escalation_policy_id": "ep-526e536fdca9",
       "name": "es-test",
       "rules": [
           {
               "notification_level": "LV1",
               "escalate_minutes": 30
           },
           {
               "notification_level": "LV2",
               "escalate_minutes": 30
           }
       ],
       "repeat_count": 2,
       "finish_condition": "ACKNOWLEDGED",
       "scope": "DOMAIN",
       "tags": {},
       "domain_id": "domain-58010aa2e451",
       "created_at": "2022-06-21T09:22:45.340Z"
}

func (*EscalationPolicyInfo) Descriptor deprecated

func (*EscalationPolicyInfo) Descriptor() ([]byte, []int)

Deprecated: Use EscalationPolicyInfo.ProtoReflect.Descriptor instead.

func (*EscalationPolicyInfo) GetCreatedAt

func (x *EscalationPolicyInfo) GetCreatedAt() string

func (*EscalationPolicyInfo) GetDomainId

func (x *EscalationPolicyInfo) GetDomainId() string

func (*EscalationPolicyInfo) GetEscalationPolicyId

func (x *EscalationPolicyInfo) GetEscalationPolicyId() string

func (*EscalationPolicyInfo) GetFinishCondition

func (*EscalationPolicyInfo) GetIsDefault

func (x *EscalationPolicyInfo) GetIsDefault() bool

func (*EscalationPolicyInfo) GetName

func (x *EscalationPolicyInfo) GetName() string

func (*EscalationPolicyInfo) GetProjectId

func (x *EscalationPolicyInfo) GetProjectId() string

func (*EscalationPolicyInfo) GetRepeatCount

func (x *EscalationPolicyInfo) GetRepeatCount() int32

func (*EscalationPolicyInfo) GetResourceGroup

func (*EscalationPolicyInfo) GetRules

func (x *EscalationPolicyInfo) GetRules() []*EscalationPolicyRule

func (*EscalationPolicyInfo) GetTags

func (x *EscalationPolicyInfo) GetTags() *_struct.Struct

func (*EscalationPolicyInfo) GetWorkspaceId

func (x *EscalationPolicyInfo) GetWorkspaceId() string

func (*EscalationPolicyInfo) ProtoMessage

func (*EscalationPolicyInfo) ProtoMessage()

func (*EscalationPolicyInfo) ProtoReflect

func (x *EscalationPolicyInfo) ProtoReflect() protoreflect.Message

func (*EscalationPolicyInfo) Reset

func (x *EscalationPolicyInfo) Reset()

func (*EscalationPolicyInfo) String

func (x *EscalationPolicyInfo) String() string

type EscalationPolicyInfo_EscalationFinishCondition

type EscalationPolicyInfo_EscalationFinishCondition int32
const (
	EscalationPolicyInfo_NONE         EscalationPolicyInfo_EscalationFinishCondition = 0
	EscalationPolicyInfo_ACKNOWLEDGED EscalationPolicyInfo_EscalationFinishCondition = 1
	EscalationPolicyInfo_RESOLVED     EscalationPolicyInfo_EscalationFinishCondition = 2
)

func (EscalationPolicyInfo_EscalationFinishCondition) Descriptor

func (EscalationPolicyInfo_EscalationFinishCondition) Enum

func (EscalationPolicyInfo_EscalationFinishCondition) EnumDescriptor deprecated

Deprecated: Use EscalationPolicyInfo_EscalationFinishCondition.Descriptor instead.

func (EscalationPolicyInfo_EscalationFinishCondition) Number

func (EscalationPolicyInfo_EscalationFinishCondition) String

func (EscalationPolicyInfo_EscalationFinishCondition) Type

type EscalationPolicyInfo_ResourceGroup

type EscalationPolicyInfo_ResourceGroup int32
const (
	EscalationPolicyInfo_RESOURCE_GROUP_NONE EscalationPolicyInfo_ResourceGroup = 0
	EscalationPolicyInfo_WORKSPACE           EscalationPolicyInfo_ResourceGroup = 1
	EscalationPolicyInfo_PROJECT             EscalationPolicyInfo_ResourceGroup = 2
)

func (EscalationPolicyInfo_ResourceGroup) Descriptor

func (EscalationPolicyInfo_ResourceGroup) Enum

func (EscalationPolicyInfo_ResourceGroup) EnumDescriptor deprecated

func (EscalationPolicyInfo_ResourceGroup) EnumDescriptor() ([]byte, []int)

Deprecated: Use EscalationPolicyInfo_ResourceGroup.Descriptor instead.

func (EscalationPolicyInfo_ResourceGroup) Number

func (EscalationPolicyInfo_ResourceGroup) String

func (EscalationPolicyInfo_ResourceGroup) Type

type EscalationPolicyQuery

type EscalationPolicyQuery struct {

	// +optional
	Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// +optional
	EscalationPolicyId string `protobuf:"bytes,2,opt,name=escalation_policy_id,json=escalationPolicyId,proto3" json:"escalation_policy_id,omitempty"`
	// +optional
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// +optional
	IsDefault bool `protobuf:"varint,4,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
	// +optional
	FinishCondition EscalationPolicyQuery_EscalationFinishCondition `` /* 187-byte string literal not displayed */
	ResourceGroup   EscalationPolicyQuery_ResourceGroup             `` /* 169-byte string literal not displayed */
	// +optional
	ProjectId string `protobuf:"bytes,7,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "query": {},
   "domain_id": "domain-58010aa2e451"
}

func (*EscalationPolicyQuery) Descriptor deprecated

func (*EscalationPolicyQuery) Descriptor() ([]byte, []int)

Deprecated: Use EscalationPolicyQuery.ProtoReflect.Descriptor instead.

func (*EscalationPolicyQuery) GetEscalationPolicyId

func (x *EscalationPolicyQuery) GetEscalationPolicyId() string

func (*EscalationPolicyQuery) GetFinishCondition

func (*EscalationPolicyQuery) GetIsDefault

func (x *EscalationPolicyQuery) GetIsDefault() bool

func (*EscalationPolicyQuery) GetName

func (x *EscalationPolicyQuery) GetName() string

func (*EscalationPolicyQuery) GetProjectId

func (x *EscalationPolicyQuery) GetProjectId() string

func (*EscalationPolicyQuery) GetQuery

func (x *EscalationPolicyQuery) GetQuery() *v2.Query

func (*EscalationPolicyQuery) GetResourceGroup

func (*EscalationPolicyQuery) ProtoMessage

func (*EscalationPolicyQuery) ProtoMessage()

func (*EscalationPolicyQuery) ProtoReflect

func (x *EscalationPolicyQuery) ProtoReflect() protoreflect.Message

func (*EscalationPolicyQuery) Reset

func (x *EscalationPolicyQuery) Reset()

func (*EscalationPolicyQuery) String

func (x *EscalationPolicyQuery) String() string

type EscalationPolicyQuery_EscalationFinishCondition

type EscalationPolicyQuery_EscalationFinishCondition int32
const (
	EscalationPolicyQuery_NONE         EscalationPolicyQuery_EscalationFinishCondition = 0
	EscalationPolicyQuery_ACKNOWLEDGED EscalationPolicyQuery_EscalationFinishCondition = 1
	EscalationPolicyQuery_RESOLVED     EscalationPolicyQuery_EscalationFinishCondition = 2
)

func (EscalationPolicyQuery_EscalationFinishCondition) Descriptor

func (EscalationPolicyQuery_EscalationFinishCondition) Enum

func (EscalationPolicyQuery_EscalationFinishCondition) EnumDescriptor deprecated

Deprecated: Use EscalationPolicyQuery_EscalationFinishCondition.Descriptor instead.

func (EscalationPolicyQuery_EscalationFinishCondition) Number

func (EscalationPolicyQuery_EscalationFinishCondition) String

func (EscalationPolicyQuery_EscalationFinishCondition) Type

type EscalationPolicyQuery_ResourceGroup

type EscalationPolicyQuery_ResourceGroup int32
const (
	EscalationPolicyQuery_RESOURCE_GROUP_NONE EscalationPolicyQuery_ResourceGroup = 0
	EscalationPolicyQuery_WORKSPACE           EscalationPolicyQuery_ResourceGroup = 1
	EscalationPolicyQuery_PROJECT             EscalationPolicyQuery_ResourceGroup = 2
)

func (EscalationPolicyQuery_ResourceGroup) Descriptor

func (EscalationPolicyQuery_ResourceGroup) Enum

func (EscalationPolicyQuery_ResourceGroup) EnumDescriptor deprecated

func (EscalationPolicyQuery_ResourceGroup) EnumDescriptor() ([]byte, []int)

Deprecated: Use EscalationPolicyQuery_ResourceGroup.Descriptor instead.

func (EscalationPolicyQuery_ResourceGroup) Number

func (EscalationPolicyQuery_ResourceGroup) String

func (EscalationPolicyQuery_ResourceGroup) Type

type EscalationPolicyRequest

type EscalationPolicyRequest struct {
	EscalationPolicyId string `protobuf:"bytes,1,opt,name=escalation_policy_id,json=escalationPolicyId,proto3" json:"escalation_policy_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "escalation_policy_id": "ep-526e536fdca9",
   "domain_id": "domain-58010aa2e451"
}

func (*EscalationPolicyRequest) Descriptor deprecated

func (*EscalationPolicyRequest) Descriptor() ([]byte, []int)

Deprecated: Use EscalationPolicyRequest.ProtoReflect.Descriptor instead.

func (*EscalationPolicyRequest) GetEscalationPolicyId

func (x *EscalationPolicyRequest) GetEscalationPolicyId() string

func (*EscalationPolicyRequest) ProtoMessage

func (*EscalationPolicyRequest) ProtoMessage()

func (*EscalationPolicyRequest) ProtoReflect

func (x *EscalationPolicyRequest) ProtoReflect() protoreflect.Message

func (*EscalationPolicyRequest) Reset

func (x *EscalationPolicyRequest) Reset()

func (*EscalationPolicyRequest) String

func (x *EscalationPolicyRequest) String() string

type EscalationPolicyRule

type EscalationPolicyRule struct {
	NotificationLevel EscalationPolicyRule_NotificationLevel `` /* 184-byte string literal not displayed */
	EscalateMinutes   int32                                  `protobuf:"varint,2,opt,name=escalate_minutes,json=escalateMinutes,proto3" json:"escalate_minutes,omitempty"`
	// contains filtered or unexported fields
}

func (*EscalationPolicyRule) Descriptor deprecated

func (*EscalationPolicyRule) Descriptor() ([]byte, []int)

Deprecated: Use EscalationPolicyRule.ProtoReflect.Descriptor instead.

func (*EscalationPolicyRule) GetEscalateMinutes

func (x *EscalationPolicyRule) GetEscalateMinutes() int32

func (*EscalationPolicyRule) GetNotificationLevel

func (*EscalationPolicyRule) ProtoMessage

func (*EscalationPolicyRule) ProtoMessage()

func (*EscalationPolicyRule) ProtoReflect

func (x *EscalationPolicyRule) ProtoReflect() protoreflect.Message

func (*EscalationPolicyRule) Reset

func (x *EscalationPolicyRule) Reset()

func (*EscalationPolicyRule) String

func (x *EscalationPolicyRule) String() string

type EscalationPolicyRule_NotificationLevel

type EscalationPolicyRule_NotificationLevel int32
const (
	EscalationPolicyRule_NONE EscalationPolicyRule_NotificationLevel = 0
	EscalationPolicyRule_ALL  EscalationPolicyRule_NotificationLevel = 1
	EscalationPolicyRule_LV1  EscalationPolicyRule_NotificationLevel = 2
	EscalationPolicyRule_LV2  EscalationPolicyRule_NotificationLevel = 3
	EscalationPolicyRule_LV3  EscalationPolicyRule_NotificationLevel = 4
	EscalationPolicyRule_LV4  EscalationPolicyRule_NotificationLevel = 5
	EscalationPolicyRule_LV5  EscalationPolicyRule_NotificationLevel = 6
)

func (EscalationPolicyRule_NotificationLevel) Descriptor

func (EscalationPolicyRule_NotificationLevel) Enum

func (EscalationPolicyRule_NotificationLevel) EnumDescriptor deprecated

func (EscalationPolicyRule_NotificationLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use EscalationPolicyRule_NotificationLevel.Descriptor instead.

func (EscalationPolicyRule_NotificationLevel) Number

func (EscalationPolicyRule_NotificationLevel) String

func (EscalationPolicyRule_NotificationLevel) Type

type EscalationPolicyServer

type EscalationPolicyServer interface {
	// Creates a new EscalationPolicy. When creating an EscalationPolicy, if the project_id is assigned, the EscalationPolicy is applied to the Project with the same project_id. If an EscalationPolicy is set as a global policy, all Projects in the same domain can apply the policy.
	Create(context.Context, *CreateEscalationPolicyRequest) (*EscalationPolicyInfo, error)
	// Updates a specific EscalationPolicy. You can make changes in EscalationPolicy settings, including the name, the escalation process, and the number of iterations.
	Update(context.Context, *UpdateEscalationPolicyRequest) (*EscalationPolicyInfo, error)
	// Sets a specific EscalationPolicy as default. Only policies configured as global can be set as default. When a Project is created, even if you did not configure any policy to the Project, the default policy set by this api method is applied.
	SetDefault(context.Context, *EscalationPolicyRequest) (*EscalationPolicyInfo, error)
	// Deletes a specific EscalationPolicy. Deletes the EscalationPolicy with the escalation_policy_id from the deletion request.
	Delete(context.Context, *EscalationPolicyRequest) (*empty.Empty, error)
	// Gets a specific EscalationPolicy. Prints detailed information about the EscalationPolicy, including the name, rules, and termination conditions.
	Get(context.Context, *EscalationPolicyRequest) (*EscalationPolicyInfo, error)
	// Gets a list of all EscalationPolicies. You can use a query to get a filtered list of EscalationPolicies.
	List(context.Context, *EscalationPolicyQuery) (*EscalationPoliciesInfo, error)
	Stat(context.Context, *EscalationPolicyStatQuery) (*_struct.Struct, error)
	// contains filtered or unexported methods
}

EscalationPolicyServer is the server API for EscalationPolicy service. All implementations must embed UnimplementedEscalationPolicyServer for forward compatibility

type EscalationPolicyStatQuery

type EscalationPolicyStatQuery struct {
	Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*EscalationPolicyStatQuery) Descriptor deprecated

func (*EscalationPolicyStatQuery) Descriptor() ([]byte, []int)

Deprecated: Use EscalationPolicyStatQuery.ProtoReflect.Descriptor instead.

func (*EscalationPolicyStatQuery) GetQuery

func (*EscalationPolicyStatQuery) ProtoMessage

func (*EscalationPolicyStatQuery) ProtoMessage()

func (*EscalationPolicyStatQuery) ProtoReflect

func (*EscalationPolicyStatQuery) Reset

func (x *EscalationPolicyStatQuery) Reset()

func (*EscalationPolicyStatQuery) String

func (x *EscalationPolicyStatQuery) String() string

type EventClient

type EventClient interface {
	// Creates a new Event. The Event creation process starts with validation checking whether the input data is from a webhook or not. After the input data is validated, the data is processed and used to create the Event.
	Create(ctx context.Context, in *CreateEventRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets a specific Event matching the input parameters, `event_id` and `domain_id`. Prints detailed information about the Event.
	Get(ctx context.Context, in *EventRequest, opts ...grpc.CallOption) (*EventInfo, error)
	// Gets a list of all Events. You must specify the `domain_id`. You can use a query to get a filtered list of Events.
	List(ctx context.Context, in *EventQuery, opts ...grpc.CallOption) (*EventsInfo, error)
	Stat(ctx context.Context, in *EventStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error)
}

EventClient is the client API for Event 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 NewEventClient

func NewEventClient(cc grpc.ClientConnInterface) EventClient

type EventInfo

type EventInfo struct {
	EventId        string          `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	EventKey       string          `protobuf:"bytes,2,opt,name=event_key,json=eventKey,proto3" json:"event_key,omitempty"`
	EventType      string          `protobuf:"bytes,3,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
	Title          string          `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	Description    string          `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Severity       string          `protobuf:"bytes,6,opt,name=severity,proto3" json:"severity,omitempty"`
	Rule           string          `protobuf:"bytes,7,opt,name=rule,proto3" json:"rule,omitempty"`
	ImageUrl       string          `protobuf:"bytes,8,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
	Resource       *EventResource  `protobuf:"bytes,9,opt,name=resource,proto3" json:"resource,omitempty"`
	Provider       string          `protobuf:"bytes,10,opt,name=provider,proto3" json:"provider,omitempty"`
	Account        string          `protobuf:"bytes,11,opt,name=account,proto3" json:"account,omitempty"`
	AdditionalInfo *_struct.Struct `protobuf:"bytes,12,opt,name=additional_info,json=additionalInfo,proto3" json:"additional_info,omitempty"`
	RawData        *_struct.Struct `protobuf:"bytes,13,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"`
	DomainId       string          `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	WorkspaceId    string          `protobuf:"bytes,22,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	ProjectId      string          `protobuf:"bytes,23,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	AlertId        string          `protobuf:"bytes,24,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	WebhookId      string          `protobuf:"bytes,25,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
	CreatedAt      string          `protobuf:"bytes,41,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	OccurredAt     string          `protobuf:"bytes,42,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"`
	// contains filtered or unexported fields
}
{
   "event_id": "event-4e16ba3bd384",
   "event_key": "cfbdd0cee08f0f2664dbef297c370017",
   "event_type": "ALERT",
   "title": "Notification of access to the SpaceONE bastion Host",
   "description": "SSH Access to stargate-dev-kubectl-amzl2 from spaceoneadm",
   "severity": "INFO",
   "resource": {
       "resource_id": "server-1187737cc0d9",
       "resource_type": "inventory.Server",
       "name": "stargate-dev-kubectl-amzl2"
   },
   "raw_data": {
       "resource": {
           "name": "stargate-dev-kubectl-amzl2",
           "resource_id": "server-1187737cc0d9",
           "resource_type": "inventory.Server"
       },
       "event_key": "cfbdd0cee08f0f2664dbef297c370017",
       "title": "Notification of access to the SpaceONE bastion Host",
       "severity": "INFO",
       "description": "SSH Access to stargate-dev-kubectl-amzl2 from spaceoneadm",
       "event_type": "ALERT",
       "additional_info": {
           "host": [],
           "user": "spaceoneadm"
       }
   },
   "additional_info": {
       "host": "[]",
       "user": "spaceoneadm"
   },
   "alert_id": "alert-06462f6cb54e",
   "webhook_id": "webhook-ff9e2eda678a",
   "project_id": "project-18655561c535",
   "domain_id": "domain-58010aa2e451",
   "created_at": "2022-06-21T00:34:58.034Z"
}

func (*EventInfo) Descriptor deprecated

func (*EventInfo) Descriptor() ([]byte, []int)

Deprecated: Use EventInfo.ProtoReflect.Descriptor instead.

func (*EventInfo) GetAccount

func (x *EventInfo) GetAccount() string

func (*EventInfo) GetAdditionalInfo

func (x *EventInfo) GetAdditionalInfo() *_struct.Struct

func (*EventInfo) GetAlertId

func (x *EventInfo) GetAlertId() string

func (*EventInfo) GetCreatedAt

func (x *EventInfo) GetCreatedAt() string

func (*EventInfo) GetDescription

func (x *EventInfo) GetDescription() string

func (*EventInfo) GetDomainId

func (x *EventInfo) GetDomainId() string

func (*EventInfo) GetEventId

func (x *EventInfo) GetEventId() string

func (*EventInfo) GetEventKey

func (x *EventInfo) GetEventKey() string

func (*EventInfo) GetEventType

func (x *EventInfo) GetEventType() string

func (*EventInfo) GetImageUrl

func (x *EventInfo) GetImageUrl() string

func (*EventInfo) GetOccurredAt

func (x *EventInfo) GetOccurredAt() string

func (*EventInfo) GetProjectId

func (x *EventInfo) GetProjectId() string

func (*EventInfo) GetProvider

func (x *EventInfo) GetProvider() string

func (*EventInfo) GetRawData

func (x *EventInfo) GetRawData() *_struct.Struct

func (*EventInfo) GetResource

func (x *EventInfo) GetResource() *EventResource

func (*EventInfo) GetRule

func (x *EventInfo) GetRule() string

func (*EventInfo) GetSeverity

func (x *EventInfo) GetSeverity() string

func (*EventInfo) GetTitle

func (x *EventInfo) GetTitle() string

func (*EventInfo) GetWebhookId

func (x *EventInfo) GetWebhookId() string

func (*EventInfo) GetWorkspaceId

func (x *EventInfo) GetWorkspaceId() string

func (*EventInfo) ProtoMessage

func (*EventInfo) ProtoMessage()

func (*EventInfo) ProtoReflect

func (x *EventInfo) ProtoReflect() protoreflect.Message

func (*EventInfo) Reset

func (x *EventInfo) Reset()

func (*EventInfo) String

func (x *EventInfo) String() string

type EventQuery

type EventQuery struct {

	// +optional
	Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// +optional
	EventId string `protobuf:"bytes,2,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	// +optional
	EventKey string `protobuf:"bytes,3,opt,name=event_key,json=eventKey,proto3" json:"event_key,omitempty"`
	// +optional
	EventType string `protobuf:"bytes,4,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"`
	// +optional
	Severity string `protobuf:"bytes,5,opt,name=severity,proto3" json:"severity,omitempty"`
	// +optional
	ResourceId string `protobuf:"bytes,6,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// +optional
	Provider string `protobuf:"bytes,7,opt,name=provider,proto3" json:"provider,omitempty"`
	// +optional
	Account string `protobuf:"bytes,8,opt,name=account,proto3" json:"account,omitempty"`
	// +optional
	WorkspaceId string `protobuf:"bytes,21,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	// +optional
	ProjectId string `protobuf:"bytes,22,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// +optional
	AlertId string `protobuf:"bytes,23,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	// +optional
	WebhookId string `protobuf:"bytes,24,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "query": {},
   "domain_id": "domain-58010aa2e451"
}

func (*EventQuery) Descriptor deprecated

func (*EventQuery) Descriptor() ([]byte, []int)

Deprecated: Use EventQuery.ProtoReflect.Descriptor instead.

func (*EventQuery) GetAccount

func (x *EventQuery) GetAccount() string

func (*EventQuery) GetAlertId

func (x *EventQuery) GetAlertId() string

func (*EventQuery) GetEventId

func (x *EventQuery) GetEventId() string

func (*EventQuery) GetEventKey

func (x *EventQuery) GetEventKey() string

func (*EventQuery) GetEventType

func (x *EventQuery) GetEventType() string

func (*EventQuery) GetProjectId

func (x *EventQuery) GetProjectId() string

func (*EventQuery) GetProvider

func (x *EventQuery) GetProvider() string

func (*EventQuery) GetQuery

func (x *EventQuery) GetQuery() *v2.Query

func (*EventQuery) GetResourceId

func (x *EventQuery) GetResourceId() string

func (*EventQuery) GetSeverity

func (x *EventQuery) GetSeverity() string

func (*EventQuery) GetWebhookId

func (x *EventQuery) GetWebhookId() string

func (*EventQuery) GetWorkspaceId

func (x *EventQuery) GetWorkspaceId() string

func (*EventQuery) ProtoMessage

func (*EventQuery) ProtoMessage()

func (*EventQuery) ProtoReflect

func (x *EventQuery) ProtoReflect() protoreflect.Message

func (*EventQuery) Reset

func (x *EventQuery) Reset()

func (*EventQuery) String

func (x *EventQuery) String() string

type EventRequest

type EventRequest struct {
	EventId string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "event_id": "event-4e16ba3bd384",
}

func (*EventRequest) Descriptor deprecated

func (*EventRequest) Descriptor() ([]byte, []int)

Deprecated: Use EventRequest.ProtoReflect.Descriptor instead.

func (*EventRequest) GetEventId

func (x *EventRequest) GetEventId() string

func (*EventRequest) ProtoMessage

func (*EventRequest) ProtoMessage()

func (*EventRequest) ProtoReflect

func (x *EventRequest) ProtoReflect() protoreflect.Message

func (*EventRequest) Reset

func (x *EventRequest) Reset()

func (*EventRequest) String

func (x *EventRequest) String() string

type EventResource

type EventResource struct {
	ResourceId   string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	ResourceType string `protobuf:"bytes,2,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	Name         string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*EventResource) Descriptor deprecated

func (*EventResource) Descriptor() ([]byte, []int)

Deprecated: Use EventResource.ProtoReflect.Descriptor instead.

func (*EventResource) GetName

func (x *EventResource) GetName() string

func (*EventResource) GetResourceId

func (x *EventResource) GetResourceId() string

func (*EventResource) GetResourceType

func (x *EventResource) GetResourceType() string

func (*EventResource) ProtoMessage

func (*EventResource) ProtoMessage()

func (*EventResource) ProtoReflect

func (x *EventResource) ProtoReflect() protoreflect.Message

func (*EventResource) Reset

func (x *EventResource) Reset()

func (*EventResource) String

func (x *EventResource) String() string

type EventRuleActionResponder

type EventRuleActionResponder struct {
	ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	ResourceId   string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRuleActionResponder) Descriptor deprecated

func (*EventRuleActionResponder) Descriptor() ([]byte, []int)

Deprecated: Use EventRuleActionResponder.ProtoReflect.Descriptor instead.

func (*EventRuleActionResponder) GetResourceId

func (x *EventRuleActionResponder) GetResourceId() string

func (*EventRuleActionResponder) GetResourceType

func (x *EventRuleActionResponder) GetResourceType() string

func (*EventRuleActionResponder) ProtoMessage

func (*EventRuleActionResponder) ProtoMessage()

func (*EventRuleActionResponder) ProtoReflect

func (x *EventRuleActionResponder) ProtoReflect() protoreflect.Message

func (*EventRuleActionResponder) Reset

func (x *EventRuleActionResponder) Reset()

func (*EventRuleActionResponder) String

func (x *EventRuleActionResponder) String() string

type EventRuleActions

type EventRuleActions struct {
	ChangeAssignee         string          `protobuf:"bytes,1,opt,name=change_assignee,json=changeAssignee,proto3" json:"change_assignee,omitempty"`
	ChangeUrgency          string          `protobuf:"bytes,2,opt,name=change_urgency,json=changeUrgency,proto3" json:"change_urgency,omitempty"`
	ChangeProject          string          `protobuf:"bytes,3,opt,name=change_project,json=changeProject,proto3" json:"change_project,omitempty"`
	ChangeEscalationPolicy string          `` /* 129-byte string literal not displayed */
	MatchServiceAccount    *MatchRule      `protobuf:"bytes,5,opt,name=match_service_account,json=matchServiceAccount,proto3" json:"match_service_account,omitempty"`
	AddAdditionalInfo      *_struct.Struct `protobuf:"bytes,6,opt,name=add_additional_info,json=addAdditionalInfo,proto3" json:"add_additional_info,omitempty"`
	NoNotification         bool            `protobuf:"varint,7,opt,name=no_notification,json=noNotification,proto3" json:"no_notification,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRuleActions) Descriptor deprecated

func (*EventRuleActions) Descriptor() ([]byte, []int)

Deprecated: Use EventRuleActions.ProtoReflect.Descriptor instead.

func (*EventRuleActions) GetAddAdditionalInfo

func (x *EventRuleActions) GetAddAdditionalInfo() *_struct.Struct

func (*EventRuleActions) GetChangeAssignee

func (x *EventRuleActions) GetChangeAssignee() string

func (*EventRuleActions) GetChangeEscalationPolicy

func (x *EventRuleActions) GetChangeEscalationPolicy() string

func (*EventRuleActions) GetChangeProject

func (x *EventRuleActions) GetChangeProject() string

func (*EventRuleActions) GetChangeUrgency

func (x *EventRuleActions) GetChangeUrgency() string

func (*EventRuleActions) GetMatchServiceAccount

func (x *EventRuleActions) GetMatchServiceAccount() *MatchRule

func (*EventRuleActions) GetNoNotification

func (x *EventRuleActions) GetNoNotification() bool

func (*EventRuleActions) ProtoMessage

func (*EventRuleActions) ProtoMessage()

func (*EventRuleActions) ProtoReflect

func (x *EventRuleActions) ProtoReflect() protoreflect.Message

func (*EventRuleActions) Reset

func (x *EventRuleActions) Reset()

func (*EventRuleActions) String

func (x *EventRuleActions) String() string

type EventRuleClient

type EventRuleClient interface {
	// Creates a new EventRule. You can filter the Events to apply the EventRule by setting the input parameter `Conditions`. The method can change the Events' assignee or Project.
	Create(ctx context.Context, in *CreateEventRuleRequest, opts ...grpc.CallOption) (*EventRuleInfo, error)
	// Changes a priority order between EventRules to apply. EventRules are filtered by the order configured.
	Update(ctx context.Context, in *UpdateEventRuleRequest, opts ...grpc.CallOption) (*EventRuleInfo, error)
	// Updates a specific EventRule. You can make changes in EventRule settings.
	ChangeOrder(ctx context.Context, in *ChangeEventRuleOrderRequest, opts ...grpc.CallOption) (*EventRuleInfo, error)
	// Deletes a specific EventRule. You must assign an EventRule resource to delete by specifying `event_rule_id`.
	Delete(ctx context.Context, in *EventRuleRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets a specific EventRule. Prints detailed information about the EventRule.
	Get(ctx context.Context, in *EventRuleRequest, opts ...grpc.CallOption) (*EventRuleInfo, error)
	// Gets a list of all EventRules. You can use a query to get a filtered list of EventRules. For example, you can adjust the scope of the list to a certain Project or Domain.
	List(ctx context.Context, in *EventRuleQuery, opts ...grpc.CallOption) (*EventRulesInfo, error)
	Stat(ctx context.Context, in *EventRuleStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error)
}

EventRuleClient is the client API for EventRule 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 NewEventRuleClient

func NewEventRuleClient(cc grpc.ClientConnInterface) EventRuleClient

type EventRuleCondition

type EventRuleCondition struct {
	Key      string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value    string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRuleCondition) Descriptor deprecated

func (*EventRuleCondition) Descriptor() ([]byte, []int)

Deprecated: Use EventRuleCondition.ProtoReflect.Descriptor instead.

func (*EventRuleCondition) GetKey

func (x *EventRuleCondition) GetKey() string

func (*EventRuleCondition) GetOperator

func (x *EventRuleCondition) GetOperator() string

func (*EventRuleCondition) GetValue

func (x *EventRuleCondition) GetValue() string

func (*EventRuleCondition) ProtoMessage

func (*EventRuleCondition) ProtoMessage()

func (*EventRuleCondition) ProtoReflect

func (x *EventRuleCondition) ProtoReflect() protoreflect.Message

func (*EventRuleCondition) Reset

func (x *EventRuleCondition) Reset()

func (*EventRuleCondition) String

func (x *EventRuleCondition) String() string

type EventRuleInfo

type EventRuleInfo struct {
	EventRuleId      string                         `protobuf:"bytes,1,opt,name=event_rule_id,json=eventRuleId,proto3" json:"event_rule_id,omitempty"`
	Name             string                         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Order            int32                          `protobuf:"varint,3,opt,name=order,proto3" json:"order,omitempty"`
	Conditions       []*EventRuleCondition          `protobuf:"bytes,4,rep,name=conditions,proto3" json:"conditions,omitempty"`
	ConditionsPolicy EventRuleInfo_ConditionsPolicy `` /* 173-byte string literal not displayed */
	Actions          *EventRuleActions              `protobuf:"bytes,6,opt,name=actions,proto3" json:"actions,omitempty"`
	Options          *EventRuleOptions              `protobuf:"bytes,7,opt,name=options,proto3" json:"options,omitempty"`
	Tags             *_struct.Struct                `protobuf:"bytes,8,opt,name=tags,proto3" json:"tags,omitempty"`
	ResourceGroup    EventRuleInfo_ResourceGroup    `` /* 162-byte string literal not displayed */
	DomainId         string                         `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	WorkspaceId      string                         `protobuf:"bytes,22,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	ProjectId        string                         `protobuf:"bytes,23,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CreatedAt        string                         `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}
{
     "event_rule_id": "er-123456789012",
     "order": 1,
     "conditions": [
     {
     "key": "description",
     "value": "API",
     "operator": "contain"
     }
     ],
     "conditions_policy": "ALL",
     "actions": {
     "change_assignee": "user1@email.com",
     "change_urgency": "LOW",
     "change_project": "project-123456789012",
     "add_additional_info": {
     "type": "personal rule"
     },
     "no_notification": true
     },
     "options": {},
     "scope": "PROJECT",
     "project_id": "project-123456789012",
     "tags": {},
     "domain_id": "domain-123456789012",
     "created_at": "2022-01-02T06:02:31.517Z"
}

func (*EventRuleInfo) Descriptor deprecated

func (*EventRuleInfo) Descriptor() ([]byte, []int)

Deprecated: Use EventRuleInfo.ProtoReflect.Descriptor instead.

func (*EventRuleInfo) GetActions

func (x *EventRuleInfo) GetActions() *EventRuleActions

func (*EventRuleInfo) GetConditions

func (x *EventRuleInfo) GetConditions() []*EventRuleCondition

func (*EventRuleInfo) GetConditionsPolicy

func (x *EventRuleInfo) GetConditionsPolicy() EventRuleInfo_ConditionsPolicy

func (*EventRuleInfo) GetCreatedAt

func (x *EventRuleInfo) GetCreatedAt() string

func (*EventRuleInfo) GetDomainId

func (x *EventRuleInfo) GetDomainId() string

func (*EventRuleInfo) GetEventRuleId

func (x *EventRuleInfo) GetEventRuleId() string

func (*EventRuleInfo) GetName

func (x *EventRuleInfo) GetName() string

func (*EventRuleInfo) GetOptions

func (x *EventRuleInfo) GetOptions() *EventRuleOptions

func (*EventRuleInfo) GetOrder

func (x *EventRuleInfo) GetOrder() int32

func (*EventRuleInfo) GetProjectId

func (x *EventRuleInfo) GetProjectId() string

func (*EventRuleInfo) GetResourceGroup

func (x *EventRuleInfo) GetResourceGroup() EventRuleInfo_ResourceGroup

func (*EventRuleInfo) GetTags

func (x *EventRuleInfo) GetTags() *_struct.Struct

func (*EventRuleInfo) GetWorkspaceId

func (x *EventRuleInfo) GetWorkspaceId() string

func (*EventRuleInfo) ProtoMessage

func (*EventRuleInfo) ProtoMessage()

func (*EventRuleInfo) ProtoReflect

func (x *EventRuleInfo) ProtoReflect() protoreflect.Message

func (*EventRuleInfo) Reset

func (x *EventRuleInfo) Reset()

func (*EventRuleInfo) String

func (x *EventRuleInfo) String() string

type EventRuleInfo_ConditionsPolicy

type EventRuleInfo_ConditionsPolicy int32
const (
	EventRuleInfo_NONE   EventRuleInfo_ConditionsPolicy = 0
	EventRuleInfo_ALL    EventRuleInfo_ConditionsPolicy = 1
	EventRuleInfo_ANY    EventRuleInfo_ConditionsPolicy = 2
	EventRuleInfo_ALWAYS EventRuleInfo_ConditionsPolicy = 3
)

func (EventRuleInfo_ConditionsPolicy) Descriptor

func (EventRuleInfo_ConditionsPolicy) Enum

func (EventRuleInfo_ConditionsPolicy) EnumDescriptor deprecated

func (EventRuleInfo_ConditionsPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventRuleInfo_ConditionsPolicy.Descriptor instead.

func (EventRuleInfo_ConditionsPolicy) Number

func (EventRuleInfo_ConditionsPolicy) String

func (EventRuleInfo_ConditionsPolicy) Type

type EventRuleInfo_ResourceGroup

type EventRuleInfo_ResourceGroup int32
const (
	EventRuleInfo_RESOURCE_GROUP_NONE EventRuleInfo_ResourceGroup = 0
	EventRuleInfo_WORKSPACE           EventRuleInfo_ResourceGroup = 1
	EventRuleInfo_PROJECT             EventRuleInfo_ResourceGroup = 2
)

func (EventRuleInfo_ResourceGroup) Descriptor

func (EventRuleInfo_ResourceGroup) Enum

func (EventRuleInfo_ResourceGroup) EnumDescriptor deprecated

func (EventRuleInfo_ResourceGroup) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventRuleInfo_ResourceGroup.Descriptor instead.

func (EventRuleInfo_ResourceGroup) Number

func (EventRuleInfo_ResourceGroup) String

func (EventRuleInfo_ResourceGroup) Type

type EventRuleOptions

type EventRuleOptions struct {
	StopProcessing bool `protobuf:"varint,1,opt,name=stop_processing,json=stopProcessing,proto3" json:"stop_processing,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRuleOptions) Descriptor deprecated

func (*EventRuleOptions) Descriptor() ([]byte, []int)

Deprecated: Use EventRuleOptions.ProtoReflect.Descriptor instead.

func (*EventRuleOptions) GetStopProcessing

func (x *EventRuleOptions) GetStopProcessing() bool

func (*EventRuleOptions) ProtoMessage

func (*EventRuleOptions) ProtoMessage()

func (*EventRuleOptions) ProtoReflect

func (x *EventRuleOptions) ProtoReflect() protoreflect.Message

func (*EventRuleOptions) Reset

func (x *EventRuleOptions) Reset()

func (*EventRuleOptions) String

func (x *EventRuleOptions) String() string

type EventRuleQuery

type EventRuleQuery struct {

	// +optional
	Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// +optional
	EventRuleId string `protobuf:"bytes,2,opt,name=event_rule_id,json=eventRuleId,proto3" json:"event_rule_id,omitempty"`
	// +optional
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// +optional
	WorkspaceId string `protobuf:"bytes,21,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	// +optional
	ProjectId string `protobuf:"bytes,22,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "project_id": "project-123456789012",
   "domain_id": "domain-123456789012"
}

func (*EventRuleQuery) Descriptor deprecated

func (*EventRuleQuery) Descriptor() ([]byte, []int)

Deprecated: Use EventRuleQuery.ProtoReflect.Descriptor instead.

func (*EventRuleQuery) GetEventRuleId

func (x *EventRuleQuery) GetEventRuleId() string

func (*EventRuleQuery) GetName

func (x *EventRuleQuery) GetName() string

func (*EventRuleQuery) GetProjectId

func (x *EventRuleQuery) GetProjectId() string

func (*EventRuleQuery) GetQuery

func (x *EventRuleQuery) GetQuery() *v2.Query

func (*EventRuleQuery) GetWorkspaceId

func (x *EventRuleQuery) GetWorkspaceId() string

func (*EventRuleQuery) ProtoMessage

func (*EventRuleQuery) ProtoMessage()

func (*EventRuleQuery) ProtoReflect

func (x *EventRuleQuery) ProtoReflect() protoreflect.Message

func (*EventRuleQuery) Reset

func (x *EventRuleQuery) Reset()

func (*EventRuleQuery) String

func (x *EventRuleQuery) String() string

type EventRuleRequest

type EventRuleRequest struct {
	EventRuleId string `protobuf:"bytes,1,opt,name=event_rule_id,json=eventRuleId,proto3" json:"event_rule_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "event_rule_id": "er-123456789012",
   "order": 2,
   "domain_id": "domain-123456789012"
}

func (*EventRuleRequest) Descriptor deprecated

func (*EventRuleRequest) Descriptor() ([]byte, []int)

Deprecated: Use EventRuleRequest.ProtoReflect.Descriptor instead.

func (*EventRuleRequest) GetEventRuleId

func (x *EventRuleRequest) GetEventRuleId() string

func (*EventRuleRequest) ProtoMessage

func (*EventRuleRequest) ProtoMessage()

func (*EventRuleRequest) ProtoReflect

func (x *EventRuleRequest) ProtoReflect() protoreflect.Message

func (*EventRuleRequest) Reset

func (x *EventRuleRequest) Reset()

func (*EventRuleRequest) String

func (x *EventRuleRequest) String() string

type EventRuleServer

type EventRuleServer interface {
	// Creates a new EventRule. You can filter the Events to apply the EventRule by setting the input parameter `Conditions`. The method can change the Events' assignee or Project.
	Create(context.Context, *CreateEventRuleRequest) (*EventRuleInfo, error)
	// Changes a priority order between EventRules to apply. EventRules are filtered by the order configured.
	Update(context.Context, *UpdateEventRuleRequest) (*EventRuleInfo, error)
	// Updates a specific EventRule. You can make changes in EventRule settings.
	ChangeOrder(context.Context, *ChangeEventRuleOrderRequest) (*EventRuleInfo, error)
	// Deletes a specific EventRule. You must assign an EventRule resource to delete by specifying `event_rule_id`.
	Delete(context.Context, *EventRuleRequest) (*empty.Empty, error)
	// Gets a specific EventRule. Prints detailed information about the EventRule.
	Get(context.Context, *EventRuleRequest) (*EventRuleInfo, error)
	// Gets a list of all EventRules. You can use a query to get a filtered list of EventRules. For example, you can adjust the scope of the list to a certain Project or Domain.
	List(context.Context, *EventRuleQuery) (*EventRulesInfo, error)
	Stat(context.Context, *EventRuleStatQuery) (*_struct.Struct, error)
	// contains filtered or unexported methods
}

EventRuleServer is the server API for EventRule service. All implementations must embed UnimplementedEventRuleServer for forward compatibility

type EventRuleStatQuery

type EventRuleStatQuery struct {
	Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*EventRuleStatQuery) Descriptor deprecated

func (*EventRuleStatQuery) Descriptor() ([]byte, []int)

Deprecated: Use EventRuleStatQuery.ProtoReflect.Descriptor instead.

func (*EventRuleStatQuery) GetQuery

func (x *EventRuleStatQuery) GetQuery() *v2.StatisticsQuery

func (*EventRuleStatQuery) ProtoMessage

func (*EventRuleStatQuery) ProtoMessage()

func (*EventRuleStatQuery) ProtoReflect

func (x *EventRuleStatQuery) ProtoReflect() protoreflect.Message

func (*EventRuleStatQuery) Reset

func (x *EventRuleStatQuery) Reset()

func (*EventRuleStatQuery) String

func (x *EventRuleStatQuery) String() string

type EventRulesInfo

type EventRulesInfo struct {
	Results    []*EventRuleInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	TotalCount int32            `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}
{
     "results": [
     {
     "event_rule_id": "er-123456789012",
     "order": 1,
     "conditions": [
     {
     "key": "title",
     "value": "AWS",
     "operator": "contain"
     }
     ],
     "conditions_policy": "ALL",
     "actions": {
     "change_assignee": "user2@email.com",
     "change_urgency": "HIGH",
     "add_additional_info": {},
     "no_notification": true
     },
     "options": {},
     "scope": "PROJECT",
     "project_id": "project-123456789012",
     "tags": {},
     "domain_id": "domain-123456789012",
     "created_at": "2022-01-01T06:33:58.388Z"
     },
     {
     "event_rule_id": "er-123456789012",
     "order": 2,
     "conditions": [
     {
     "key": "title",
     "value": "ELB",
     "operator": "contain"
     }
     ],
     "conditions_policy": "ALL",
     "actions": {
     "change_assignee": "user1@email.com",
     "change_urgency": "LOW",
     "change_project": "project-123456789012",
     "add_additional_info": {},
     "no_notification": true
     },
     "options": {},
     "scope": "PROJECT",
     "project_id": "project-123456789012",
     "tags": {},
     "domain_id": "domain-123456789012",
     "created_at": "2022-01-01T06:12:30.226Z"
     }
     ],
     "total_count": 2
}

func (*EventRulesInfo) Descriptor deprecated

func (*EventRulesInfo) Descriptor() ([]byte, []int)

Deprecated: Use EventRulesInfo.ProtoReflect.Descriptor instead.

func (*EventRulesInfo) GetResults

func (x *EventRulesInfo) GetResults() []*EventRuleInfo

func (*EventRulesInfo) GetTotalCount

func (x *EventRulesInfo) GetTotalCount() int32

func (*EventRulesInfo) ProtoMessage

func (*EventRulesInfo) ProtoMessage()

func (*EventRulesInfo) ProtoReflect

func (x *EventRulesInfo) ProtoReflect() protoreflect.Message

func (*EventRulesInfo) Reset

func (x *EventRulesInfo) Reset()

func (*EventRulesInfo) String

func (x *EventRulesInfo) String() string

type EventServer

type EventServer interface {
	// Creates a new Event. The Event creation process starts with validation checking whether the input data is from a webhook or not. After the input data is validated, the data is processed and used to create the Event.
	Create(context.Context, *CreateEventRequest) (*empty.Empty, error)
	// Gets a specific Event matching the input parameters, `event_id` and `domain_id`. Prints detailed information about the Event.
	Get(context.Context, *EventRequest) (*EventInfo, error)
	// Gets a list of all Events. You must specify the `domain_id`. You can use a query to get a filtered list of Events.
	List(context.Context, *EventQuery) (*EventsInfo, error)
	Stat(context.Context, *EventStatQuery) (*_struct.Struct, error)
	// contains filtered or unexported methods
}

EventServer is the server API for Event service. All implementations must embed UnimplementedEventServer for forward compatibility

type EventStatQuery

type EventStatQuery struct {
	Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*EventStatQuery) Descriptor deprecated

func (*EventStatQuery) Descriptor() ([]byte, []int)

Deprecated: Use EventStatQuery.ProtoReflect.Descriptor instead.

func (*EventStatQuery) GetQuery

func (x *EventStatQuery) GetQuery() *v2.StatisticsQuery

func (*EventStatQuery) ProtoMessage

func (*EventStatQuery) ProtoMessage()

func (*EventStatQuery) ProtoReflect

func (x *EventStatQuery) ProtoReflect() protoreflect.Message

func (*EventStatQuery) Reset

func (x *EventStatQuery) Reset()

func (*EventStatQuery) String

func (x *EventStatQuery) String() string

type EventsInfo

type EventsInfo struct {
	Results    []*EventInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	TotalCount int32        `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}
{
       "results": [
           {
               "event_id": "event-4e16ba3bd384",
               "event_key": "cfbdd0cee08f0f2664dbef297c370017",
               "event_type": "ALERT",
               "title": "Notification of access to the SpaceONE bastion Host",
               "description": "SSH Access to stargate-dev-kubectl-amzl2 from spaceoneadm",
               "severity": "INFO",
               "resource": {
                   "resource_id": "server-1187737cc0d9",
                   "resource_type": "inventory.Server",
                   "name": "stargate-dev-kubectl-amzl2"
               },
               "raw_data": {
                   "resource": {
                       "name": "stargate-dev-kubectl-amzl2",
                       "resource_type": "inventory.Server",
                       "resource_id": "server-1187737cc0d9"
                   },
                   "event_key": "cfbdd0cee08f0f2664dbef297c370017",
                   "additional_info": {
                       "user": "spaceoneadm",
                       "host": []
                   },
                   "severity": "INFO",
                   "description": "SSH Access to stargate-dev-kubectl-amzl2 from spaceoneadm",
                   "title": "Notification of access to the SpaceONE bastion Host",
                   "event_type": "ALERT"
               },
               "additional_info": {
                   "user": "spaceoneadm",
                   "host": "[]"
               },
               "alert_id": "alert-06462f6cb54e",
               "webhook_id": "webhook-ff9e2eda678a",
               "project_id": "project-18655561c535",
               "domain_id": "domain-58010aa2e451",
               "created_at": "2022-06-21T00:34:58.034Z"
           },
           {
               "event_id": "event-b178e1b71daf",
               "event_key": "abc16e5455c26ab7611bf8aa8d1020cc",
               "event_type": "ALERT",
               "title": "Notification of access to the SpaceONE bastion Host",
               "description": "SSH Access to stargate-dev-kubectl-amzl2 from glee@mz.co.kr",
               "severity": "INFO",
               "resource": {
                   "resource_id": "server-1187737cc0d9",
                   "resource_type": "inventory.Server",
                   "name": "stargate-dev-kubectl-amzl2"
               },
               "raw_data": {
                   "additional_info": {
                       "host": [
                           "125.131.104.40"
                       ],
                       "user": "glee@mz.co.kr"
                   },
                   "description": "SSH Access to stargate-dev-kubectl-amzl2 from glee@mz.co.kr",
                   "severity": "INFO",
                   "event_type": "ALERT",
                   "title": "Notification of access to the SpaceONE bastion Host",
                   "resource": {
                       "resource_type": "inventory.Server",
                       "name": "stargate-dev-kubectl-amzl2",
                       "resource_id": "server-1187737cc0d9"
                   },
                   "event_key": "abc16e5455c26ab7611bf8aa8d1020cc"
               },
               "additional_info": {
                   "user": "glee@mz.co.kr",
                   "host": "['125.131.104.40']"
               },
               "alert_id": "alert-332617cf2894",
               "webhook_id": "webhook-ff9e2eda678a",
               "project_id": "project-18655561c535",
               "domain_id": "domain-58010aa2e451",
               "created_at": "2022-06-21T00:34:52.822Z"
           }
       ],
       "total_count": 2
}

func (*EventsInfo) Descriptor deprecated

func (*EventsInfo) Descriptor() ([]byte, []int)

Deprecated: Use EventsInfo.ProtoReflect.Descriptor instead.

func (*EventsInfo) GetResults

func (x *EventsInfo) GetResults() []*EventInfo

func (*EventsInfo) GetTotalCount

func (x *EventsInfo) GetTotalCount() int32

func (*EventsInfo) ProtoMessage

func (*EventsInfo) ProtoMessage()

func (*EventsInfo) ProtoReflect

func (x *EventsInfo) ProtoReflect() protoreflect.Message

func (*EventsInfo) Reset

func (x *EventsInfo) Reset()

func (*EventsInfo) String

func (x *EventsInfo) String() string

type LogClient

type LogClient interface {
	List(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*LogDataInfo, error)
}

LogClient is the client API for Log 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 NewLogClient

func NewLogClient(cc grpc.ClientConnInterface) LogClient

type LogDataInfo

type LogDataInfo struct {
	Results  *_struct.ListValue `protobuf:"bytes,1,opt,name=results,proto3" json:"results,omitempty"`
	DomainId string             `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LogDataInfo) Descriptor deprecated

func (*LogDataInfo) Descriptor() ([]byte, []int)

Deprecated: Use LogDataInfo.ProtoReflect.Descriptor instead.

func (*LogDataInfo) GetDomainId

func (x *LogDataInfo) GetDomainId() string

func (*LogDataInfo) GetResults

func (x *LogDataInfo) GetResults() *_struct.ListValue

func (*LogDataInfo) ProtoMessage

func (*LogDataInfo) ProtoMessage()

func (*LogDataInfo) ProtoReflect

func (x *LogDataInfo) ProtoReflect() protoreflect.Message

func (*LogDataInfo) Reset

func (x *LogDataInfo) Reset()

func (*LogDataInfo) String

func (x *LogDataInfo) String() string

type LogRequest

type LogRequest struct {
	DataSourceId string `protobuf:"bytes,1,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	ResourceId   string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// +optional
	Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"`
	// +optional
	Start string `protobuf:"bytes,10,opt,name=start,proto3" json:"start,omitempty"`
	// +optional
	End string `protobuf:"bytes,11,opt,name=end,proto3" json:"end,omitempty"`
	// +optional
	Sort *_struct.Struct `protobuf:"bytes,15,opt,name=sort,proto3" json:"sort,omitempty"`
	// +optional
	Limit int32 `protobuf:"varint,16,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*LogRequest) Descriptor deprecated

func (*LogRequest) Descriptor() ([]byte, []int)

Deprecated: Use LogRequest.ProtoReflect.Descriptor instead.

func (*LogRequest) GetDataSourceId

func (x *LogRequest) GetDataSourceId() string

func (*LogRequest) GetEnd

func (x *LogRequest) GetEnd() string

func (*LogRequest) GetKeyword

func (x *LogRequest) GetKeyword() string

func (*LogRequest) GetLimit

func (x *LogRequest) GetLimit() int32

func (*LogRequest) GetResourceId

func (x *LogRequest) GetResourceId() string

func (*LogRequest) GetSort

func (x *LogRequest) GetSort() *_struct.Struct

func (*LogRequest) GetStart

func (x *LogRequest) GetStart() string

func (*LogRequest) ProtoMessage

func (*LogRequest) ProtoMessage()

func (*LogRequest) ProtoReflect

func (x *LogRequest) ProtoReflect() protoreflect.Message

func (*LogRequest) Reset

func (x *LogRequest) Reset()

func (*LogRequest) String

func (x *LogRequest) String() string

type LogServer

type LogServer interface {
	List(context.Context, *LogRequest) (*LogDataInfo, error)
	// contains filtered or unexported methods
}

LogServer is the server API for Log service. All implementations must embed UnimplementedLogServer for forward compatibility

type MatchRule

type MatchRule struct {
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

func (*MatchRule) Descriptor deprecated

func (*MatchRule) Descriptor() ([]byte, []int)

Deprecated: Use MatchRule.ProtoReflect.Descriptor instead.

func (*MatchRule) GetSource

func (x *MatchRule) GetSource() string

func (*MatchRule) GetTarget

func (x *MatchRule) GetTarget() string

func (*MatchRule) ProtoMessage

func (*MatchRule) ProtoMessage()

func (*MatchRule) ProtoReflect

func (x *MatchRule) ProtoReflect() protoreflect.Message

func (*MatchRule) Reset

func (x *MatchRule) Reset()

func (*MatchRule) String

func (x *MatchRule) String() string

type MetricClient

type MetricClient interface {
	// Gets a list of all Metrics of one or more specified Resources. The parameter `resources` is a list of Resources from which to get a list of Metrics collected.
	List(ctx context.Context, in *MetricRequest, opts ...grpc.CallOption) (*MetricsInfo, error)
	// Gets data of a single Metric. You must specify the parameter `metric` to get data of. You can specify the `period` to get data for.
	GetData(ctx context.Context, in *MetricDataRequest, opts ...grpc.CallOption) (*MetricDataInfo, error)
}

MetricClient is the client API for Metric 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 NewMetricClient

func NewMetricClient(cc grpc.ClientConnInterface) MetricClient

type MetricDataInfo

type MetricDataInfo struct {
	Labels   *_struct.ListValue `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels,omitempty"`
	Values   *_struct.Struct    `protobuf:"bytes,2,opt,name=values,proto3" json:"values,omitempty"`
	DomainId string             `protobuf:"bytes,3,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "labels": [
       "2022-06-21T03:13:00.000Z",
       "2022-06-21T03:18:00.000Z",
       "2022-06-21T03:23:00.000Z",
       "2022-06-21T03:28:00.000Z",
       "2022-06-21T03:33:00.000Z",
       "2022-06-21T03:38:00.000Z",
       "2022-06-21T03:43:00.000Z",
       "2022-06-21T03:48:00.000Z",
       "2022-06-21T03:53:00.000Z",
       "2022-06-21T03:58:00.000Z",
       "2022-06-21T04:03:00.000Z",
       "2022-06-21T04:08:00.000Z"
   ],
   "resource_values": {
       "cloud-svc-cd0105d255da": [
           0.099999999999999,
           0.10001852366397981,
           0.10001852366397981,
           0.1328230362675432,
           0.099472075576548,
           0.06507936507936621,
           0.166703713994628,
           0.1338983050847476,
           0.1327868852458988,
           0.1339168287487284,
           0.1328610417160508,
           0.10056497175141618
       ]
   },
   "domain_id": "domain-58010aa2e451"
}

func (*MetricDataInfo) Descriptor deprecated

func (*MetricDataInfo) Descriptor() ([]byte, []int)

Deprecated: Use MetricDataInfo.ProtoReflect.Descriptor instead.

func (*MetricDataInfo) GetDomainId

func (x *MetricDataInfo) GetDomainId() string

func (*MetricDataInfo) GetLabels

func (x *MetricDataInfo) GetLabels() *_struct.ListValue

func (*MetricDataInfo) GetValues

func (x *MetricDataInfo) GetValues() *_struct.Struct

func (*MetricDataInfo) ProtoMessage

func (*MetricDataInfo) ProtoMessage()

func (*MetricDataInfo) ProtoReflect

func (x *MetricDataInfo) ProtoReflect() protoreflect.Message

func (*MetricDataInfo) Reset

func (x *MetricDataInfo) Reset()

func (*MetricDataInfo) String

func (x *MetricDataInfo) String() string

type MetricDataRequest

type MetricDataRequest struct {
	DataSourceId string          `protobuf:"bytes,1,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	MetricQuery  *_struct.Struct `protobuf:"bytes,2,opt,name=metric_query,json=metricQuery,proto3" json:"metric_query,omitempty"`
	Metric       string          `protobuf:"bytes,3,opt,name=metric,proto3" json:"metric,omitempty"`
	Start        string          `protobuf:"bytes,10,opt,name=start,proto3" json:"start,omitempty"`
	End          string          `protobuf:"bytes,11,opt,name=end,proto3" json:"end,omitempty"`
	// +optional
	Period int32 `protobuf:"varint,12,opt,name=period,proto3" json:"period,omitempty"`
	// +optional
	Stat string `protobuf:"bytes,13,opt,name=stat,proto3" json:"stat,omitempty"`
	// contains filtered or unexported fields
}
{
   "data_source_id": "ds-31190a65a42a",
   "metric_query": {
       "cloud-svc-cd0105d255da": {
           "Dimensions": [
               {
                   "Name": "InstanceId",
                   "Value": "i-0400cdd39f1a4d5e9"
               }
           ],
           "MetricName": "CPUUtilization",
           "Namespace": "AWS/EC2"
       }
   },
   "metric": "CPUUtilization",
   "start": "2022-06-21T03:11:29.438Z",
   "end": "2022-06-21T04:11:29.438Z",
   "stat": "AVERAGE",
   "domain_id": "domain-58010aa2e451"
}

func (*MetricDataRequest) Descriptor deprecated

func (*MetricDataRequest) Descriptor() ([]byte, []int)

Deprecated: Use MetricDataRequest.ProtoReflect.Descriptor instead.

func (*MetricDataRequest) GetDataSourceId

func (x *MetricDataRequest) GetDataSourceId() string

func (*MetricDataRequest) GetEnd

func (x *MetricDataRequest) GetEnd() string

func (*MetricDataRequest) GetMetric

func (x *MetricDataRequest) GetMetric() string

func (*MetricDataRequest) GetMetricQuery

func (x *MetricDataRequest) GetMetricQuery() *_struct.Struct

func (*MetricDataRequest) GetPeriod

func (x *MetricDataRequest) GetPeriod() int32

func (*MetricDataRequest) GetStart

func (x *MetricDataRequest) GetStart() string

func (*MetricDataRequest) GetStat

func (x *MetricDataRequest) GetStat() string

func (*MetricDataRequest) ProtoMessage

func (*MetricDataRequest) ProtoMessage()

func (*MetricDataRequest) ProtoReflect

func (x *MetricDataRequest) ProtoReflect() protoreflect.Message

func (*MetricDataRequest) Reset

func (x *MetricDataRequest) Reset()

func (*MetricDataRequest) String

func (x *MetricDataRequest) String() string

type MetricInfo

type MetricInfo struct {
	Key         string          `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Name        string          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Group       string          `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
	Unit        *_struct.Struct `protobuf:"bytes,4,opt,name=unit,proto3" json:"unit,omitempty"`
	MetricQuery *_struct.Struct `protobuf:"bytes,5,opt,name=metric_query,json=metricQuery,proto3" json:"metric_query,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricInfo) Descriptor deprecated

func (*MetricInfo) Descriptor() ([]byte, []int)

Deprecated: Use MetricInfo.ProtoReflect.Descriptor instead.

func (*MetricInfo) GetGroup

func (x *MetricInfo) GetGroup() string

func (*MetricInfo) GetKey

func (x *MetricInfo) GetKey() string

func (*MetricInfo) GetMetricQuery

func (x *MetricInfo) GetMetricQuery() *_struct.Struct

func (*MetricInfo) GetName

func (x *MetricInfo) GetName() string

func (*MetricInfo) GetUnit

func (x *MetricInfo) GetUnit() *_struct.Struct

func (*MetricInfo) ProtoMessage

func (*MetricInfo) ProtoMessage()

func (*MetricInfo) ProtoReflect

func (x *MetricInfo) ProtoReflect() protoreflect.Message

func (*MetricInfo) Reset

func (x *MetricInfo) Reset()

func (*MetricInfo) String

func (x *MetricInfo) String() string

type MetricRequest

type MetricRequest struct {
	DataSourceId string   `protobuf:"bytes,1,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	Resources    []string `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}
{
   "data_source_id": "ds-31190a65a42a",
   "resources": ["cloud-svc-cd0105d255da"],
   "domain_id": "domain-58010aa2e451"
}

func (*MetricRequest) Descriptor deprecated

func (*MetricRequest) Descriptor() ([]byte, []int)

Deprecated: Use MetricRequest.ProtoReflect.Descriptor instead.

func (*MetricRequest) GetDataSourceId

func (x *MetricRequest) GetDataSourceId() string

func (*MetricRequest) GetResources

func (x *MetricRequest) GetResources() []string

func (*MetricRequest) ProtoMessage

func (*MetricRequest) ProtoMessage()

func (*MetricRequest) ProtoReflect

func (x *MetricRequest) ProtoReflect() protoreflect.Message

func (*MetricRequest) Reset

func (x *MetricRequest) Reset()

func (*MetricRequest) String

func (x *MetricRequest) String() string

type MetricServer

type MetricServer interface {
	// Gets a list of all Metrics of one or more specified Resources. The parameter `resources` is a list of Resources from which to get a list of Metrics collected.
	List(context.Context, *MetricRequest) (*MetricsInfo, error)
	// Gets data of a single Metric. You must specify the parameter `metric` to get data of. You can specify the `period` to get data for.
	GetData(context.Context, *MetricDataRequest) (*MetricDataInfo, error)
	// contains filtered or unexported methods
}

MetricServer is the server API for Metric service. All implementations must embed UnimplementedMetricServer for forward compatibility

type MetricsInfo

type MetricsInfo struct {
	Metrics            []*MetricInfo   `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	AvailableResources *_struct.Struct `protobuf:"bytes,2,opt,name=available_resources,json=availableResources,proto3" json:"available_resources,omitempty"`
	DomainId           string          `protobuf:"bytes,3,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "metrics": [
       {
           "key": "CPUUtilization",
           "group": "AWS/EC2",
           "name": "CPUUtilization",
           "unit": {
               "y": "Percent",
               "x": "Timestamp"
           },
           "metric_query": {
               "cloud-svc-cd0105d255da": {
                   "Dimensions": [
                       {
                           "Name": "InstanceId",
                           "Value": "i-0400cdd39f1a4d5e9"
                       }
                   ],
                   "MetricName": "CPUUtilization",
                   "Namespace": "AWS/EC2"
               }
           }
       },
       {
           "key": "NetworkIn",
           "group": "AWS/EC2",
           "name": "NetworkIn",
           "unit": {
               "y": "Bytes",
               "x": "Timestamp"
           },
           "metric_query": {
               "cloud-svc-cd0105d255da": {
                   "Dimensions": [
                       {
                           "Name": "InstanceId",
                           "Value": "i-0400cdd39f1a4d5e9"
                       }
                   ],
                   "MetricName": "NetworkIn",
                   "Namespace": "AWS/EC2"
               }
           }
       }
   ],
   "available_resources": {
       "cloud-svc-cd0105d255da": true
   },
   "domain_id": "domain-31190a65a42a"
}

func (*MetricsInfo) Descriptor deprecated

func (*MetricsInfo) Descriptor() ([]byte, []int)

Deprecated: Use MetricsInfo.ProtoReflect.Descriptor instead.

func (*MetricsInfo) GetAvailableResources

func (x *MetricsInfo) GetAvailableResources() *_struct.Struct

func (*MetricsInfo) GetDomainId

func (x *MetricsInfo) GetDomainId() string

func (*MetricsInfo) GetMetrics

func (x *MetricsInfo) GetMetrics() []*MetricInfo

func (*MetricsInfo) ProtoMessage

func (*MetricsInfo) ProtoMessage()

func (*MetricsInfo) ProtoReflect

func (x *MetricsInfo) ProtoReflect() protoreflect.Message

func (*MetricsInfo) Reset

func (x *MetricsInfo) Reset()

func (*MetricsInfo) String

func (x *MetricsInfo) String() string

type MonitoringType

type MonitoringType int32
const (
	MonitoringType_NONE   MonitoringType = 0
	MonitoringType_METRIC MonitoringType = 1
	MonitoringType_LOG    MonitoringType = 2
)

func (MonitoringType) Descriptor

func (MonitoringType) Enum

func (x MonitoringType) Enum() *MonitoringType

func (MonitoringType) EnumDescriptor deprecated

func (MonitoringType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MonitoringType.Descriptor instead.

func (MonitoringType) Number

func (MonitoringType) String

func (x MonitoringType) String() string

func (MonitoringType) Type

type NoteClient

type NoteClient interface {
	// Creates a new Note. You can create Notes for each Alert to record the information needed to manage the Alerts.
	Create(ctx context.Context, in *CreateNoteRequest, opts ...grpc.CallOption) (*NoteInfo, error)
	// Updates a specific Note. You must specify the `note_id` for Note validation check. If the Note exists, it is updated.
	Update(ctx context.Context, in *UpdateNoteRequest, opts ...grpc.CallOption) (*NoteInfo, error)
	// Deletes a specific Note. You must specify the `note_id` of the Note to delete.
	Delete(ctx context.Context, in *NoteRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets a specific Note. You must specify the `note_id` and `domain_id`.
	Get(ctx context.Context, in *NoteRequest, opts ...grpc.CallOption) (*NoteInfo, error)
	// Gets a list of all Notes. You can use a query to get a filtered list of Notes.
	List(ctx context.Context, in *NoteQuery, opts ...grpc.CallOption) (*NotesInfo, error)
	Stat(ctx context.Context, in *NoteStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error)
}

NoteClient is the client API for Note 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 NewNoteClient

func NewNoteClient(cc grpc.ClientConnInterface) NoteClient

type NoteInfo

type NoteInfo struct {
	NoteId      string `protobuf:"bytes,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"`
	AlertId     string `protobuf:"bytes,2,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	Note        string `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	CreatedBy   string `protobuf:"bytes,11,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	DomainId    string `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	WorkspaceId string `protobuf:"bytes,22,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	ProjectId   string `protobuf:"bytes,23,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CreatedAt   string `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}
{
   "note_id": "note-df107d31bf20",
   "alert_id": "alert-160ce04f6908",
   "note": "This is a description",
   "created_by": "seolmin@mz.co.kr",
   "project_id": "project-52a423012d5e",
   "domain_id": "domain-58010aa2e451",
   "created_at": "2022-06-29T08:26:14.418Z"
}

func (*NoteInfo) Descriptor deprecated

func (*NoteInfo) Descriptor() ([]byte, []int)

Deprecated: Use NoteInfo.ProtoReflect.Descriptor instead.

func (*NoteInfo) GetAlertId

func (x *NoteInfo) GetAlertId() string

func (*NoteInfo) GetCreatedAt

func (x *NoteInfo) GetCreatedAt() string

func (*NoteInfo) GetCreatedBy

func (x *NoteInfo) GetCreatedBy() string

func (*NoteInfo) GetDomainId

func (x *NoteInfo) GetDomainId() string

func (*NoteInfo) GetNote

func (x *NoteInfo) GetNote() string

func (*NoteInfo) GetNoteId

func (x *NoteInfo) GetNoteId() string

func (*NoteInfo) GetProjectId

func (x *NoteInfo) GetProjectId() string

func (*NoteInfo) GetWorkspaceId

func (x *NoteInfo) GetWorkspaceId() string

func (*NoteInfo) ProtoMessage

func (*NoteInfo) ProtoMessage()

func (*NoteInfo) ProtoReflect

func (x *NoteInfo) ProtoReflect() protoreflect.Message

func (*NoteInfo) Reset

func (x *NoteInfo) Reset()

func (*NoteInfo) String

func (x *NoteInfo) String() string

type NoteQuery

type NoteQuery struct {

	// +optional
	Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// +optional
	NoteId string `protobuf:"bytes,2,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"`
	// +optional
	AlertId string `protobuf:"bytes,3,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	// +optional
	CreatedBy string `protobuf:"bytes,4,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
	// +optional
	WorkspaceId string `protobuf:"bytes,21,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	// +optional
	ProjectId string `protobuf:"bytes,22,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "query": {},
   "domain_id": "domain-58010aa2e451"
}

func (*NoteQuery) Descriptor deprecated

func (*NoteQuery) Descriptor() ([]byte, []int)

Deprecated: Use NoteQuery.ProtoReflect.Descriptor instead.

func (*NoteQuery) GetAlertId

func (x *NoteQuery) GetAlertId() string

func (*NoteQuery) GetCreatedBy

func (x *NoteQuery) GetCreatedBy() string

func (*NoteQuery) GetNoteId

func (x *NoteQuery) GetNoteId() string

func (*NoteQuery) GetProjectId

func (x *NoteQuery) GetProjectId() string

func (*NoteQuery) GetQuery

func (x *NoteQuery) GetQuery() *v2.Query

func (*NoteQuery) GetWorkspaceId

func (x *NoteQuery) GetWorkspaceId() string

func (*NoteQuery) ProtoMessage

func (*NoteQuery) ProtoMessage()

func (*NoteQuery) ProtoReflect

func (x *NoteQuery) ProtoReflect() protoreflect.Message

func (*NoteQuery) Reset

func (x *NoteQuery) Reset()

func (*NoteQuery) String

func (x *NoteQuery) String() string

type NoteRequest

type NoteRequest struct {
	NoteId string `protobuf:"bytes,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "note_id": "note-0bfac585bf5a",
}

func (*NoteRequest) Descriptor deprecated

func (*NoteRequest) Descriptor() ([]byte, []int)

Deprecated: Use NoteRequest.ProtoReflect.Descriptor instead.

func (*NoteRequest) GetNoteId

func (x *NoteRequest) GetNoteId() string

func (*NoteRequest) ProtoMessage

func (*NoteRequest) ProtoMessage()

func (*NoteRequest) ProtoReflect

func (x *NoteRequest) ProtoReflect() protoreflect.Message

func (*NoteRequest) Reset

func (x *NoteRequest) Reset()

func (*NoteRequest) String

func (x *NoteRequest) String() string

type NoteServer

type NoteServer interface {
	// Creates a new Note. You can create Notes for each Alert to record the information needed to manage the Alerts.
	Create(context.Context, *CreateNoteRequest) (*NoteInfo, error)
	// Updates a specific Note. You must specify the `note_id` for Note validation check. If the Note exists, it is updated.
	Update(context.Context, *UpdateNoteRequest) (*NoteInfo, error)
	// Deletes a specific Note. You must specify the `note_id` of the Note to delete.
	Delete(context.Context, *NoteRequest) (*empty.Empty, error)
	// Gets a specific Note. You must specify the `note_id` and `domain_id`.
	Get(context.Context, *NoteRequest) (*NoteInfo, error)
	// Gets a list of all Notes. You can use a query to get a filtered list of Notes.
	List(context.Context, *NoteQuery) (*NotesInfo, error)
	Stat(context.Context, *NoteStatQuery) (*_struct.Struct, error)
	// contains filtered or unexported methods
}

NoteServer is the server API for Note service. All implementations must embed UnimplementedNoteServer for forward compatibility

type NoteStatQuery

type NoteStatQuery struct {
	Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*NoteStatQuery) Descriptor deprecated

func (*NoteStatQuery) Descriptor() ([]byte, []int)

Deprecated: Use NoteStatQuery.ProtoReflect.Descriptor instead.

func (*NoteStatQuery) GetQuery

func (x *NoteStatQuery) GetQuery() *v2.StatisticsQuery

func (*NoteStatQuery) ProtoMessage

func (*NoteStatQuery) ProtoMessage()

func (*NoteStatQuery) ProtoReflect

func (x *NoteStatQuery) ProtoReflect() protoreflect.Message

func (*NoteStatQuery) Reset

func (x *NoteStatQuery) Reset()

func (*NoteStatQuery) String

func (x *NoteStatQuery) String() string

type NotesInfo

type NotesInfo struct {
	Results    []*NoteInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	TotalCount int32       `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}
{
   "results": [
       {
           "note_id": "note-0597bd748be0",
           "alert_id": "alert-fbfd78e43df8",
           "note": "http://spaceone.org",
           "created_by": "hykang@mz.co.kr",
           "project_id": "project-52a423012d5e",
           "domain_id": "domain-58010aa2e451",
           "created_at": "2022-06-23T09:58:23.838Z"
       },
       {
           "note_id": "note-0bfac585bf5a",
           "alert_id": "alert-fbfd78e43df8",
           "note": "test",
           "created_by": "hykang@mz.co.kr",
           "project_id": "project-52a423012d5e",
           "domain_id": "domain-58010aa2e451",
           "created_at": "2022-06-23T09:52:42.251Z"
       }
   ],
   "total_count": 2
}

func (*NotesInfo) Descriptor deprecated

func (*NotesInfo) Descriptor() ([]byte, []int)

Deprecated: Use NotesInfo.ProtoReflect.Descriptor instead.

func (*NotesInfo) GetResults

func (x *NotesInfo) GetResults() []*NoteInfo

func (*NotesInfo) GetTotalCount

func (x *NotesInfo) GetTotalCount() int32

func (*NotesInfo) ProtoMessage

func (*NotesInfo) ProtoMessage()

func (*NotesInfo) ProtoReflect

func (x *NotesInfo) ProtoReflect() protoreflect.Message

func (*NotesInfo) Reset

func (x *NotesInfo) Reset()

func (*NotesInfo) String

func (x *NotesInfo) String() string

type ProjectAlertConfigClient

type ProjectAlertConfigClient interface {
	// Creates a new ProjectAlertConfig in a specific Project. When creating a ProjectAlertConfig, validation of the Project is preceded. After the validation is done, ProjectAlertConfig enables EscalationPolicy to be set in the Project, or enables `enum` type `recovery_mode` and `notification_urgency` to be set through the `options` parameter.  The parameter `recovery_mode` is for changing the state of the Alert to `resolved` if the external monitoring solution sends the resolved Alert. The parameter `notification_urgency` is used to choose whether you will get all Alerts or only urgent ones.
	Create(ctx context.Context, in *CreateProjectAlertConfigRequest, opts ...grpc.CallOption) (*ProjectAlertConfigInfo, error)
	// Updates a specific ProjectAlertConfig. You can make changes in ProjectAlertConfig settings, including the EscalationPolicy to apply. You can also change `notification_urgency` and `recovery_mode` by modifying the `options` parameter.
	Update(ctx context.Context, in *UpdateProjectAlertConfigRequest, opts ...grpc.CallOption) (*ProjectAlertConfigInfo, error)
	// Deletes a specific ProjectAlertConfig. Deletes alert configuration data in a Project.
	Delete(ctx context.Context, in *ProjectAlertConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets a specific ProjectAlertConfig. Prints detailed information about the ProjectAlertConfig, including EscalationPolicy, recovery mode, and notification urgency.
	Get(ctx context.Context, in *ProjectAlertConfigRequest, opts ...grpc.CallOption) (*ProjectAlertConfigInfo, error)
	// Gets a list of all ProjectAlertConfigs from all projects configured in the same domain. You can use a query to get a filtered list of ProjectAlertConfigs.
	List(ctx context.Context, in *ProjectAlertConfigQuery, opts ...grpc.CallOption) (*ProjectAlertConfigsInfo, error)
	Stat(ctx context.Context, in *ProjectAlertConfigStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error)
}

ProjectAlertConfigClient is the client API for ProjectAlertConfig 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.

type ProjectAlertConfigInfo

type ProjectAlertConfigInfo struct {
	ProjectId            string                `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Options              *AlertOptions         `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	EscalationPolicyInfo *EscalationPolicyInfo `protobuf:"bytes,3,opt,name=escalation_policy_info,json=escalationPolicyInfo,proto3" json:"escalation_policy_info,omitempty"`
	DomainId             string                `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	WorkspaceId          string                `protobuf:"bytes,22,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	CreatedAt            string                `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}
{
   "project_id": "project-dee2a81d4859",
   "options": {
       "notification_urgency": "ALL",
       "recovery_mode": "AUTO"
   },
   "escalation_policy_info": {
       "escalation_policy_id": "ep-b441abe04ca9",
       "name": "Global New Policy"
   },
   "domain_id": "domain-58010aa2e451",
   "created_at": "2022-06-27T05:12:22.998Z"
}

func (*ProjectAlertConfigInfo) Descriptor deprecated

func (*ProjectAlertConfigInfo) Descriptor() ([]byte, []int)

Deprecated: Use ProjectAlertConfigInfo.ProtoReflect.Descriptor instead.

func (*ProjectAlertConfigInfo) GetCreatedAt

func (x *ProjectAlertConfigInfo) GetCreatedAt() string

func (*ProjectAlertConfigInfo) GetDomainId

func (x *ProjectAlertConfigInfo) GetDomainId() string

func (*ProjectAlertConfigInfo) GetEscalationPolicyInfo

func (x *ProjectAlertConfigInfo) GetEscalationPolicyInfo() *EscalationPolicyInfo

func (*ProjectAlertConfigInfo) GetOptions

func (x *ProjectAlertConfigInfo) GetOptions() *AlertOptions

func (*ProjectAlertConfigInfo) GetProjectId

func (x *ProjectAlertConfigInfo) GetProjectId() string

func (*ProjectAlertConfigInfo) GetWorkspaceId

func (x *ProjectAlertConfigInfo) GetWorkspaceId() string

func (*ProjectAlertConfigInfo) ProtoMessage

func (*ProjectAlertConfigInfo) ProtoMessage()

func (*ProjectAlertConfigInfo) ProtoReflect

func (x *ProjectAlertConfigInfo) ProtoReflect() protoreflect.Message

func (*ProjectAlertConfigInfo) Reset

func (x *ProjectAlertConfigInfo) Reset()

func (*ProjectAlertConfigInfo) String

func (x *ProjectAlertConfigInfo) String() string

type ProjectAlertConfigQuery

type ProjectAlertConfigQuery struct {

	// +optional
	Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// +optional
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// +optional
	EscalationPolicyId string `protobuf:"bytes,21,opt,name=escalation_policy_id,json=escalationPolicyId,proto3" json:"escalation_policy_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "query": {},
   "domain_id": "domain-58010aa2e451"
}

func (*ProjectAlertConfigQuery) Descriptor deprecated

func (*ProjectAlertConfigQuery) Descriptor() ([]byte, []int)

Deprecated: Use ProjectAlertConfigQuery.ProtoReflect.Descriptor instead.

func (*ProjectAlertConfigQuery) GetEscalationPolicyId

func (x *ProjectAlertConfigQuery) GetEscalationPolicyId() string

func (*ProjectAlertConfigQuery) GetProjectId

func (x *ProjectAlertConfigQuery) GetProjectId() string

func (*ProjectAlertConfigQuery) GetQuery

func (x *ProjectAlertConfigQuery) GetQuery() *v2.Query

func (*ProjectAlertConfigQuery) ProtoMessage

func (*ProjectAlertConfigQuery) ProtoMessage()

func (*ProjectAlertConfigQuery) ProtoReflect

func (x *ProjectAlertConfigQuery) ProtoReflect() protoreflect.Message

func (*ProjectAlertConfigQuery) Reset

func (x *ProjectAlertConfigQuery) Reset()

func (*ProjectAlertConfigQuery) String

func (x *ProjectAlertConfigQuery) String() string

type ProjectAlertConfigRequest

type ProjectAlertConfigRequest struct {
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "project_id": "project-dee2a81d4859",
   "domain_id": "domain-58010aa2e451"
}

func (*ProjectAlertConfigRequest) Descriptor deprecated

func (*ProjectAlertConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use ProjectAlertConfigRequest.ProtoReflect.Descriptor instead.

func (*ProjectAlertConfigRequest) GetProjectId

func (x *ProjectAlertConfigRequest) GetProjectId() string

func (*ProjectAlertConfigRequest) ProtoMessage

func (*ProjectAlertConfigRequest) ProtoMessage()

func (*ProjectAlertConfigRequest) ProtoReflect

func (*ProjectAlertConfigRequest) Reset

func (x *ProjectAlertConfigRequest) Reset()

func (*ProjectAlertConfigRequest) String

func (x *ProjectAlertConfigRequest) String() string

type ProjectAlertConfigServer

type ProjectAlertConfigServer interface {
	// Creates a new ProjectAlertConfig in a specific Project. When creating a ProjectAlertConfig, validation of the Project is preceded. After the validation is done, ProjectAlertConfig enables EscalationPolicy to be set in the Project, or enables `enum` type `recovery_mode` and `notification_urgency` to be set through the `options` parameter.  The parameter `recovery_mode` is for changing the state of the Alert to `resolved` if the external monitoring solution sends the resolved Alert. The parameter `notification_urgency` is used to choose whether you will get all Alerts or only urgent ones.
	Create(context.Context, *CreateProjectAlertConfigRequest) (*ProjectAlertConfigInfo, error)
	// Updates a specific ProjectAlertConfig. You can make changes in ProjectAlertConfig settings, including the EscalationPolicy to apply. You can also change `notification_urgency` and `recovery_mode` by modifying the `options` parameter.
	Update(context.Context, *UpdateProjectAlertConfigRequest) (*ProjectAlertConfigInfo, error)
	// Deletes a specific ProjectAlertConfig. Deletes alert configuration data in a Project.
	Delete(context.Context, *ProjectAlertConfigRequest) (*empty.Empty, error)
	// Gets a specific ProjectAlertConfig. Prints detailed information about the ProjectAlertConfig, including EscalationPolicy, recovery mode, and notification urgency.
	Get(context.Context, *ProjectAlertConfigRequest) (*ProjectAlertConfigInfo, error)
	// Gets a list of all ProjectAlertConfigs from all projects configured in the same domain. You can use a query to get a filtered list of ProjectAlertConfigs.
	List(context.Context, *ProjectAlertConfigQuery) (*ProjectAlertConfigsInfo, error)
	Stat(context.Context, *ProjectAlertConfigStatQuery) (*_struct.Struct, error)
	// contains filtered or unexported methods
}

ProjectAlertConfigServer is the server API for ProjectAlertConfig service. All implementations must embed UnimplementedProjectAlertConfigServer for forward compatibility

type ProjectAlertConfigStatQuery

type ProjectAlertConfigStatQuery struct {
	Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectAlertConfigStatQuery) Descriptor deprecated

func (*ProjectAlertConfigStatQuery) Descriptor() ([]byte, []int)

Deprecated: Use ProjectAlertConfigStatQuery.ProtoReflect.Descriptor instead.

func (*ProjectAlertConfigStatQuery) GetQuery

func (*ProjectAlertConfigStatQuery) ProtoMessage

func (*ProjectAlertConfigStatQuery) ProtoMessage()

func (*ProjectAlertConfigStatQuery) ProtoReflect

func (*ProjectAlertConfigStatQuery) Reset

func (x *ProjectAlertConfigStatQuery) Reset()

func (*ProjectAlertConfigStatQuery) String

func (x *ProjectAlertConfigStatQuery) String() string

type ProjectAlertConfigsInfo

type ProjectAlertConfigsInfo struct {
	Results    []*ProjectAlertConfigInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	TotalCount int32                     `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}
{
   "results": [
       {
           "project_id": "project-18655561c535",
           "options": {
               "notification_urgency": "ALL",
               "recovery_mode": "MANUAL"
           },
           "escalation_policy_info": {
               "escalation_policy_id": "ep-4ee42a9b2d96",
               "name": "HAHA",
               "is_default": true
           },
           "domain_id": "domain-58010aa2e451",
           "created_at": "2022-05-17T02:09:19.839Z"
       },
       {
           "project_id": "project-9074eea97d7e",
           "options": {
               "notification_urgency": "ALL",
               "recovery_mode": "MANUAL"
           },
           "escalation_policy_info": {
               "escalation_policy_id": "ep-b441abe04ca9",
               "name": "Global New Policy"
           },
           "domain_id": "domain-58010aa2e451",
           "created_at": "2021-06-24T02:50:50.535Z"
       }
   ],
   "total_count": 2
}

func (*ProjectAlertConfigsInfo) Descriptor deprecated

func (*ProjectAlertConfigsInfo) Descriptor() ([]byte, []int)

Deprecated: Use ProjectAlertConfigsInfo.ProtoReflect.Descriptor instead.

func (*ProjectAlertConfigsInfo) GetResults

func (*ProjectAlertConfigsInfo) GetTotalCount

func (x *ProjectAlertConfigsInfo) GetTotalCount() int32

func (*ProjectAlertConfigsInfo) ProtoMessage

func (*ProjectAlertConfigsInfo) ProtoMessage()

func (*ProjectAlertConfigsInfo) ProtoReflect

func (x *ProjectAlertConfigsInfo) ProtoReflect() protoreflect.Message

func (*ProjectAlertConfigsInfo) Reset

func (x *ProjectAlertConfigsInfo) Reset()

func (*ProjectAlertConfigsInfo) String

func (x *ProjectAlertConfigsInfo) String() string

type RegisterDataSourceRequest

type RegisterDataSourceRequest struct {
	Name       string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	PluginInfo *DataSourcePluginInfo `protobuf:"bytes,2,opt,name=plugin_info,json=pluginInfo,proto3" json:"plugin_info,omitempty"`
	// +optional
	Tags *_struct.Struct `protobuf:"bytes,3,opt,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}
{
       "name": "datasource-test",
       "plugin_info": {"plugin_id": "plugin-123456789012",
                       "version": "1.1.4.20220617.135934",
                       "options": {},
                       "provider": "aws",
                       "metadata": {
                           "supported_resource_type": ["inventory.Server", "inventory.CloudService"],
                           "required_keys": ["data.cloudwatch"],
                           "supported_stat": ["AVERAGE", "MAX", "MIN", "SUM"]},
                       "upgrade_mode": "AUTO"
                       },
       "tags": {"a": "b"},
       "domain_id": "domain-123456789012"
}

func (*RegisterDataSourceRequest) Descriptor deprecated

func (*RegisterDataSourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterDataSourceRequest.ProtoReflect.Descriptor instead.

func (*RegisterDataSourceRequest) GetName

func (x *RegisterDataSourceRequest) GetName() string

func (*RegisterDataSourceRequest) GetPluginInfo

func (x *RegisterDataSourceRequest) GetPluginInfo() *DataSourcePluginInfo

func (*RegisterDataSourceRequest) GetTags

func (*RegisterDataSourceRequest) ProtoMessage

func (*RegisterDataSourceRequest) ProtoMessage()

func (*RegisterDataSourceRequest) ProtoReflect

func (*RegisterDataSourceRequest) Reset

func (x *RegisterDataSourceRequest) Reset()

func (*RegisterDataSourceRequest) String

func (x *RegisterDataSourceRequest) String() string

type UnimplementedAlertServer

type UnimplementedAlertServer struct {
}

UnimplementedAlertServer must be embedded to have forward compatible implementations.

func (UnimplementedAlertServer) AssignUser

func (UnimplementedAlertServer) Create

func (UnimplementedAlertServer) Delete

func (UnimplementedAlertServer) Get

func (UnimplementedAlertServer) List

func (UnimplementedAlertServer) Stat

func (UnimplementedAlertServer) Update

func (UnimplementedAlertServer) UpdateState

type UnimplementedDataSourceServer

type UnimplementedDataSourceServer struct {
}

UnimplementedDataSourceServer must be embedded to have forward compatible implementations.

func (UnimplementedDataSourceServer) Deregister

func (UnimplementedDataSourceServer) Disable

func (UnimplementedDataSourceServer) Enable

func (UnimplementedDataSourceServer) Get

func (UnimplementedDataSourceServer) List

func (UnimplementedDataSourceServer) Register

func (UnimplementedDataSourceServer) Stat

func (UnimplementedDataSourceServer) Update

func (UnimplementedDataSourceServer) UpdatePlugin

func (UnimplementedDataSourceServer) VerifyPlugin

type UnimplementedEscalationPolicyServer

type UnimplementedEscalationPolicyServer struct {
}

UnimplementedEscalationPolicyServer must be embedded to have forward compatible implementations.

func (UnimplementedEscalationPolicyServer) Delete

func (UnimplementedEscalationPolicyServer) Get

func (UnimplementedEscalationPolicyServer) List

func (UnimplementedEscalationPolicyServer) SetDefault

func (UnimplementedEscalationPolicyServer) Stat

type UnimplementedEventRuleServer

type UnimplementedEventRuleServer struct {
}

UnimplementedEventRuleServer must be embedded to have forward compatible implementations.

func (UnimplementedEventRuleServer) ChangeOrder

func (UnimplementedEventRuleServer) Create

func (UnimplementedEventRuleServer) Delete

func (UnimplementedEventRuleServer) Get

func (UnimplementedEventRuleServer) List

func (UnimplementedEventRuleServer) Stat

func (UnimplementedEventRuleServer) Update

type UnimplementedEventServer

type UnimplementedEventServer struct {
}

UnimplementedEventServer must be embedded to have forward compatible implementations.

func (UnimplementedEventServer) Create

func (UnimplementedEventServer) Get

func (UnimplementedEventServer) List

func (UnimplementedEventServer) Stat

type UnimplementedLogServer

type UnimplementedLogServer struct {
}

UnimplementedLogServer must be embedded to have forward compatible implementations.

func (UnimplementedLogServer) List

type UnimplementedMetricServer

type UnimplementedMetricServer struct {
}

UnimplementedMetricServer must be embedded to have forward compatible implementations.

func (UnimplementedMetricServer) GetData

func (UnimplementedMetricServer) List

type UnimplementedNoteServer

type UnimplementedNoteServer struct {
}

UnimplementedNoteServer must be embedded to have forward compatible implementations.

func (UnimplementedNoteServer) Create

func (UnimplementedNoteServer) Delete

func (UnimplementedNoteServer) Get

func (UnimplementedNoteServer) List

func (UnimplementedNoteServer) Stat

func (UnimplementedNoteServer) Update

type UnimplementedProjectAlertConfigServer

type UnimplementedProjectAlertConfigServer struct {
}

UnimplementedProjectAlertConfigServer must be embedded to have forward compatible implementations.

func (UnimplementedProjectAlertConfigServer) Delete

func (UnimplementedProjectAlertConfigServer) Get

func (UnimplementedProjectAlertConfigServer) List

func (UnimplementedProjectAlertConfigServer) Stat

type UnimplementedWebhookServer

type UnimplementedWebhookServer struct {
}

UnimplementedWebhookServer must be embedded to have forward compatible implementations.

func (UnimplementedWebhookServer) Create

func (UnimplementedWebhookServer) Delete

func (UnimplementedWebhookServer) Disable

func (UnimplementedWebhookServer) Enable

func (UnimplementedWebhookServer) Get

func (UnimplementedWebhookServer) List

func (UnimplementedWebhookServer) Stat

func (UnimplementedWebhookServer) Update

func (UnimplementedWebhookServer) UpdatePlugin

func (UnimplementedWebhookServer) VerifyPlugin

type UnsafeAlertServer

type UnsafeAlertServer interface {
	// contains filtered or unexported methods
}

UnsafeAlertServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AlertServer will result in compilation errors.

type UnsafeDataSourceServer

type UnsafeDataSourceServer interface {
	// contains filtered or unexported methods
}

UnsafeDataSourceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataSourceServer will result in compilation errors.

type UnsafeEscalationPolicyServer

type UnsafeEscalationPolicyServer interface {
	// contains filtered or unexported methods
}

UnsafeEscalationPolicyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EscalationPolicyServer will result in compilation errors.

type UnsafeEventRuleServer

type UnsafeEventRuleServer interface {
	// contains filtered or unexported methods
}

UnsafeEventRuleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventRuleServer will result in compilation errors.

type UnsafeEventServer

type UnsafeEventServer interface {
	// contains filtered or unexported methods
}

UnsafeEventServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServer will result in compilation errors.

type UnsafeLogServer

type UnsafeLogServer interface {
	// contains filtered or unexported methods
}

UnsafeLogServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogServer will result in compilation errors.

type UnsafeMetricServer

type UnsafeMetricServer interface {
	// contains filtered or unexported methods
}

UnsafeMetricServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MetricServer will result in compilation errors.

type UnsafeNoteServer

type UnsafeNoteServer interface {
	// contains filtered or unexported methods
}

UnsafeNoteServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NoteServer will result in compilation errors.

type UnsafeProjectAlertConfigServer

type UnsafeProjectAlertConfigServer interface {
	// contains filtered or unexported methods
}

UnsafeProjectAlertConfigServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectAlertConfigServer will result in compilation errors.

type UnsafeWebhookServer

type UnsafeWebhookServer interface {
	// contains filtered or unexported methods
}

UnsafeWebhookServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebhookServer will result in compilation errors.

type UpdateAlertRequest

type UpdateAlertRequest struct {
	AlertId string `protobuf:"bytes,1,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	// +optional
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// +optional
	State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	// +optional
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// +optional
	ResetDescription bool `protobuf:"varint,12,opt,name=reset_description,json=resetDescription,proto3" json:"reset_description,omitempty"`
	// +optional
	Urgency AlertUrgency `protobuf:"varint,5,opt,name=urgency,proto3,enum=spaceone.api.monitoring.v1.AlertUrgency" json:"urgency,omitempty"`
	// +optional
	ProjectId string `protobuf:"bytes,21,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}
{
     "alert_id": "alert-123456789012",
     "state": "ACKNOWLEDGED",
     "urgency": "LOW",
     "description": "[updating]This is a description of sample.",
     "domain_id": "domain-123456789012"
}

func (*UpdateAlertRequest) Descriptor deprecated

func (*UpdateAlertRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAlertRequest.ProtoReflect.Descriptor instead.

func (*UpdateAlertRequest) GetAlertId

func (x *UpdateAlertRequest) GetAlertId() string

func (*UpdateAlertRequest) GetDescription

func (x *UpdateAlertRequest) GetDescription() string

func (*UpdateAlertRequest) GetProjectId

func (x *UpdateAlertRequest) GetProjectId() string

func (*UpdateAlertRequest) GetResetDescription

func (x *UpdateAlertRequest) GetResetDescription() bool

func (*UpdateAlertRequest) GetState

func (x *UpdateAlertRequest) GetState() string

func (*UpdateAlertRequest) GetTitle

func (x *UpdateAlertRequest) GetTitle() string

func (*UpdateAlertRequest) GetUrgency

func (x *UpdateAlertRequest) GetUrgency() AlertUrgency

func (*UpdateAlertRequest) ProtoMessage

func (*UpdateAlertRequest) ProtoMessage()

func (*UpdateAlertRequest) ProtoReflect

func (x *UpdateAlertRequest) ProtoReflect() protoreflect.Message

func (*UpdateAlertRequest) Reset

func (x *UpdateAlertRequest) Reset()

func (*UpdateAlertRequest) String

func (x *UpdateAlertRequest) String() string

type UpdateAlertStateRequest

type UpdateAlertStateRequest struct {
	AlertId   string `protobuf:"bytes,1,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	AccessKey string `protobuf:"bytes,2,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
	State     string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}
{
     "alert_id": "alert-123456789012",
     "access_key": "1q2w3e4r5t6y7u8i9o0p",
     "domain_id": "domain-123456789012"
}

func (*UpdateAlertStateRequest) Descriptor deprecated

func (*UpdateAlertStateRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAlertStateRequest.ProtoReflect.Descriptor instead.

func (*UpdateAlertStateRequest) GetAccessKey

func (x *UpdateAlertStateRequest) GetAccessKey() string

func (*UpdateAlertStateRequest) GetAlertId

func (x *UpdateAlertStateRequest) GetAlertId() string

func (*UpdateAlertStateRequest) GetState

func (x *UpdateAlertStateRequest) GetState() string

func (*UpdateAlertStateRequest) ProtoMessage

func (*UpdateAlertStateRequest) ProtoMessage()

func (*UpdateAlertStateRequest) ProtoReflect

func (x *UpdateAlertStateRequest) ProtoReflect() protoreflect.Message

func (*UpdateAlertStateRequest) Reset

func (x *UpdateAlertStateRequest) Reset()

func (*UpdateAlertStateRequest) String

func (x *UpdateAlertStateRequest) String() string

type UpdateDataSourcePluginRequest

type UpdateDataSourcePluginRequest struct {
	DataSourceId string `protobuf:"bytes,1,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	// +optional
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// +optional
	Options *_struct.Struct `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// +optional
	UpgradeMode UpdateDataSourcePluginRequest_UpgradeMode `` /* 169-byte string literal not displayed */
	// contains filtered or unexported fields
}
{
   "data_source_id": "ds-6167ed6b42f4",
   "version": "1.1.3",
   "options": {},
   "upgrade_mode": "MANUAL",
   "domain_id": "domain-123456789012"
}

func (*UpdateDataSourcePluginRequest) Descriptor deprecated

func (*UpdateDataSourcePluginRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDataSourcePluginRequest.ProtoReflect.Descriptor instead.

func (*UpdateDataSourcePluginRequest) GetDataSourceId

func (x *UpdateDataSourcePluginRequest) GetDataSourceId() string

func (*UpdateDataSourcePluginRequest) GetOptions

func (x *UpdateDataSourcePluginRequest) GetOptions() *_struct.Struct

func (*UpdateDataSourcePluginRequest) GetUpgradeMode

func (*UpdateDataSourcePluginRequest) GetVersion

func (x *UpdateDataSourcePluginRequest) GetVersion() string

func (*UpdateDataSourcePluginRequest) ProtoMessage

func (*UpdateDataSourcePluginRequest) ProtoMessage()

func (*UpdateDataSourcePluginRequest) ProtoReflect

func (*UpdateDataSourcePluginRequest) Reset

func (x *UpdateDataSourcePluginRequest) Reset()

func (*UpdateDataSourcePluginRequest) String

type UpdateDataSourcePluginRequest_UpgradeMode

type UpdateDataSourcePluginRequest_UpgradeMode int32
const (
	UpdateDataSourcePluginRequest_NONE   UpdateDataSourcePluginRequest_UpgradeMode = 0
	UpdateDataSourcePluginRequest_MANUAL UpdateDataSourcePluginRequest_UpgradeMode = 1
	UpdateDataSourcePluginRequest_AUTO   UpdateDataSourcePluginRequest_UpgradeMode = 2
)

func (UpdateDataSourcePluginRequest_UpgradeMode) Descriptor

func (UpdateDataSourcePluginRequest_UpgradeMode) Enum

func (UpdateDataSourcePluginRequest_UpgradeMode) EnumDescriptor deprecated

func (UpdateDataSourcePluginRequest_UpgradeMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use UpdateDataSourcePluginRequest_UpgradeMode.Descriptor instead.

func (UpdateDataSourcePluginRequest_UpgradeMode) Number

func (UpdateDataSourcePluginRequest_UpgradeMode) String

func (UpdateDataSourcePluginRequest_UpgradeMode) Type

type UpdateDataSourceRequest

type UpdateDataSourceRequest struct {
	DataSourceId string `protobuf:"bytes,1,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	// +optional
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// +optional
	Tags *_struct.Struct `protobuf:"bytes,4,opt,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}
{
       "data_source_id": "ds-123456789012",
       "name": "tmp-datasource_test",
       "tags": {"b": "c"},
       "domain_id": "domain-123456789012"
}

func (*UpdateDataSourceRequest) Descriptor deprecated

func (*UpdateDataSourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateDataSourceRequest.ProtoReflect.Descriptor instead.

func (*UpdateDataSourceRequest) GetDataSourceId

func (x *UpdateDataSourceRequest) GetDataSourceId() string

func (*UpdateDataSourceRequest) GetName

func (x *UpdateDataSourceRequest) GetName() string

func (*UpdateDataSourceRequest) GetTags

func (x *UpdateDataSourceRequest) GetTags() *_struct.Struct

func (*UpdateDataSourceRequest) ProtoMessage

func (*UpdateDataSourceRequest) ProtoMessage()

func (*UpdateDataSourceRequest) ProtoReflect

func (x *UpdateDataSourceRequest) ProtoReflect() protoreflect.Message

func (*UpdateDataSourceRequest) Reset

func (x *UpdateDataSourceRequest) Reset()

func (*UpdateDataSourceRequest) String

func (x *UpdateDataSourceRequest) String() string

type UpdateEscalationPolicyRequest

type UpdateEscalationPolicyRequest struct {
	EscalationPolicyId string `protobuf:"bytes,1,opt,name=escalation_policy_id,json=escalationPolicyId,proto3" json:"escalation_policy_id,omitempty"`
	// +optional
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// +optional
	Rules []*EscalationPolicyRule `protobuf:"bytes,3,rep,name=rules,proto3" json:"rules,omitempty"`
	// +optional
	RepeatCount int32 `protobuf:"varint,4,opt,name=repeat_count,json=repeatCount,proto3" json:"repeat_count,omitempty"`
	// +optional
	FinishCondition UpdateEscalationPolicyRequest_EscalationFinishCondition `` /* 195-byte string literal not displayed */
	// +optional
	Tags *_struct.Struct `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}
{
   "escalation_policy_id": "ep-526e536fdca9",
   "name": "es-test2",
   "rules": [{"notification_level": "LV1", "escalate_minutes": 15},
             {"notification_level": "LV2", "escalate_minutes": 15},
             {"notification_level": "LV3", "escalate_minutes": 15}],
   "repeat_count": 1,
   "finish_condition": "RESOLVED",
   "domain_id": "domain-58010aa2e451"
}

func (*UpdateEscalationPolicyRequest) Descriptor deprecated

func (*UpdateEscalationPolicyRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateEscalationPolicyRequest.ProtoReflect.Descriptor instead.

func (*UpdateEscalationPolicyRequest) GetEscalationPolicyId

func (x *UpdateEscalationPolicyRequest) GetEscalationPolicyId() string

func (*UpdateEscalationPolicyRequest) GetFinishCondition

func (*UpdateEscalationPolicyRequest) GetName

func (*UpdateEscalationPolicyRequest) GetRepeatCount

func (x *UpdateEscalationPolicyRequest) GetRepeatCount() int32

func (*UpdateEscalationPolicyRequest) GetRules

func (*UpdateEscalationPolicyRequest) GetTags

func (*UpdateEscalationPolicyRequest) ProtoMessage

func (*UpdateEscalationPolicyRequest) ProtoMessage()

func (*UpdateEscalationPolicyRequest) ProtoReflect

func (*UpdateEscalationPolicyRequest) Reset

func (x *UpdateEscalationPolicyRequest) Reset()

func (*UpdateEscalationPolicyRequest) String

type UpdateEscalationPolicyRequest_EscalationFinishCondition

type UpdateEscalationPolicyRequest_EscalationFinishCondition int32
const (
	UpdateEscalationPolicyRequest_NONE         UpdateEscalationPolicyRequest_EscalationFinishCondition = 0
	UpdateEscalationPolicyRequest_ACKNOWLEDGED UpdateEscalationPolicyRequest_EscalationFinishCondition = 1
	UpdateEscalationPolicyRequest_RESOLVED     UpdateEscalationPolicyRequest_EscalationFinishCondition = 2
)

func (UpdateEscalationPolicyRequest_EscalationFinishCondition) Descriptor

func (UpdateEscalationPolicyRequest_EscalationFinishCondition) Enum

func (UpdateEscalationPolicyRequest_EscalationFinishCondition) EnumDescriptor deprecated

Deprecated: Use UpdateEscalationPolicyRequest_EscalationFinishCondition.Descriptor instead.

func (UpdateEscalationPolicyRequest_EscalationFinishCondition) Number

func (UpdateEscalationPolicyRequest_EscalationFinishCondition) String

func (UpdateEscalationPolicyRequest_EscalationFinishCondition) Type

type UpdateEventRuleRequest

type UpdateEventRuleRequest struct {
	EventRuleId string `protobuf:"bytes,1,opt,name=event_rule_id,json=eventRuleId,proto3" json:"event_rule_id,omitempty"`
	// +optional
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// +optional
	Conditions []*EventRuleCondition `protobuf:"bytes,3,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// +optional
	ConditionsPolicy UpdateEventRuleRequest_ConditionsPolicy `` /* 182-byte string literal not displayed */
	// +optional
	Actions *EventRuleActions `protobuf:"bytes,5,opt,name=actions,proto3" json:"actions,omitempty"`
	// +optional
	Options *EventRuleOptions `protobuf:"bytes,6,opt,name=options,proto3" json:"options,omitempty"`
	// +optional
	Tags *_struct.Struct `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}
{
     "event_rule_id": "er-123456789012",
     "conditions": [{"key": "description", "value": "ELB", "operator": "contain"}],
     "conditions_policy": "ALL",
     "actions": {"change_assignee": "user2@email.com",
     "change_urgency": "HIGH",
     "change_project": "project-123456789012",
     "add_additional_info": {"type": "personal rule"},
     "no_notification": true},
     "options": {},
     "domain_id": "domain-123456789012"
}

func (*UpdateEventRuleRequest) Descriptor deprecated

func (*UpdateEventRuleRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateEventRuleRequest.ProtoReflect.Descriptor instead.

func (*UpdateEventRuleRequest) GetActions

func (x *UpdateEventRuleRequest) GetActions() *EventRuleActions

func (*UpdateEventRuleRequest) GetConditions

func (x *UpdateEventRuleRequest) GetConditions() []*EventRuleCondition

func (*UpdateEventRuleRequest) GetConditionsPolicy

func (*UpdateEventRuleRequest) GetEventRuleId

func (x *UpdateEventRuleRequest) GetEventRuleId() string

func (*UpdateEventRuleRequest) GetName

func (x *UpdateEventRuleRequest) GetName() string

func (*UpdateEventRuleRequest) GetOptions

func (x *UpdateEventRuleRequest) GetOptions() *EventRuleOptions

func (*UpdateEventRuleRequest) GetTags

func (x *UpdateEventRuleRequest) GetTags() *_struct.Struct

func (*UpdateEventRuleRequest) ProtoMessage

func (*UpdateEventRuleRequest) ProtoMessage()

func (*UpdateEventRuleRequest) ProtoReflect

func (x *UpdateEventRuleRequest) ProtoReflect() protoreflect.Message

func (*UpdateEventRuleRequest) Reset

func (x *UpdateEventRuleRequest) Reset()

func (*UpdateEventRuleRequest) String

func (x *UpdateEventRuleRequest) String() string

type UpdateEventRuleRequest_ConditionsPolicy

type UpdateEventRuleRequest_ConditionsPolicy int32
const (
	UpdateEventRuleRequest_NONE   UpdateEventRuleRequest_ConditionsPolicy = 0
	UpdateEventRuleRequest_ALL    UpdateEventRuleRequest_ConditionsPolicy = 1
	UpdateEventRuleRequest_ANY    UpdateEventRuleRequest_ConditionsPolicy = 2
	UpdateEventRuleRequest_ALWAYS UpdateEventRuleRequest_ConditionsPolicy = 3
)

func (UpdateEventRuleRequest_ConditionsPolicy) Descriptor

func (UpdateEventRuleRequest_ConditionsPolicy) Enum

func (UpdateEventRuleRequest_ConditionsPolicy) EnumDescriptor deprecated

func (UpdateEventRuleRequest_ConditionsPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use UpdateEventRuleRequest_ConditionsPolicy.Descriptor instead.

func (UpdateEventRuleRequest_ConditionsPolicy) Number

func (UpdateEventRuleRequest_ConditionsPolicy) String

func (UpdateEventRuleRequest_ConditionsPolicy) Type

type UpdateNoteRequest

type UpdateNoteRequest struct {
	NoteId string `protobuf:"bytes,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"`
	// +optional
	Note string `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}
{
   "note_id": "note-df107d31bf20",
   "note": "This is a test",
}

func (*UpdateNoteRequest) Descriptor deprecated

func (*UpdateNoteRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateNoteRequest.ProtoReflect.Descriptor instead.

func (*UpdateNoteRequest) GetNote

func (x *UpdateNoteRequest) GetNote() string

func (*UpdateNoteRequest) GetNoteId

func (x *UpdateNoteRequest) GetNoteId() string

func (*UpdateNoteRequest) ProtoMessage

func (*UpdateNoteRequest) ProtoMessage()

func (*UpdateNoteRequest) ProtoReflect

func (x *UpdateNoteRequest) ProtoReflect() protoreflect.Message

func (*UpdateNoteRequest) Reset

func (x *UpdateNoteRequest) Reset()

func (*UpdateNoteRequest) String

func (x *UpdateNoteRequest) String() string

type UpdateProjectAlertConfigRequest

type UpdateProjectAlertConfigRequest struct {
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// +optional
	EscalationPolicyId string `protobuf:"bytes,2,opt,name=escalation_policy_id,json=escalationPolicyId,proto3" json:"escalation_policy_id,omitempty"`
	// +optional
	Options *AlertOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}
{
   "project_id": "project-dee2a81d4859",
   "escalation_policy_id": "ep-4ee42a9b2d96",
   "options": {
       "notification_urgency": "ALL",
       "recovery_mode": "MANUAL"
   },
   "domain_id": "domain-58010aa2e451"
}

func (*UpdateProjectAlertConfigRequest) Descriptor deprecated

func (*UpdateProjectAlertConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateProjectAlertConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateProjectAlertConfigRequest) GetEscalationPolicyId

func (x *UpdateProjectAlertConfigRequest) GetEscalationPolicyId() string

func (*UpdateProjectAlertConfigRequest) GetOptions

func (*UpdateProjectAlertConfigRequest) GetProjectId

func (x *UpdateProjectAlertConfigRequest) GetProjectId() string

func (*UpdateProjectAlertConfigRequest) ProtoMessage

func (*UpdateProjectAlertConfigRequest) ProtoMessage()

func (*UpdateProjectAlertConfigRequest) ProtoReflect

func (*UpdateProjectAlertConfigRequest) Reset

func (*UpdateProjectAlertConfigRequest) String

type UpdateWebhookPluginRequest

type UpdateWebhookPluginRequest struct {
	WebhookId string `protobuf:"bytes,1,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
	// +optional
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// +optional
	Options *_struct.Struct `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// +optional
	UpgradeMode UpdateWebhookPluginRequest_UpgradeMode `` /* 166-byte string literal not displayed */
	// contains filtered or unexported fields
}
{
     "plugin_id": "plugin-aws-sns-mon-webhook",
     "version": "1.2.2",
     "options": {},
     "metadata": {},
     "upgrade_mode": "AUTO"
}

func (*UpdateWebhookPluginRequest) Descriptor deprecated

func (*UpdateWebhookPluginRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateWebhookPluginRequest.ProtoReflect.Descriptor instead.

func (*UpdateWebhookPluginRequest) GetOptions

func (x *UpdateWebhookPluginRequest) GetOptions() *_struct.Struct

func (*UpdateWebhookPluginRequest) GetUpgradeMode

func (*UpdateWebhookPluginRequest) GetVersion

func (x *UpdateWebhookPluginRequest) GetVersion() string

func (*UpdateWebhookPluginRequest) GetWebhookId

func (x *UpdateWebhookPluginRequest) GetWebhookId() string

func (*UpdateWebhookPluginRequest) ProtoMessage

func (*UpdateWebhookPluginRequest) ProtoMessage()

func (*UpdateWebhookPluginRequest) ProtoReflect

func (*UpdateWebhookPluginRequest) Reset

func (x *UpdateWebhookPluginRequest) Reset()

func (*UpdateWebhookPluginRequest) String

func (x *UpdateWebhookPluginRequest) String() string

type UpdateWebhookPluginRequest_UpgradeMode

type UpdateWebhookPluginRequest_UpgradeMode int32
const (
	UpdateWebhookPluginRequest_NONE   UpdateWebhookPluginRequest_UpgradeMode = 0
	UpdateWebhookPluginRequest_MANUAL UpdateWebhookPluginRequest_UpgradeMode = 1
	UpdateWebhookPluginRequest_AUTO   UpdateWebhookPluginRequest_UpgradeMode = 2
)

func (UpdateWebhookPluginRequest_UpgradeMode) Descriptor

func (UpdateWebhookPluginRequest_UpgradeMode) Enum

func (UpdateWebhookPluginRequest_UpgradeMode) EnumDescriptor deprecated

func (UpdateWebhookPluginRequest_UpgradeMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use UpdateWebhookPluginRequest_UpgradeMode.Descriptor instead.

func (UpdateWebhookPluginRequest_UpgradeMode) Number

func (UpdateWebhookPluginRequest_UpgradeMode) String

func (UpdateWebhookPluginRequest_UpgradeMode) Type

type UpdateWebhookRequest

type UpdateWebhookRequest struct {
	WebhookId string `protobuf:"bytes,1,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
	// +optional
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// +optional
	Tags *_struct.Struct `protobuf:"bytes,3,opt,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}
{
   "webhook_id": "webhook-123456789012",
   "name": "aws-sns-webhook-for-cloudwatch",
   "domain_id": "domain-123456789012"
}

func (*UpdateWebhookRequest) Descriptor deprecated

func (*UpdateWebhookRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateWebhookRequest.ProtoReflect.Descriptor instead.

func (*UpdateWebhookRequest) GetName

func (x *UpdateWebhookRequest) GetName() string

func (*UpdateWebhookRequest) GetTags

func (x *UpdateWebhookRequest) GetTags() *_struct.Struct

func (*UpdateWebhookRequest) GetWebhookId

func (x *UpdateWebhookRequest) GetWebhookId() string

func (*UpdateWebhookRequest) ProtoMessage

func (*UpdateWebhookRequest) ProtoMessage()

func (*UpdateWebhookRequest) ProtoReflect

func (x *UpdateWebhookRequest) ProtoReflect() protoreflect.Message

func (*UpdateWebhookRequest) Reset

func (x *UpdateWebhookRequest) Reset()

func (*UpdateWebhookRequest) String

func (x *UpdateWebhookRequest) String() string

type WebhookClient

type WebhookClient interface {
	// Creates a new Webhook. A Webhook collects data from an external monitoring system with a webhook URL generated by the resource.
	Create(ctx context.Context, in *CreateWebhookRequest, opts ...grpc.CallOption) (*WebhookInfo, error)
	// Updates a specific Webhook. You can make changes in Webhook settings, including the name and tags.
	Update(ctx context.Context, in *UpdateWebhookRequest, opts ...grpc.CallOption) (*WebhookInfo, error)
	// Updates the plugin of a specific DataSource. You can change the `version` of the plugin and select the `upgrade_mode` among `AUTO`, `MANUAL`, and `NONE`.
	UpdatePlugin(ctx context.Context, in *UpdateWebhookPluginRequest, opts ...grpc.CallOption) (*WebhookInfo, error)
	// Verifies a specific plugin for a Webhook.
	VerifyPlugin(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Enables a specific Webhook. By enabling a Webhook, you can communicate with an external application.
	Enable(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*WebhookInfo, error)
	// Disables a specific Webhook. By disabling a Webhook, you cannot communicate with an external application, as the webhook URL from the Webhook becomes invalid.
	Disable(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*WebhookInfo, error)
	// Deletes a specific Webhook. By deleting a Webhook, you cannot collect data from an external monitoring system, as the `REST URL` is also deleted.
	Delete(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Gets a specific Webhook. Prints detailed information about the Webhook, including the name, the version, and the created datetime.
	Get(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*WebhookInfo, error)
	// Gets a list of all Webhooks. You can use a query to get a filtered list of Webhooks.
	List(ctx context.Context, in *WebhookQuery, opts ...grpc.CallOption) (*WebhooksInfo, error)
	Stat(ctx context.Context, in *WebhookStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error)
}

WebhookClient is the client API for Webhook 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 NewWebhookClient

func NewWebhookClient(cc grpc.ClientConnInterface) WebhookClient

type WebhookInfo

type WebhookInfo struct {
	WebhookId   string                   `protobuf:"bytes,1,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
	Name        string                   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	State       WebhookInfo_WebhookState `protobuf:"varint,3,opt,name=state,proto3,enum=spaceone.api.monitoring.v1.WebhookInfo_WebhookState" json:"state,omitempty"`
	AccessKey   string                   `protobuf:"bytes,4,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
	WebhookUrl  string                   `protobuf:"bytes,5,opt,name=webhook_url,json=webhookUrl,proto3" json:"webhook_url,omitempty"`
	Capability  *_struct.Struct          `protobuf:"bytes,6,opt,name=capability,proto3" json:"capability,omitempty"`
	PluginInfo  *WebhookPluginInfo       `protobuf:"bytes,7,opt,name=plugin_info,json=pluginInfo,proto3" json:"plugin_info,omitempty"`
	Tags        *_struct.Struct          `protobuf:"bytes,8,opt,name=tags,proto3" json:"tags,omitempty"`
	DomainId    string                   `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
	WorkspaceId string                   `protobuf:"bytes,22,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	ProjectId   string                   `protobuf:"bytes,23,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CreatedAt   string                   `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}
{
     "webhook_id": "webhook-123456789012",
     "name": "aws-sns-webhook-for-phd",
     "state": "ENABLED",
     "access_key": "1234567890123456789012345678901",
     "webhook_url": "https://spaceone.dev/monitoring/v1/webhook/webhook-123456789012/1234567890123456789012345678901/events",
     "capability": {},
     "plugin_info": {
     "plugin_id": "plugin-aws-sns-mon-webhook",
     "version": "1.2.2",
     "options": {},
     "metadata": {},
     "upgrade_mode": "AUTO"
     },
     "project_id": "project-123456789012",
     "domain_id": "domain-123456789012",
     "created_at": "2022-01-01T07:23:33.875Z"
}

func (*WebhookInfo) Descriptor deprecated

func (*WebhookInfo) Descriptor() ([]byte, []int)

Deprecated: Use WebhookInfo.ProtoReflect.Descriptor instead.

func (*WebhookInfo) GetAccessKey

func (x *WebhookInfo) GetAccessKey() string

func (*WebhookInfo) GetCapability

func (x *WebhookInfo) GetCapability() *_struct.Struct

func (*WebhookInfo) GetCreatedAt

func (x *WebhookInfo) GetCreatedAt() string

func (*WebhookInfo) GetDomainId

func (x *WebhookInfo) GetDomainId() string

func (*WebhookInfo) GetName

func (x *WebhookInfo) GetName() string

func (*WebhookInfo) GetPluginInfo

func (x *WebhookInfo) GetPluginInfo() *WebhookPluginInfo

func (*WebhookInfo) GetProjectId

func (x *WebhookInfo) GetProjectId() string

func (*WebhookInfo) GetState

func (x *WebhookInfo) GetState() WebhookInfo_WebhookState

func (*WebhookInfo) GetTags

func (x *WebhookInfo) GetTags() *_struct.Struct

func (*WebhookInfo) GetWebhookId

func (x *WebhookInfo) GetWebhookId() string

func (*WebhookInfo) GetWebhookUrl

func (x *WebhookInfo) GetWebhookUrl() string

func (*WebhookInfo) GetWorkspaceId

func (x *WebhookInfo) GetWorkspaceId() string

func (*WebhookInfo) ProtoMessage

func (*WebhookInfo) ProtoMessage()

func (*WebhookInfo) ProtoReflect

func (x *WebhookInfo) ProtoReflect() protoreflect.Message

func (*WebhookInfo) Reset

func (x *WebhookInfo) Reset()

func (*WebhookInfo) String

func (x *WebhookInfo) String() string

type WebhookInfo_WebhookState

type WebhookInfo_WebhookState int32
const (
	WebhookInfo_NONE     WebhookInfo_WebhookState = 0
	WebhookInfo_ENABLED  WebhookInfo_WebhookState = 1
	WebhookInfo_DISABLED WebhookInfo_WebhookState = 2
)

func (WebhookInfo_WebhookState) Descriptor

func (WebhookInfo_WebhookState) Enum

func (WebhookInfo_WebhookState) EnumDescriptor deprecated

func (WebhookInfo_WebhookState) EnumDescriptor() ([]byte, []int)

Deprecated: Use WebhookInfo_WebhookState.Descriptor instead.

func (WebhookInfo_WebhookState) Number

func (WebhookInfo_WebhookState) String

func (x WebhookInfo_WebhookState) String() string

func (WebhookInfo_WebhookState) Type

type WebhookPluginInfo

type WebhookPluginInfo struct {
	PluginId    string                        `protobuf:"bytes,1,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
	Version     string                        `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Options     *_struct.Struct               `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	Metadata    *_struct.Struct               `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	UpgradeMode WebhookPluginInfo_UpgradeMode `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WebhookPluginInfo) Descriptor deprecated

func (*WebhookPluginInfo) Descriptor() ([]byte, []int)

Deprecated: Use WebhookPluginInfo.ProtoReflect.Descriptor instead.

func (*WebhookPluginInfo) GetMetadata

func (x *WebhookPluginInfo) GetMetadata() *_struct.Struct

func (*WebhookPluginInfo) GetOptions

func (x *WebhookPluginInfo) GetOptions() *_struct.Struct

func (*WebhookPluginInfo) GetPluginId

func (x *WebhookPluginInfo) GetPluginId() string

func (*WebhookPluginInfo) GetUpgradeMode

func (*WebhookPluginInfo) GetVersion

func (x *WebhookPluginInfo) GetVersion() string

func (*WebhookPluginInfo) ProtoMessage

func (*WebhookPluginInfo) ProtoMessage()

func (*WebhookPluginInfo) ProtoReflect

func (x *WebhookPluginInfo) ProtoReflect() protoreflect.Message

func (*WebhookPluginInfo) Reset

func (x *WebhookPluginInfo) Reset()

func (*WebhookPluginInfo) String

func (x *WebhookPluginInfo) String() string

type WebhookPluginInfo_UpgradeMode

type WebhookPluginInfo_UpgradeMode int32
const (
	WebhookPluginInfo_NONE   WebhookPluginInfo_UpgradeMode = 0
	WebhookPluginInfo_MANUAL WebhookPluginInfo_UpgradeMode = 1
	WebhookPluginInfo_AUTO   WebhookPluginInfo_UpgradeMode = 2
)

func (WebhookPluginInfo_UpgradeMode) Descriptor

func (WebhookPluginInfo_UpgradeMode) Enum

func (WebhookPluginInfo_UpgradeMode) EnumDescriptor deprecated

func (WebhookPluginInfo_UpgradeMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use WebhookPluginInfo_UpgradeMode.Descriptor instead.

func (WebhookPluginInfo_UpgradeMode) Number

func (WebhookPluginInfo_UpgradeMode) String

func (WebhookPluginInfo_UpgradeMode) Type

type WebhookQuery

type WebhookQuery struct {

	// +optional
	Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// +optional
	WebhookId string `protobuf:"bytes,2,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
	// +optional
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// +optional
	State WebhookQuery_WebhookState `protobuf:"varint,4,opt,name=state,proto3,enum=spaceone.api.monitoring.v1.WebhookQuery_WebhookState" json:"state,omitempty"`
	// +optional
	AccessKey string `protobuf:"bytes,5,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
	// +optional
	WorkspaceId string `protobuf:"bytes,21,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
	// +optional
	ProjectId string `protobuf:"bytes,22,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "query": {},
   "project_id": "project-123456789012",
   "domain_id": "domain-123456789012"
}

func (*WebhookQuery) Descriptor deprecated

func (*WebhookQuery) Descriptor() ([]byte, []int)

Deprecated: Use WebhookQuery.ProtoReflect.Descriptor instead.

func (*WebhookQuery) GetAccessKey

func (x *WebhookQuery) GetAccessKey() string

func (*WebhookQuery) GetName

func (x *WebhookQuery) GetName() string

func (*WebhookQuery) GetProjectId

func (x *WebhookQuery) GetProjectId() string

func (*WebhookQuery) GetQuery

func (x *WebhookQuery) GetQuery() *v2.Query

func (*WebhookQuery) GetState

func (*WebhookQuery) GetWebhookId

func (x *WebhookQuery) GetWebhookId() string

func (*WebhookQuery) GetWorkspaceId

func (x *WebhookQuery) GetWorkspaceId() string

func (*WebhookQuery) ProtoMessage

func (*WebhookQuery) ProtoMessage()

func (*WebhookQuery) ProtoReflect

func (x *WebhookQuery) ProtoReflect() protoreflect.Message

func (*WebhookQuery) Reset

func (x *WebhookQuery) Reset()

func (*WebhookQuery) String

func (x *WebhookQuery) String() string

type WebhookQuery_WebhookState

type WebhookQuery_WebhookState int32
const (
	WebhookQuery_NONE     WebhookQuery_WebhookState = 0
	WebhookQuery_ENABLED  WebhookQuery_WebhookState = 1
	WebhookQuery_DISABLED WebhookQuery_WebhookState = 2
)

func (WebhookQuery_WebhookState) Descriptor

func (WebhookQuery_WebhookState) Enum

func (WebhookQuery_WebhookState) EnumDescriptor deprecated

func (WebhookQuery_WebhookState) EnumDescriptor() ([]byte, []int)

Deprecated: Use WebhookQuery_WebhookState.Descriptor instead.

func (WebhookQuery_WebhookState) Number

func (WebhookQuery_WebhookState) String

func (x WebhookQuery_WebhookState) String() string

func (WebhookQuery_WebhookState) Type

type WebhookRequest

type WebhookRequest struct {
	WebhookId string `protobuf:"bytes,1,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
	// contains filtered or unexported fields
}
{
   "webhook_id": "webhook-123456789012",
   "domain_id": "domain-123456789012"
}

func (*WebhookRequest) Descriptor deprecated

func (*WebhookRequest) Descriptor() ([]byte, []int)

Deprecated: Use WebhookRequest.ProtoReflect.Descriptor instead.

func (*WebhookRequest) GetWebhookId

func (x *WebhookRequest) GetWebhookId() string

func (*WebhookRequest) ProtoMessage

func (*WebhookRequest) ProtoMessage()

func (*WebhookRequest) ProtoReflect

func (x *WebhookRequest) ProtoReflect() protoreflect.Message

func (*WebhookRequest) Reset

func (x *WebhookRequest) Reset()

func (*WebhookRequest) String

func (x *WebhookRequest) String() string

type WebhookServer

type WebhookServer interface {
	// Creates a new Webhook. A Webhook collects data from an external monitoring system with a webhook URL generated by the resource.
	Create(context.Context, *CreateWebhookRequest) (*WebhookInfo, error)
	// Updates a specific Webhook. You can make changes in Webhook settings, including the name and tags.
	Update(context.Context, *UpdateWebhookRequest) (*WebhookInfo, error)
	// Updates the plugin of a specific DataSource. You can change the `version` of the plugin and select the `upgrade_mode` among `AUTO`, `MANUAL`, and `NONE`.
	UpdatePlugin(context.Context, *UpdateWebhookPluginRequest) (*WebhookInfo, error)
	// Verifies a specific plugin for a Webhook.
	VerifyPlugin(context.Context, *WebhookRequest) (*empty.Empty, error)
	// Enables a specific Webhook. By enabling a Webhook, you can communicate with an external application.
	Enable(context.Context, *WebhookRequest) (*WebhookInfo, error)
	// Disables a specific Webhook. By disabling a Webhook, you cannot communicate with an external application, as the webhook URL from the Webhook becomes invalid.
	Disable(context.Context, *WebhookRequest) (*WebhookInfo, error)
	// Deletes a specific Webhook. By deleting a Webhook, you cannot collect data from an external monitoring system, as the `REST URL` is also deleted.
	Delete(context.Context, *WebhookRequest) (*empty.Empty, error)
	// Gets a specific Webhook. Prints detailed information about the Webhook, including the name, the version, and the created datetime.
	Get(context.Context, *WebhookRequest) (*WebhookInfo, error)
	// Gets a list of all Webhooks. You can use a query to get a filtered list of Webhooks.
	List(context.Context, *WebhookQuery) (*WebhooksInfo, error)
	Stat(context.Context, *WebhookStatQuery) (*_struct.Struct, error)
	// contains filtered or unexported methods
}

WebhookServer is the server API for Webhook service. All implementations must embed UnimplementedWebhookServer for forward compatibility

type WebhookStatQuery

type WebhookStatQuery struct {
	Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*WebhookStatQuery) Descriptor deprecated

func (*WebhookStatQuery) Descriptor() ([]byte, []int)

Deprecated: Use WebhookStatQuery.ProtoReflect.Descriptor instead.

func (*WebhookStatQuery) GetQuery

func (x *WebhookStatQuery) GetQuery() *v2.StatisticsQuery

func (*WebhookStatQuery) ProtoMessage

func (*WebhookStatQuery) ProtoMessage()

func (*WebhookStatQuery) ProtoReflect

func (x *WebhookStatQuery) ProtoReflect() protoreflect.Message

func (*WebhookStatQuery) Reset

func (x *WebhookStatQuery) Reset()

func (*WebhookStatQuery) String

func (x *WebhookStatQuery) String() string

type WebhooksInfo

type WebhooksInfo struct {
	Results    []*WebhookInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	TotalCount int32          `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}
{
     "results": [
     {
     "webhook_id": "webhook-123456789012",
     "name": "aws-sns-webhook-for-cloudwatch",
     "state": "ENABLED",
     "access_key": "1234567890123456789012345678901",
     "webhook_url": "https://monitoring-webhook.dev.spaceone.dev/monitoring/v1/webhook/webhook-123456789012/1234567890123456789012345678901/events",
     "capability": {},
     "plugin_info": {
     "plugin_id": "plugin-aws-sns-mon-webhook",
     "version": "1.2.2",
     "options": {},
     "metadata": {},
     "upgrade_mode": "AUTO"
     },
     "project_id": "project-123456789012",
     "domain_id": "domain-123456789012",
     "created_at": "2022-01-01T07:23:33.875Z"
     },
     {
     "webhook_id": "webhook-987654321098",
     "name": "zabbix-webhook",
     "state": "ENABLED",
     "access_key": "9876567890123456789012345678901",
     "webhook_url": "https://monitoring-webhook.dev.spaceone.dev/monitoring/v1/webhook/webhook-987654321098/9876567890123456789012345678901/events",
     "capability": {},
     "plugin_info": {
     "plugin_id": "plugin-zabbix-mon-webhook",
     "version": "1.0",
     "options": {},
     "metadata": {},
     "upgrade_mode": "AUTO"
     },
     "project_id": "project-123456789012",
     "domain_id": "domain-123456789012",
     "created_at": "2022-01-01T07:42:31.872Z"
     }
     ],
     "total_count": 2
}

func (*WebhooksInfo) Descriptor deprecated

func (*WebhooksInfo) Descriptor() ([]byte, []int)

Deprecated: Use WebhooksInfo.ProtoReflect.Descriptor instead.

func (*WebhooksInfo) GetResults

func (x *WebhooksInfo) GetResults() []*WebhookInfo

func (*WebhooksInfo) GetTotalCount

func (x *WebhooksInfo) GetTotalCount() int32

func (*WebhooksInfo) ProtoMessage

func (*WebhooksInfo) ProtoMessage()

func (*WebhooksInfo) ProtoReflect

func (x *WebhooksInfo) ProtoReflect() protoreflect.Message

func (*WebhooksInfo) Reset

func (x *WebhooksInfo) Reset()

func (*WebhooksInfo) String

func (x *WebhooksInfo) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL