Documentation ¶
Index ¶
- Variables
- type ActorFilter
- type ActorNotificationReason
- type ArtifactFilter
- type BaseSubscriptionFilter
- type BatchNotificationOperation
- type BlockFilter
- type BlockSubscriptionChannel
- type Client
- type ClientImpl
- func (client *ClientImpl) CreateSubscription(ctx context.Context, args CreateSubscriptionArgs) (*NotificationSubscription, error)
- func (client *ClientImpl) DeleteSubscription(ctx context.Context, args DeleteSubscriptionArgs) error
- func (client *ClientImpl) GetEventType(ctx context.Context, args GetEventTypeArgs) (*NotificationEventType, error)
- func (client *ClientImpl) GetSettings(ctx context.Context, args GetSettingsArgs) (*NotificationAdminSettings, error)
- func (client *ClientImpl) GetSubscriber(ctx context.Context, args GetSubscriberArgs) (*NotificationSubscriber, error)
- func (client *ClientImpl) GetSubscription(ctx context.Context, args GetSubscriptionArgs) (*NotificationSubscription, error)
- func (client *ClientImpl) GetSubscriptionDiagnostics(ctx context.Context, args GetSubscriptionDiagnosticsArgs) (*SubscriptionDiagnostics, error)
- func (client *ClientImpl) GetSubscriptionTemplates(ctx context.Context, args GetSubscriptionTemplatesArgs) (*[]NotificationSubscriptionTemplate, error)
- func (client *ClientImpl) ListEventTypes(ctx context.Context, args ListEventTypesArgs) (*[]NotificationEventType, error)
- func (client *ClientImpl) ListLogs(ctx context.Context, args ListLogsArgs) (*[]INotificationDiagnosticLog, error)
- func (client *ClientImpl) ListSubscriptions(ctx context.Context, args ListSubscriptionsArgs) (*[]NotificationSubscription, error)
- func (client *ClientImpl) QuerySubscriptions(ctx context.Context, args QuerySubscriptionsArgs) (*[]NotificationSubscription, error)
- func (client *ClientImpl) UpdateSettings(ctx context.Context, args UpdateSettingsArgs) (*NotificationAdminSettings, error)
- func (client *ClientImpl) UpdateSubscriber(ctx context.Context, args UpdateSubscriberArgs) (*NotificationSubscriber, error)
- func (client *ClientImpl) UpdateSubscription(ctx context.Context, args UpdateSubscriptionArgs) (*NotificationSubscription, error)
- func (client *ClientImpl) UpdateSubscriptionDiagnostics(ctx context.Context, args UpdateSubscriptionDiagnosticsArgs) (*SubscriptionDiagnostics, error)
- func (client *ClientImpl) UpdateSubscriptionUserSettings(ctx context.Context, args UpdateSubscriptionUserSettingsArgs) (*SubscriptionUserSettings, error)
- type CreateSubscriptionArgs
- type DefaultGroupDeliveryPreference
- type DeleteSubscriptionArgs
- type DiagnosticIdentity
- type DiagnosticNotification
- type DiagnosticRecipient
- type EmailHtmlSubscriptionChannel
- type EmailPlaintextSubscriptionChannel
- type EvaluationOperationStatus
- type EventBacklogStatus
- type EventBatch
- type EventProcessingLog
- type EventPublisherQueryFlags
- type EventTransformRequest
- type EventTransformResult
- type EventTypeQueryFlags
- type EventsEvaluationResult
- type ExpressionFilter
- type ExpressionFilterClause
- type ExpressionFilterGroup
- type ExpressionFilterModel
- type FieldInputValues
- type FieldValuesQuery
- type GeneratedNotification
- type GetEventTypeArgs
- type GetSettingsArgs
- type GetSubscriberArgs
- type GetSubscriptionArgs
- type GetSubscriptionDiagnosticsArgs
- type GetSubscriptionTemplatesArgs
- type GroupSubscriptionChannel
- type INotificationDiagnosticLog
- type ISubscriptionChannel
- type ISubscriptionFilter
- type ListEventTypesArgs
- type ListLogsArgs
- type ListSubscriptionsArgs
- type MatcherResult
- type MessageQueueSubscriptionChannel
- type NotificationAdminSettings
- type NotificationAdminSettingsUpdateParameters
- type NotificationBacklogStatus
- type NotificationBatch
- type NotificationDeliveryLog
- type NotificationDiagnosticLog
- type NotificationDiagnosticLogMessage
- type NotificationEventBacklogStatus
- type NotificationEventField
- type NotificationEventFieldOperator
- type NotificationEventFieldType
- type NotificationEventPublisher
- type NotificationEventRole
- type NotificationEventType
- type NotificationEventTypeCategory
- type NotificationJobDiagnosticLog
- type NotificationOperation
- type NotificationQueryCondition
- type NotificationReason
- type NotificationReasonType
- type NotificationStatistic
- type NotificationStatisticType
- type NotificationStatisticsQuery
- type NotificationStatisticsQueryConditions
- type NotificationSubscriber
- type NotificationSubscriberDeliveryPreference
- type NotificationSubscriberUpdateParameters
- type NotificationSubscription
- type NotificationSubscriptionCreateParameters
- type NotificationSubscriptionTemplate
- type NotificationSubscriptionUpdateParameters
- type NotificationsEvaluationResult
- type OperatorConstraint
- type ProcessedEvent
- type ProcessingDiagnosticIdentity
- type ProcessingIdentities
- type QuerySubscriptionsArgs
- type RoleBasedFilter
- type ServiceBusSubscriptionChannel
- type ServiceHooksSubscriptionChannel
- type SoapSubscriptionChannel
- type SubscriberFlags
- type SubscriptionAdminSettings
- type SubscriptionChannelWithAddress
- type SubscriptionDiagnostics
- type SubscriptionEvaluation
- type SubscriptionEvaluationClause
- type SubscriptionEvaluationRequest
- type SubscriptionEvaluationResult
- type SubscriptionEvaluationSettings
- type SubscriptionFieldType
- type SubscriptionFlags
- type SubscriptionManagement
- type SubscriptionPermissions
- type SubscriptionQuery
- type SubscriptionQueryCondition
- type SubscriptionQueryFlags
- type SubscriptionScope
- type SubscriptionStatus
- type SubscriptionTemplateQueryFlags
- type SubscriptionTemplateType
- type SubscriptionTraceDiagnosticLog
- type SubscriptionTraceEventProcessingLog
- type SubscriptionTraceNotificationDeliveryLog
- type SubscriptionTracing
- type SubscriptionUserSettings
- type UnsupportedFilter
- type UnsupportedSubscriptionChannel
- type UpdateSettingsArgs
- type UpdateSubscriberArgs
- type UpdateSubscripitonDiagnosticsParameters
- type UpdateSubscripitonTracingParameters
- type UpdateSubscriptionArgs
- type UpdateSubscriptionDiagnosticsArgs
- type UpdateSubscriptionUserSettingsArgs
- type UserSubscriptionChannel
- type UserSystemSubscriptionChannel
- type ValueDefinition
Constants ¶
This section is empty.
Variables ¶
var DefaultGroupDeliveryPreferenceValues = defaultGroupDeliveryPreferenceValuesType{
NoDelivery: "noDelivery",
EachMember: "eachMember",
}
var EvaluationOperationStatusValues = evaluationOperationStatusValuesType{
NotSet: "notSet",
Queued: "queued",
InProgress: "inProgress",
Cancelled: "cancelled",
Succeeded: "succeeded",
Failed: "failed",
TimedOut: "timedOut",
NotFound: "notFound",
}
var EventPublisherQueryFlagsValues = eventPublisherQueryFlagsValuesType{
None: "none",
IncludeRemoteServices: "includeRemoteServices",
}
var EventTypeQueryFlagsValues = eventTypeQueryFlagsValuesType{
None: "none",
IncludeFields: "includeFields",
}
var NotificationOperationValues = notificationOperationValuesType{
None: "none",
SuspendUnprocessed: "suspendUnprocessed",
}
var NotificationReasonTypeValues = notificationReasonTypeValuesType{
Unknown: "unknown",
Follows: "follows",
Personal: "personal",
PersonalAlias: "personalAlias",
DirectMember: "directMember",
IndirectMember: "indirectMember",
GroupAlias: "groupAlias",
SubscriptionAlias: "subscriptionAlias",
SingleRole: "singleRole",
DirectMemberGroupRole: "directMemberGroupRole",
InDirectMemberGroupRole: "inDirectMemberGroupRole",
AliasMemberGroupRole: "aliasMemberGroupRole",
}
var NotificationStatisticTypeValues = notificationStatisticTypeValuesType{
NotificationBySubscription: "notificationBySubscription",
EventsByEventType: "eventsByEventType",
NotificationByEventType: "notificationByEventType",
EventsByEventTypePerUser: "eventsByEventTypePerUser",
NotificationByEventTypePerUser: "notificationByEventTypePerUser",
Events: "events",
Notifications: "notifications",
NotificationFailureBySubscription: "notificationFailureBySubscription",
UnprocessedRangeStart: "unprocessedRangeStart",
UnprocessedEventsByPublisher: "unprocessedEventsByPublisher",
UnprocessedEventDelayByPublisher: "unprocessedEventDelayByPublisher",
UnprocessedNotificationsByChannelByPublisher: "unprocessedNotificationsByChannelByPublisher",
UnprocessedNotificationDelayByChannelByPublisher: "unprocessedNotificationDelayByChannelByPublisher",
DelayRangeStart: "delayRangeStart",
TotalPipelineTime: "totalPipelineTime",
NotificationPipelineTime: "notificationPipelineTime",
EventPipelineTime: "eventPipelineTime",
HourlyRangeStart: "hourlyRangeStart",
HourlyNotificationBySubscription: "hourlyNotificationBySubscription",
HourlyEventsByEventTypePerUser: "hourlyEventsByEventTypePerUser",
HourlyEvents: "hourlyEvents",
HourlyNotifications: "hourlyNotifications",
HourlyUnprocessedEventsByPublisher: "hourlyUnprocessedEventsByPublisher",
HourlyUnprocessedEventDelayByPublisher: "hourlyUnprocessedEventDelayByPublisher",
HourlyUnprocessedNotificationsByChannelByPublisher: "hourlyUnprocessedNotificationsByChannelByPublisher",
HourlyUnprocessedNotificationDelayByChannelByPublisher: "hourlyUnprocessedNotificationDelayByChannelByPublisher",
HourlyTotalPipelineTime: "hourlyTotalPipelineTime",
HourlyNotificationPipelineTime: "hourlyNotificationPipelineTime",
HourlyEventPipelineTime: "hourlyEventPipelineTime",
}
var NotificationSubscriberDeliveryPreferenceValues = notificationSubscriberDeliveryPreferenceValuesType{
NoDelivery: "noDelivery",
PreferredEmailAddress: "preferredEmailAddress",
EachMember: "eachMember",
UseDefault: "useDefault",
}
var SubscriberFlagsValues = subscriberFlagsValuesType{
None: "none",
DeliveryPreferencesEditable: "deliveryPreferencesEditable",
SupportsPreferredEmailAddressDelivery: "supportsPreferredEmailAddressDelivery",
SupportsEachMemberDelivery: "supportsEachMemberDelivery",
SupportsNoDelivery: "supportsNoDelivery",
IsUser: "isUser",
IsGroup: "isGroup",
IsTeam: "isTeam",
}
var SubscriptionFieldTypeValues = subscriptionFieldTypeValuesType{
String: "string",
Integer: "integer",
DateTime: "dateTime",
PlainText: "plainText",
Html: "html",
TreePath: "treePath",
History: "history",
Double: "double",
Guid: "guid",
Boolean: "boolean",
Identity: "identity",
PicklistInteger: "picklistInteger",
PicklistString: "picklistString",
PicklistDouble: "picklistDouble",
TeamProject: "teamProject",
}
var SubscriptionFlagsValues = subscriptionFlagsValuesType{
None: "none",
GroupSubscription: "groupSubscription",
ContributedSubscription: "contributedSubscription",
CanOptOut: "canOptOut",
TeamSubscription: "teamSubscription",
OneActorMatches: "oneActorMatches",
}
var SubscriptionPermissionsValues = subscriptionPermissionsValuesType{
None: "none",
View: "view",
Edit: "edit",
Delete: "delete",
}
var SubscriptionQueryFlagsValues = subscriptionQueryFlagsValuesType{
None: "none",
IncludeInvalidSubscriptions: "includeInvalidSubscriptions",
IncludeDeletedSubscriptions: "includeDeletedSubscriptions",
IncludeFilterDetails: "includeFilterDetails",
AlwaysReturnBasicInformation: "alwaysReturnBasicInformation",
IncludeSystemSubscriptions: "includeSystemSubscriptions",
}
var SubscriptionStatusValues = subscriptionStatusValuesType{
JailedByNotificationsVolume: "jailedByNotificationsVolume",
PendingDeletion: "pendingDeletion",
DisabledArgumentException: "disabledArgumentException",
DisabledProjectInvalid: "disabledProjectInvalid",
DisabledMissingPermissions: "disabledMissingPermissions",
DisabledFromProbation: "disabledFromProbation",
DisabledInactiveIdentity: "disabledInactiveIdentity",
DisabledMessageQueueNotSupported: "disabledMessageQueueNotSupported",
DisabledMissingIdentity: "disabledMissingIdentity",
DisabledInvalidRoleExpression: "disabledInvalidRoleExpression",
DisabledInvalidPathClause: "disabledInvalidPathClause",
DisabledAsDuplicateOfDefault: "disabledAsDuplicateOfDefault",
DisabledByAdmin: "disabledByAdmin",
Disabled: "disabled",
Enabled: "enabled",
EnabledOnProbation: "enabledOnProbation",
}
var SubscriptionTemplateQueryFlagsValues = subscriptionTemplateQueryFlagsValuesType{
None: "none",
IncludeUser: "includeUser",
IncludeGroup: "includeGroup",
IncludeUserAndGroup: "includeUserAndGroup",
IncludeEventTypeInformation: "includeEventTypeInformation",
}
var SubscriptionTemplateTypeValues = subscriptionTemplateTypeValuesType{
User: "user",
Team: "team",
Both: "both",
None: "none",
}
Functions ¶
This section is empty.
Types ¶
type ActorFilter ¶
type ActorFilter struct { EventType *string `json:"eventType,omitempty"` Criteria *ExpressionFilterModel `json:"criteria,omitempty"` Type *string `json:"type,omitempty"` Exclusions *[]string `json:"exclusions,omitempty"` Inclusions *[]string `json:"inclusions,omitempty"` }
type ActorNotificationReason ¶
type ActorNotificationReason struct { NotificationReasonType *NotificationReasonType `json:"notificationReasonType,omitempty"` TargetIdentities *[]webapi.IdentityRef `json:"targetIdentities,omitempty"` MatchedRoles *[]string `json:"matchedRoles,omitempty"` }
type ArtifactFilter ¶
type ArtifactFilter struct { EventType *string `json:"eventType,omitempty"` ArtifactId *string `json:"artifactId,omitempty"` ArtifactType *string `json:"artifactType,omitempty"` ArtifactUri *string `json:"artifactUri,omitempty"` Type *string `json:"type,omitempty"` }
Artifact filter options. Used in "follow" subscriptions.
type BaseSubscriptionFilter ¶
type BatchNotificationOperation ¶
type BatchNotificationOperation struct { NotificationOperation *NotificationOperation `json:"notificationOperation,omitempty"` NotificationQueryConditions *[]NotificationQueryCondition `json:"notificationQueryConditions,omitempty"` }
type BlockFilter ¶
type BlockFilter struct { EventType *string `json:"eventType,omitempty"` Criteria *ExpressionFilterModel `json:"criteria,omitempty"` Type *string `json:"type,omitempty"` Exclusions *[]string `json:"exclusions,omitempty"` Inclusions *[]string `json:"inclusions,omitempty"` }
type BlockSubscriptionChannel ¶
type BlockSubscriptionChannel struct {
Type *string `json:"type,omitempty"`
}
type Client ¶
type Client interface { // [Preview API] Create a new subscription. CreateSubscription(context.Context, CreateSubscriptionArgs) (*NotificationSubscription, error) // [Preview API] Delete a subscription. DeleteSubscription(context.Context, DeleteSubscriptionArgs) error // [Preview API] Get a specific event type. GetEventType(context.Context, GetEventTypeArgs) (*NotificationEventType, error) // [Preview API] GetSettings(context.Context, GetSettingsArgs) (*NotificationAdminSettings, error) // [Preview API] Get delivery preferences of a notifications subscriber. GetSubscriber(context.Context, GetSubscriberArgs) (*NotificationSubscriber, error) // [Preview API] Get a notification subscription by its ID. GetSubscription(context.Context, GetSubscriptionArgs) (*NotificationSubscription, error) // [Preview API] Get the diagnostics settings for a subscription. GetSubscriptionDiagnostics(context.Context, GetSubscriptionDiagnosticsArgs) (*SubscriptionDiagnostics, error) // [Preview API] Get available subscription templates. GetSubscriptionTemplates(context.Context, GetSubscriptionTemplatesArgs) (*[]NotificationSubscriptionTemplate, error) // [Preview API] List available event types for this service. Optionally filter by only event types for the specified publisher. ListEventTypes(context.Context, ListEventTypesArgs) (*[]NotificationEventType, error) // [Preview API] Get a list of diagnostic logs for this service. ListLogs(context.Context, ListLogsArgs) (*[]INotificationDiagnosticLog, error) // [Preview API] Get a list of notification subscriptions, either by subscription IDs or by all subscriptions for a given user or group. ListSubscriptions(context.Context, ListSubscriptionsArgs) (*[]NotificationSubscription, error) // [Preview API] Query for subscriptions. A subscription is returned if it matches one or more of the specified conditions. QuerySubscriptions(context.Context, QuerySubscriptionsArgs) (*[]NotificationSubscription, error) // [Preview API] UpdateSettings(context.Context, UpdateSettingsArgs) (*NotificationAdminSettings, error) // [Preview API] Update delivery preferences of a notifications subscriber. UpdateSubscriber(context.Context, UpdateSubscriberArgs) (*NotificationSubscriber, error) // [Preview API] Update an existing subscription. Depending on the type of subscription and permissions, the caller can update the description, filter settings, channel (delivery) settings and more. UpdateSubscription(context.Context, UpdateSubscriptionArgs) (*NotificationSubscription, error) // [Preview API] Update the diagnostics settings for a subscription. UpdateSubscriptionDiagnostics(context.Context, UpdateSubscriptionDiagnosticsArgs) (*SubscriptionDiagnostics, error) // [Preview API] Update the specified user's settings for the specified subscription. This API is typically used to opt in or out of a shared subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions. UpdateSubscriptionUserSettings(context.Context, UpdateSubscriptionUserSettingsArgs) (*SubscriptionUserSettings, error) }
type ClientImpl ¶
type ClientImpl struct {
Client azuredevops.Client
}
func (*ClientImpl) CreateSubscription ¶
func (client *ClientImpl) CreateSubscription(ctx context.Context, args CreateSubscriptionArgs) (*NotificationSubscription, error)
[Preview API] Create a new subscription.
func (*ClientImpl) DeleteSubscription ¶
func (client *ClientImpl) DeleteSubscription(ctx context.Context, args DeleteSubscriptionArgs) error
[Preview API] Delete a subscription.
func (*ClientImpl) GetEventType ¶
func (client *ClientImpl) GetEventType(ctx context.Context, args GetEventTypeArgs) (*NotificationEventType, error)
[Preview API] Get a specific event type.
func (*ClientImpl) GetSettings ¶
func (client *ClientImpl) GetSettings(ctx context.Context, args GetSettingsArgs) (*NotificationAdminSettings, error)
[Preview API]
func (*ClientImpl) GetSubscriber ¶
func (client *ClientImpl) GetSubscriber(ctx context.Context, args GetSubscriberArgs) (*NotificationSubscriber, error)
[Preview API] Get delivery preferences of a notifications subscriber.
func (*ClientImpl) GetSubscription ¶
func (client *ClientImpl) GetSubscription(ctx context.Context, args GetSubscriptionArgs) (*NotificationSubscription, error)
[Preview API] Get a notification subscription by its ID.
func (*ClientImpl) GetSubscriptionDiagnostics ¶
func (client *ClientImpl) GetSubscriptionDiagnostics(ctx context.Context, args GetSubscriptionDiagnosticsArgs) (*SubscriptionDiagnostics, error)
[Preview API] Get the diagnostics settings for a subscription.
func (*ClientImpl) GetSubscriptionTemplates ¶
func (client *ClientImpl) GetSubscriptionTemplates(ctx context.Context, args GetSubscriptionTemplatesArgs) (*[]NotificationSubscriptionTemplate, error)
[Preview API] Get available subscription templates.
func (*ClientImpl) ListEventTypes ¶
func (client *ClientImpl) ListEventTypes(ctx context.Context, args ListEventTypesArgs) (*[]NotificationEventType, error)
[Preview API] List available event types for this service. Optionally filter by only event types for the specified publisher.
func (*ClientImpl) ListLogs ¶
func (client *ClientImpl) ListLogs(ctx context.Context, args ListLogsArgs) (*[]INotificationDiagnosticLog, error)
[Preview API] Get a list of diagnostic logs for this service.
func (*ClientImpl) ListSubscriptions ¶
func (client *ClientImpl) ListSubscriptions(ctx context.Context, args ListSubscriptionsArgs) (*[]NotificationSubscription, error)
[Preview API] Get a list of notification subscriptions, either by subscription IDs or by all subscriptions for a given user or group.
func (*ClientImpl) QuerySubscriptions ¶
func (client *ClientImpl) QuerySubscriptions(ctx context.Context, args QuerySubscriptionsArgs) (*[]NotificationSubscription, error)
[Preview API] Query for subscriptions. A subscription is returned if it matches one or more of the specified conditions.
func (*ClientImpl) UpdateSettings ¶
func (client *ClientImpl) UpdateSettings(ctx context.Context, args UpdateSettingsArgs) (*NotificationAdminSettings, error)
[Preview API]
func (*ClientImpl) UpdateSubscriber ¶
func (client *ClientImpl) UpdateSubscriber(ctx context.Context, args UpdateSubscriberArgs) (*NotificationSubscriber, error)
[Preview API] Update delivery preferences of a notifications subscriber.
func (*ClientImpl) UpdateSubscription ¶
func (client *ClientImpl) UpdateSubscription(ctx context.Context, args UpdateSubscriptionArgs) (*NotificationSubscription, error)
[Preview API] Update an existing subscription. Depending on the type of subscription and permissions, the caller can update the description, filter settings, channel (delivery) settings and more.
func (*ClientImpl) UpdateSubscriptionDiagnostics ¶
func (client *ClientImpl) UpdateSubscriptionDiagnostics(ctx context.Context, args UpdateSubscriptionDiagnosticsArgs) (*SubscriptionDiagnostics, error)
[Preview API] Update the diagnostics settings for a subscription.
func (*ClientImpl) UpdateSubscriptionUserSettings ¶
func (client *ClientImpl) UpdateSubscriptionUserSettings(ctx context.Context, args UpdateSubscriptionUserSettingsArgs) (*SubscriptionUserSettings, error)
[Preview API] Update the specified user's settings for the specified subscription. This API is typically used to opt in or out of a shared subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions.
type CreateSubscriptionArgs ¶
type CreateSubscriptionArgs struct { // (required) CreateParameters *NotificationSubscriptionCreateParameters }
Arguments for the CreateSubscription function
type DefaultGroupDeliveryPreference ¶
type DefaultGroupDeliveryPreference string
Default delivery preference for group subscribers. Indicates how the subscriber should be notified.
type DeleteSubscriptionArgs ¶
type DeleteSubscriptionArgs struct { // (required) SubscriptionId *string }
Arguments for the DeleteSubscription function
type DiagnosticIdentity ¶
type DiagnosticNotification ¶
type DiagnosticNotification struct { EventId *int `json:"eventId,omitempty"` EventType *string `json:"eventType,omitempty"` Id *int `json:"id,omitempty"` Messages *[]NotificationDiagnosticLogMessage `json:"messages,omitempty"` Recipients *map[uuid.UUID]DiagnosticRecipient `json:"recipients,omitempty"` Result *string `json:"result,omitempty"` Stats *map[string]int `json:"stats,omitempty"` SubscriptionId *string `json:"subscriptionId,omitempty"` }
type DiagnosticRecipient ¶
type DiagnosticRecipient struct { Recipient *DiagnosticIdentity `json:"recipient,omitempty"` Status *string `json:"status,omitempty"` }
type EvaluationOperationStatus ¶
type EvaluationOperationStatus string
Describes the subscription evaluation operation status.
type EventBacklogStatus ¶
type EventBacklogStatus struct { CaptureTime *azuredevops.Time `json:"captureTime,omitempty"` JobId *uuid.UUID `json:"jobId,omitempty"` LastEventBatchStartTime *azuredevops.Time `json:"lastEventBatchStartTime,omitempty"` LastEventProcessedTime *azuredevops.Time `json:"lastEventProcessedTime,omitempty"` LastJobBatchStartTime *azuredevops.Time `json:"lastJobBatchStartTime,omitempty"` LastJobProcessedTime *azuredevops.Time `json:"lastJobProcessedTime,omitempty"` OldestPendingEventTime *azuredevops.Time `json:"oldestPendingEventTime,omitempty"` Publisher *string `json:"publisher,omitempty"` UnprocessedEvents *int `json:"unprocessedEvents,omitempty"` }
type EventBatch ¶
type EventBatch struct { EndTime interface{} `json:"endTime,omitempty"` EventCounts *map[string]int `json:"eventCounts,omitempty"` EventIds *string `json:"eventIds,omitempty"` NotificationCounts *map[string]int `json:"notificationCounts,omitempty"` PreProcessEndTime interface{} `json:"preProcessEndTime,omitempty"` PreProcessStartTime interface{} `json:"preProcessStartTime,omitempty"` ProcessEndTime interface{} `json:"processEndTime,omitempty"` ProcessStartTime interface{} `json:"processStartTime,omitempty"` StartTime interface{} `json:"startTime,omitempty"` SubscriptionCounts *map[string]int `json:"subscriptionCounts,omitempty"` }
type EventProcessingLog ¶
type EventProcessingLog struct { // Identifier used for correlating to other diagnostics that may have been recorded elsewhere. ActivityId *uuid.UUID `json:"activityId,omitempty"` Description *string `json:"description,omitempty"` EndTime *azuredevops.Time `json:"endTime,omitempty"` Errors *int `json:"errors,omitempty"` // Unique instance identifier. Id *uuid.UUID `json:"id,omitempty"` LogType *string `json:"logType,omitempty"` Messages *[]NotificationDiagnosticLogMessage `json:"messages,omitempty"` Properties *map[string]string `json:"properties,omitempty"` // This identifier depends on the logType. For notification jobs, this will be the job Id. For subscription tracing, this will be a special root Guid with the subscription Id encoded. Source *uuid.UUID `json:"source,omitempty"` StartTime *azuredevops.Time `json:"startTime,omitempty"` Warnings *int `json:"warnings,omitempty"` Result *string `json:"result,omitempty"` Stats *map[string]map[string]int `json:"stats,omitempty"` Batches *[]EventBatch `json:"batches,omitempty"` MatcherResults *[]MatcherResult `json:"matcherResults,omitempty"` }
type EventPublisherQueryFlags ¶
type EventPublisherQueryFlags string
[Flags] Set of flags used to determine which set of information is retrieved when querying for event publishers
type EventTransformRequest ¶
type EventTransformRequest struct { // Event payload. EventPayload *string `json:"eventPayload,omitempty"` // Event type. EventType *string `json:"eventType,omitempty"` // System inputs. SystemInputs *map[string]string `json:"systemInputs,omitempty"` }
A transform request specify the properties of a notification event to be transformed.
type EventTransformResult ¶
type EventTransformResult struct { // Transformed html content. Content *string `json:"content,omitempty"` // Calculated data. Data interface{} `json:"data,omitempty"` // Calculated system inputs. SystemInputs *map[string]string `json:"systemInputs,omitempty"` }
Result of transforming a notification event.
type EventTypeQueryFlags ¶
type EventTypeQueryFlags string
[Flags] Set of flags used to determine which set of information is retrieved when querying for eventtypes
type EventsEvaluationResult ¶
type EventsEvaluationResult struct { // Count of events evaluated. Count *int `json:"count,omitempty"` // Count of matched events. MatchedCount *int `json:"matchedCount,omitempty"` }
Encapsulates events result properties. It defines the total number of events used and the number of matched events.
type ExpressionFilter ¶
type ExpressionFilter struct { EventType *string `json:"eventType,omitempty"` Criteria *ExpressionFilterModel `json:"criteria,omitempty"` Type *string `json:"type,omitempty"` }
type ExpressionFilterClause ¶
type ExpressionFilterClause struct { FieldName *string `json:"fieldName,omitempty"` // The order in which this clause appeared in the filter query Index *int `json:"index,omitempty"` // Logical Operator 'AND', 'OR' or NULL (only for the first clause in the filter) LogicalOperator *string `json:"logicalOperator,omitempty"` Operator *string `json:"operator,omitempty"` Value *string `json:"value,omitempty"` }
Subscription Filter Clause represents a single clause in a subscription filter e.g. If the subscription has the following criteria "Project Name = [Current Project] AND Assigned To = [Me] it will be represented as two Filter Clauses Clause 1: Index = 1, Logical Operator: NULL , FieldName = 'Project Name', Operator = '=', Value = '[Current Project]' Clause 2: Index = 2, Logical Operator: 'AND' , FieldName = 'Assigned To' , Operator = '=', Value = '[Me]'
type ExpressionFilterGroup ¶
type ExpressionFilterGroup struct { // The index of the last FilterClause in this group End *int `json:"end,omitempty"` // Level of the group, since groups can be nested for each nested group the level will increase by 1 Level *int `json:"level,omitempty"` // The index of the first FilterClause in this group Start *int `json:"start,omitempty"` }
Represents a hierarchy of SubscritionFilterClauses that have been grouped together through either adding a group in the WebUI or using parethesis in the Subscription condition string
type ExpressionFilterModel ¶
type ExpressionFilterModel struct { // Flat list of clauses in this subscription Clauses *[]ExpressionFilterClause `json:"clauses,omitempty"` // Grouping of clauses in the subscription Groups *[]ExpressionFilterGroup `json:"groups,omitempty"` // Max depth of the Subscription tree MaxGroupLevel *int `json:"maxGroupLevel,omitempty"` }
type FieldInputValues ¶
type FieldInputValues struct { // The default value to use for this input DefaultValue *string `json:"defaultValue,omitempty"` // Errors encountered while computing dynamic values. Error *forminput.InputValuesError `json:"error,omitempty"` // The id of the input InputId *string `json:"inputId,omitempty"` // Should this input be disabled IsDisabled *bool `json:"isDisabled,omitempty"` // Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False) IsLimitedToPossibleValues *bool `json:"isLimitedToPossibleValues,omitempty"` // Should this input be made read-only IsReadOnly *bool `json:"isReadOnly,omitempty"` // Possible values that this input can take PossibleValues *[]forminput.InputValue `json:"possibleValues,omitempty"` Operators *[]byte `json:"operators,omitempty"` }
type FieldValuesQuery ¶
type FieldValuesQuery struct { CurrentValues *map[string]string `json:"currentValues,omitempty"` // Subscription containing information about the publisher/consumer and the current input values Resource interface{} `json:"resource,omitempty"` InputValues *[]FieldInputValues `json:"inputValues,omitempty"` Scope *string `json:"scope,omitempty"` }
type GeneratedNotification ¶
type GeneratedNotification struct {
Recipients *[]DiagnosticIdentity `json:"recipients,omitempty"`
}
type GetEventTypeArgs ¶
type GetEventTypeArgs struct { // (required) The ID of the event type. EventType *string }
Arguments for the GetEventType function
type GetSubscriberArgs ¶
Arguments for the GetSubscriber function
type GetSubscriptionArgs ¶
type GetSubscriptionArgs struct { // (required) SubscriptionId *string // (optional) QueryFlags *SubscriptionQueryFlags }
Arguments for the GetSubscription function
type GetSubscriptionDiagnosticsArgs ¶
type GetSubscriptionDiagnosticsArgs struct { // (required) The id of the notifications subscription. SubscriptionId *string }
Arguments for the GetSubscriptionDiagnostics function
type GetSubscriptionTemplatesArgs ¶
type GetSubscriptionTemplatesArgs struct { }
Arguments for the GetSubscriptionTemplates function
type INotificationDiagnosticLog ¶
type INotificationDiagnosticLog struct { // Identifier used for correlating to other diagnostics that may have been recorded elsewhere. ActivityId *uuid.UUID `json:"activityId,omitempty"` // Description of what subscription or notification job is being logged. Description *string `json:"description,omitempty"` // Time the log ended. EndTime *azuredevops.Time `json:"endTime,omitempty"` // Unique instance identifier. Id *uuid.UUID `json:"id,omitempty"` // Type of information being logged. LogType *string `json:"logType,omitempty"` // List of log messages. Messages *[]NotificationDiagnosticLogMessage `json:"messages,omitempty"` // Dictionary of log properties and settings for the job. Properties *map[string]string `json:"properties,omitempty"` // This identifier depends on the logType. For notification jobs, this will be the job Id. For subscription tracing, this will be a special root Guid with the subscription Id encoded. Source *uuid.UUID `json:"source,omitempty"` // Time the log started. StartTime *azuredevops.Time `json:"startTime,omitempty"` }
Abstraction interface for the diagnostic log. Primarily for deserialization.
type ISubscriptionChannel ¶
type ISubscriptionChannel struct {
Type *string `json:"type,omitempty"`
}
type ISubscriptionFilter ¶
type ListEventTypesArgs ¶
type ListEventTypesArgs struct { // (optional) Limit to event types for this publisher PublisherId *string }
Arguments for the ListEventTypes function
type ListLogsArgs ¶
type ListLogsArgs struct { // (required) ID specifying which type of logs to check diagnostics for. Source *uuid.UUID // (optional) The ID of the specific log to query for. EntryId *uuid.UUID // (optional) Start time for the time range to query in. StartTime *azuredevops.Time // (optional) End time for the time range to query in. EndTime *azuredevops.Time }
Arguments for the ListLogs function
type ListSubscriptionsArgs ¶
type ListSubscriptionsArgs struct { // (optional) User or Group ID TargetId *uuid.UUID // (optional) List of subscription IDs Ids *[]string // (optional) QueryFlags *SubscriptionQueryFlags }
Arguments for the ListSubscriptions function
type MatcherResult ¶
type MessageQueueSubscriptionChannel ¶
type MessageQueueSubscriptionChannel struct {
Type *string `json:"type,omitempty"`
}
type NotificationAdminSettings ¶
type NotificationAdminSettings struct { // The default group delivery preference for groups in this collection DefaultGroupDeliveryPreference *DefaultGroupDeliveryPreference `json:"defaultGroupDeliveryPreference,omitempty"` }
type NotificationAdminSettingsUpdateParameters ¶
type NotificationAdminSettingsUpdateParameters struct {
DefaultGroupDeliveryPreference *DefaultGroupDeliveryPreference `json:"defaultGroupDeliveryPreference,omitempty"`
}
type NotificationBacklogStatus ¶
type NotificationBacklogStatus struct { CaptureTime *azuredevops.Time `json:"captureTime,omitempty"` Channel *string `json:"channel,omitempty"` JobId *uuid.UUID `json:"jobId,omitempty"` LastJobBatchStartTime *azuredevops.Time `json:"lastJobBatchStartTime,omitempty"` LastJobProcessedTime *azuredevops.Time `json:"lastJobProcessedTime,omitempty"` LastNotificationBatchStartTime *azuredevops.Time `json:"lastNotificationBatchStartTime,omitempty"` LastNotificationProcessedTime *azuredevops.Time `json:"lastNotificationProcessedTime,omitempty"` OldestPendingNotificationTime *azuredevops.Time `json:"oldestPendingNotificationTime,omitempty"` Publisher *string `json:"publisher,omitempty"` // Null status is unprocessed Status *string `json:"status,omitempty"` UnprocessedNotifications *int `json:"unprocessedNotifications,omitempty"` }
type NotificationBatch ¶
type NotificationBatch struct { EndTime interface{} `json:"endTime,omitempty"` NotificationCount *int `json:"notificationCount,omitempty"` NotificationIds *string `json:"notificationIds,omitempty"` ProblematicNotifications *[]DiagnosticNotification `json:"problematicNotifications,omitempty"` StartTime interface{} `json:"startTime,omitempty"` }
type NotificationDeliveryLog ¶
type NotificationDeliveryLog struct { // Identifier used for correlating to other diagnostics that may have been recorded elsewhere. ActivityId *uuid.UUID `json:"activityId,omitempty"` Description *string `json:"description,omitempty"` EndTime *azuredevops.Time `json:"endTime,omitempty"` Errors *int `json:"errors,omitempty"` // Unique instance identifier. Id *uuid.UUID `json:"id,omitempty"` LogType *string `json:"logType,omitempty"` Messages *[]NotificationDiagnosticLogMessage `json:"messages,omitempty"` Properties *map[string]string `json:"properties,omitempty"` // This identifier depends on the logType. For notification jobs, this will be the job Id. For subscription tracing, this will be a special root Guid with the subscription Id encoded. Source *uuid.UUID `json:"source,omitempty"` StartTime *azuredevops.Time `json:"startTime,omitempty"` Warnings *int `json:"warnings,omitempty"` Result *string `json:"result,omitempty"` Stats *map[string]map[string]int `json:"stats,omitempty"` Batches *[]NotificationBatch `json:"batches,omitempty"` }
type NotificationDiagnosticLog ¶
type NotificationDiagnosticLog struct { // Identifier used for correlating to other diagnostics that may have been recorded elsewhere. ActivityId *uuid.UUID `json:"activityId,omitempty"` Description *string `json:"description,omitempty"` EndTime *azuredevops.Time `json:"endTime,omitempty"` Errors *int `json:"errors,omitempty"` // Unique instance identifier. Id *uuid.UUID `json:"id,omitempty"` LogType *string `json:"logType,omitempty"` Messages *[]NotificationDiagnosticLogMessage `json:"messages,omitempty"` Properties *map[string]string `json:"properties,omitempty"` // This identifier depends on the logType. For notification jobs, this will be the job Id. For subscription tracing, this will be a special root Guid with the subscription Id encoded. Source *uuid.UUID `json:"source,omitempty"` StartTime *azuredevops.Time `json:"startTime,omitempty"` Warnings *int `json:"warnings,omitempty"` }
Abstract base class for all of the diagnostic logs.
type NotificationEventBacklogStatus ¶
type NotificationEventBacklogStatus struct { EventBacklogStatus *[]EventBacklogStatus `json:"eventBacklogStatus,omitempty"` NotificationBacklogStatus *[]NotificationBacklogStatus `json:"notificationBacklogStatus,omitempty"` }
type NotificationEventField ¶
type NotificationEventField struct { // Gets or sets the type of this field. FieldType *NotificationEventFieldType `json:"fieldType,omitempty"` // Gets or sets the unique identifier of this field. Id *string `json:"id,omitempty"` // Gets or sets the name of this field. Name *string `json:"name,omitempty"` // Gets or sets the path to the field in the event object. This path can be either Json Path or XPath, depending on if the event will be serialized into Json or XML Path *string `json:"path,omitempty"` // Gets or sets the scopes that this field supports. If not specified then the event type scopes apply. SupportedScopes *[]string `json:"supportedScopes,omitempty"` }
Encapsulates the properties of a filterable field. A filterable field is a field in an event that can used to filter notifications for a certain event type.
type NotificationEventFieldOperator ¶
type NotificationEventFieldOperator struct { // Gets or sets the display name of an operator DisplayName *string `json:"displayName,omitempty"` // Gets or sets the id of an operator Id *string `json:"id,omitempty"` }
Encapsulates the properties of a field type. It includes a unique id for the operator and a localized string for display name
type NotificationEventFieldType ¶
type NotificationEventFieldType struct { // Gets or sets the unique identifier of this field type. Id *string `json:"id,omitempty"` OperatorConstraints *[]OperatorConstraint `json:"operatorConstraints,omitempty"` // Gets or sets the list of operators that this type supports. Operators *[]NotificationEventFieldOperator `json:"operators,omitempty"` SubscriptionFieldType *SubscriptionFieldType `json:"subscriptionFieldType,omitempty"` // Gets or sets the value definition of this field like the getValuesMethod and template to display in the UI Value *ValueDefinition `json:"value,omitempty"` }
Encapsulates the properties of a field type. It describes the data type of a field, the operators it support and how to populate it in the UI
type NotificationEventPublisher ¶
type NotificationEventPublisher struct { Id *string `json:"id,omitempty"` SubscriptionManagementInfo *SubscriptionManagement `json:"subscriptionManagementInfo,omitempty"` Url *string `json:"url,omitempty"` }
Encapsulates the properties of a notification event publisher.
type NotificationEventRole ¶
type NotificationEventRole struct { // Gets or sets an Id for that role, this id is used by the event. Id *string `json:"id,omitempty"` // Gets or sets the Name for that role, this name is used for UI display. Name *string `json:"name,omitempty"` // Gets or sets whether this role can be a group or just an individual user SupportsGroups *bool `json:"supportsGroups,omitempty"` }
Encapsulates the properties of an event role. An event Role is used for role based subscription for example for a buildCompletedEvent, one role is request by field
type NotificationEventType ¶
type NotificationEventType struct { Category *NotificationEventTypeCategory `json:"category,omitempty"` // Gets or sets the color representing this event type. Example: rgb(128,245,211) or #fafafa Color *string `json:"color,omitempty"` CustomSubscriptionsAllowed *bool `json:"customSubscriptionsAllowed,omitempty"` EventPublisher *NotificationEventPublisher `json:"eventPublisher,omitempty"` Fields *map[string]NotificationEventField `json:"fields,omitempty"` HasInitiator *bool `json:"hasInitiator,omitempty"` // Gets or sets the icon representing this event type. Can be a URL or a CSS class. Example: css://some-css-class Icon *string `json:"icon,omitempty"` // Gets or sets the unique identifier of this event definition. Id *string `json:"id,omitempty"` // Gets or sets the name of this event definition. Name *string `json:"name,omitempty"` Roles *[]NotificationEventRole `json:"roles,omitempty"` // Gets or sets the scopes that this event type supports SupportedScopes *[]string `json:"supportedScopes,omitempty"` // Gets or sets the rest end point to get this event type details (fields, fields types) Url *string `json:"url,omitempty"` }
Encapsulates the properties of an event type. It defines the fields, that can be used for filtering, for that event type.
type NotificationEventTypeCategory ¶
type NotificationEventTypeCategory struct { // Gets or sets the unique identifier of this category. Id *string `json:"id,omitempty"` // Gets or sets the friendly name of this category. Name *string `json:"name,omitempty"` }
Encapsulates the properties of a category. A category will be used by the UI to group event types
type NotificationJobDiagnosticLog ¶
type NotificationJobDiagnosticLog struct { // Identifier used for correlating to other diagnostics that may have been recorded elsewhere. ActivityId *uuid.UUID `json:"activityId,omitempty"` Description *string `json:"description,omitempty"` EndTime *azuredevops.Time `json:"endTime,omitempty"` Errors *int `json:"errors,omitempty"` // Unique instance identifier. Id *uuid.UUID `json:"id,omitempty"` LogType *string `json:"logType,omitempty"` Messages *[]NotificationDiagnosticLogMessage `json:"messages,omitempty"` Properties *map[string]string `json:"properties,omitempty"` // This identifier depends on the logType. For notification jobs, this will be the job Id. For subscription tracing, this will be a special root Guid with the subscription Id encoded. Source *uuid.UUID `json:"source,omitempty"` StartTime *azuredevops.Time `json:"startTime,omitempty"` Warnings *int `json:"warnings,omitempty"` Result *string `json:"result,omitempty"` Stats *map[string]map[string]int `json:"stats,omitempty"` }
type NotificationOperation ¶
type NotificationOperation string
type NotificationReason ¶
type NotificationReason struct { NotificationReasonType *NotificationReasonType `json:"notificationReasonType,omitempty"` TargetIdentities *[]webapi.IdentityRef `json:"targetIdentities,omitempty"` }
type NotificationReasonType ¶
type NotificationReasonType string
type NotificationStatistic ¶
type NotificationStatistic struct { Date *azuredevops.Time `json:"date,omitempty"` HitCount *int `json:"hitCount,omitempty"` Path *string `json:"path,omitempty"` Type *NotificationStatisticType `json:"type,omitempty"` User *webapi.IdentityRef `json:"user,omitempty"` }
type NotificationStatisticType ¶
type NotificationStatisticType string
type NotificationStatisticsQuery ¶
type NotificationStatisticsQuery struct {
Conditions *[]NotificationStatisticsQueryConditions `json:"conditions,omitempty"`
}
type NotificationStatisticsQueryConditions ¶
type NotificationStatisticsQueryConditions struct { EndDate *azuredevops.Time `json:"endDate,omitempty"` HitCountMinimum *int `json:"hitCountMinimum,omitempty"` Path *string `json:"path,omitempty"` StartDate *azuredevops.Time `json:"startDate,omitempty"` Type *NotificationStatisticType `json:"type,omitempty"` User *webapi.IdentityRef `json:"user,omitempty"` }
type NotificationSubscriber ¶
type NotificationSubscriber struct { // Indicates how the subscriber should be notified by default. DeliveryPreference *NotificationSubscriberDeliveryPreference `json:"deliveryPreference,omitempty"` Flags *SubscriberFlags `json:"flags,omitempty"` // Identifier of the subscriber. Id *uuid.UUID `json:"id,omitempty"` // Preferred email address of the subscriber. A null or empty value indicates no preferred email address has been set. PreferredEmailAddress *string `json:"preferredEmailAddress,omitempty"` }
A subscriber is a user or group that has the potential to receive notifications.
type NotificationSubscriberDeliveryPreference ¶
type NotificationSubscriberDeliveryPreference string
Delivery preference for a subscriber. Indicates how the subscriber should be notified.
type NotificationSubscriberUpdateParameters ¶
type NotificationSubscriberUpdateParameters struct { // New delivery preference for the subscriber (indicates how the subscriber should be notified). DeliveryPreference *NotificationSubscriberDeliveryPreference `json:"deliveryPreference,omitempty"` // New preferred email address for the subscriber. Specify an empty string to clear the current address. PreferredEmailAddress *string `json:"preferredEmailAddress,omitempty"` }
Updates to a subscriber. Typically used to change (or set) a preferred email address or default delivery preference.
type NotificationSubscription ¶
type NotificationSubscription struct { // Links to related resources, APIs, and views for the subscription. Links interface{} `json:"_links,omitempty"` // Admin-managed settings for the subscription. Only applies when the subscriber is a group. AdminSettings *SubscriptionAdminSettings `json:"adminSettings,omitempty"` // Description of the subscription. Typically describes filter criteria which helps identity the subscription. Description *string `json:"description,omitempty"` // Diagnostics for this subscription. Diagnostics *SubscriptionDiagnostics `json:"diagnostics,omitempty"` // Any extra properties like detailed description for different contexts, user/group contexts ExtendedProperties *map[string]string `json:"extendedProperties,omitempty"` // Matching criteria for the subscription. ExpressionFilter Filter *ISubscriptionFilter `json:"filter,omitempty"` // Read-only indicators that further describe the subscription. Flags *SubscriptionFlags `json:"flags,omitempty"` // Channel for delivering notifications triggered by the subscription. Channel *ISubscriptionChannel `json:"channel,omitempty"` // Subscription identifier. Id *string `json:"id,omitempty"` // User that last modified (or created) the subscription. LastModifiedBy *webapi.IdentityRef `json:"lastModifiedBy,omitempty"` // Date when the subscription was last modified. If the subscription has not been updated since it was created, this value will indicate when the subscription was created. ModifiedDate *azuredevops.Time `json:"modifiedDate,omitempty"` // The permissions the user have for this subscriptions. Permissions *SubscriptionPermissions `json:"permissions,omitempty"` // The container in which events must be published from in order to be matched by the subscription. If empty, the scope is the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. Scope *SubscriptionScope `json:"scope,omitempty"` // Status of the subscription. Typically indicates whether the subscription is enabled or not. Status *SubscriptionStatus `json:"status,omitempty"` // Message that provides more details about the status of the subscription. StatusMessage *string `json:"statusMessage,omitempty"` // User or group that will receive notifications for events matching the subscription's filter criteria. Subscriber *webapi.IdentityRef `json:"subscriber,omitempty"` // REST API URL of the subscription. Url *string `json:"url,omitempty"` // User-managed settings for the subscription. Only applies when the subscriber is a group. Typically used to indicate whether the calling user is opted in or out of a group subscription. UserSettings *SubscriptionUserSettings `json:"userSettings,omitempty"` }
A subscription defines criteria for matching events and how the subscription's subscriber should be notified about those events.
type NotificationSubscriptionCreateParameters ¶
type NotificationSubscriptionCreateParameters struct { // Brief description for the new subscription. Typically describes filter criteria which helps identity the subscription. Description *string `json:"description,omitempty"` // Matching criteria for the new subscription. ExpressionFilter Filter *ISubscriptionFilter `json:"filter,omitempty"` // Channel for delivering notifications triggered by the new subscription. Channel *ISubscriptionChannel `json:"channel,omitempty"` // The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically an account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. Scope *SubscriptionScope `json:"scope,omitempty"` // User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. Subscriber *webapi.IdentityRef `json:"subscriber,omitempty"` }
Parameters for creating a new subscription. A subscription defines criteria for matching events and how the subscription's subscriber should be notified about those events.
type NotificationSubscriptionTemplate ¶
type NotificationSubscriptionTemplate struct { Description *string `json:"description,omitempty"` Filter *ISubscriptionFilter `json:"filter,omitempty"` Id *string `json:"id,omitempty"` NotificationEventInformation *NotificationEventType `json:"notificationEventInformation,omitempty"` Type *SubscriptionTemplateType `json:"type,omitempty"` }
type NotificationSubscriptionUpdateParameters ¶
type NotificationSubscriptionUpdateParameters struct { // Admin-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. AdminSettings *SubscriptionAdminSettings `json:"adminSettings,omitempty"` // Updated description for the subscription. Typically describes filter criteria which helps identity the subscription. Description *string `json:"description,omitempty"` // Matching criteria for the subscription. ExpressionFilter Filter *ISubscriptionFilter `json:"filter,omitempty"` // Channel for delivering notifications triggered by the subscription. Channel *ISubscriptionChannel `json:"channel,omitempty"` // The container in which events must be published from in order to be matched by the new subscription. If not specified, defaults to the current host (typically the current account or project collection). For example, a subscription scoped to project A will not produce notifications for events published from project B. Scope *SubscriptionScope `json:"scope,omitempty"` // Updated status for the subscription. Typically used to enable or disable a subscription. Status *SubscriptionStatus `json:"status,omitempty"` // Optional message that provides more details about the updated status. StatusMessage *string `json:"statusMessage,omitempty"` // User-managed settings for the subscription. Only applies to subscriptions where the subscriber is a group. Typically used to opt-in or opt-out a user from a group subscription. UserSettings *SubscriptionUserSettings `json:"userSettings,omitempty"` }
Parameters for updating an existing subscription. A subscription defines criteria for matching events and how the subscription's subscriber should be notified about those events. Note: only the fields to be updated should be set.
type NotificationsEvaluationResult ¶
type NotificationsEvaluationResult struct { // Count of generated notifications Count *int `json:"count,omitempty"` }
Encapsulates notifications result properties. It defines the number of notifications and the recipients of notifications.
type OperatorConstraint ¶
type OperatorConstraint struct { Operator *string `json:"operator,omitempty"` // Gets or sets the list of scopes that this type supports. SupportedScopes *[]string `json:"supportedScopes,omitempty"` }
Encapsulates the properties of an operator constraint. An operator constraint defines if some operator is available only for specific scope like a project scope.
type ProcessedEvent ¶
type ProcessedEvent struct { // All of the users that were associated with this event and their role. Actors *[]webapi.EventActor `json:"actors,omitempty"` AllowedChannels *string `json:"allowedChannels,omitempty"` ArtifactUri *string `json:"artifactUri,omitempty"` DeliveryIdentities *ProcessingIdentities `json:"deliveryIdentities,omitempty"` // Evaluations for each user Evaluations *map[uuid.UUID]SubscriptionEvaluation `json:"evaluations,omitempty"` EventId *int `json:"eventId,omitempty"` // Which members were excluded from evaluation (only applies to ActorMatcher subscriptions) Exclusions *[]webapi.EventActor `json:"exclusions,omitempty"` // Which members were included for evaluation (only applies to ActorMatcher subscriptions) Inclusions *[]webapi.EventActor `json:"inclusions,omitempty"` Notifications *[]GeneratedNotification `json:"notifications,omitempty"` }
type ProcessingDiagnosticIdentity ¶
type ProcessingDiagnosticIdentity struct { DisplayName *string `json:"displayName,omitempty"` EmailAddress *string `json:"emailAddress,omitempty"` Id *uuid.UUID `json:"id,omitempty"` DeliveryPreference *string `json:"deliveryPreference,omitempty"` IsActive *bool `json:"isActive,omitempty"` IsGroup *bool `json:"isGroup,omitempty"` Message *string `json:"message,omitempty"` }
type ProcessingIdentities ¶
type ProcessingIdentities struct { ExcludedIdentities *map[uuid.UUID]ProcessingDiagnosticIdentity `json:"excludedIdentities,omitempty"` IncludedIdentities *map[uuid.UUID]ProcessingDiagnosticIdentity `json:"includedIdentities,omitempty"` Messages *[]NotificationDiagnosticLogMessage `json:"messages,omitempty"` MissingIdentities *[]uuid.UUID `json:"missingIdentities,omitempty"` Properties *map[string]string `json:"properties,omitempty"` }
type QuerySubscriptionsArgs ¶
type QuerySubscriptionsArgs struct { // (required) SubscriptionQuery *SubscriptionQuery }
Arguments for the QuerySubscriptions function
type RoleBasedFilter ¶
type RoleBasedFilter struct { EventType *string `json:"eventType,omitempty"` Criteria *ExpressionFilterModel `json:"criteria,omitempty"` Type *string `json:"type,omitempty"` Exclusions *[]string `json:"exclusions,omitempty"` Inclusions *[]string `json:"inclusions,omitempty"` }
type ServiceBusSubscriptionChannel ¶
type ServiceBusSubscriptionChannel struct {
Type *string `json:"type,omitempty"`
}
type ServiceHooksSubscriptionChannel ¶
type ServiceHooksSubscriptionChannel struct {
Type *string `json:"type,omitempty"`
}
type SoapSubscriptionChannel ¶
type SubscriptionAdminSettings ¶
type SubscriptionAdminSettings struct { // If true, members of the group subscribed to the associated subscription cannot opt (choose not to get notified) BlockUserOptOut *bool `json:"blockUserOptOut,omitempty"` }
Admin-managed settings for a group subscription.
type SubscriptionDiagnostics ¶
type SubscriptionDiagnostics struct { // Diagnostics settings for retaining delivery results. Used for Service Hooks subscriptions. DeliveryResults *SubscriptionTracing `json:"deliveryResults,omitempty"` // Diagnostics settings for troubleshooting notification delivery. DeliveryTracing *SubscriptionTracing `json:"deliveryTracing,omitempty"` // Diagnostics settings for troubleshooting event matching. EvaluationTracing *SubscriptionTracing `json:"evaluationTracing,omitempty"` }
Contains all the diagnostics settings for a subscription.
type SubscriptionEvaluation ¶
type SubscriptionEvaluation struct { Clauses *[]SubscriptionEvaluationClause `json:"clauses,omitempty"` User *DiagnosticIdentity `json:"user,omitempty"` }
type SubscriptionEvaluationRequest ¶
type SubscriptionEvaluationRequest struct { // The min created date for the events used for matching in UTC. Use all events created since this date MinEventsCreatedDate *azuredevops.Time `json:"minEventsCreatedDate,omitempty"` // User or group that will receive notifications for events matching the subscription's filter criteria. If not specified, defaults to the calling user. SubscriptionCreateParameters *NotificationSubscriptionCreateParameters `json:"subscriptionCreateParameters,omitempty"` }
Encapsulates the properties of a SubscriptionEvaluationRequest. It defines the subscription to be evaluated and time interval for events used in evaluation.
type SubscriptionEvaluationResult ¶
type SubscriptionEvaluationResult struct { // Subscription evaluation job status EvaluationJobStatus *EvaluationOperationStatus `json:"evaluationJobStatus,omitempty"` // Subscription evaluation events results. Events *EventsEvaluationResult `json:"events,omitempty"` // The requestId which is the subscription evaluation jobId Id *uuid.UUID `json:"id,omitempty"` // Subscription evaluation notification results. Notifications *NotificationsEvaluationResult `json:"notifications,omitempty"` }
Encapsulates the subscription evaluation results. It defines the Date Interval that was used, number of events evaluated and events and notifications results
type SubscriptionEvaluationSettings ¶
type SubscriptionEvaluationSettings struct { // Indicates whether subscription evaluation before saving is enabled or not Enabled *bool `json:"enabled,omitempty"` // Time interval to check on subscription evaluation job in seconds Interval *int `json:"interval,omitempty"` // Threshold on the number of notifications for considering a subscription too noisy Threshold *int `json:"threshold,omitempty"` // Time out for the subscription evaluation check in seconds TimeOut *int `json:"timeOut,omitempty"` }
Encapsulates the subscription evaluation settings needed for the UI
type SubscriptionFieldType ¶
type SubscriptionFieldType string
type SubscriptionFlags ¶
type SubscriptionFlags string
[Flags] Read-only indicators that further describe the subscription.
type SubscriptionManagement ¶
type SubscriptionManagement struct { ServiceInstanceType *uuid.UUID `json:"serviceInstanceType,omitempty"` Url *string `json:"url,omitempty"` }
Encapsulates the properties needed to manage subscriptions, opt in and out of subscriptions.
type SubscriptionPermissions ¶
type SubscriptionPermissions string
[Flags] The permissions that a user has to a certain subscription
type SubscriptionQuery ¶
type SubscriptionQuery struct { // One or more conditions to query on. If more than 2 conditions are specified, the combined results of each condition is returned (i.e. conditions are logically OR'ed). Conditions *[]SubscriptionQueryCondition `json:"conditions,omitempty"` // Flags the refine the types of subscriptions that will be returned from the query. QueryFlags *SubscriptionQueryFlags `json:"queryFlags,omitempty"` }
Notification subscriptions query input.
type SubscriptionQueryCondition ¶
type SubscriptionQueryCondition struct { // Filter conditions that matching subscriptions must have. Typically only the filter's type and event type are used for matching. Filter *ISubscriptionFilter `json:"filter,omitempty"` // Flags to specify the type subscriptions to query for. Flags *SubscriptionFlags `json:"flags,omitempty"` // Scope that matching subscriptions must have. Scope *string `json:"scope,omitempty"` // ID of the subscriber (user or group) that matching subscriptions must be subscribed to. SubscriberId *uuid.UUID `json:"subscriberId,omitempty"` // ID of the subscription to query for. SubscriptionId *string `json:"subscriptionId,omitempty"` }
Conditions a subscription must match to qualify for the query result set. Not all fields are required. A subscription must match all conditions specified in order to qualify for the result set.
type SubscriptionQueryFlags ¶
type SubscriptionQueryFlags string
[Flags] Flags that influence the result set of a subscription query.
type SubscriptionScope ¶
type SubscriptionScope struct { // Required: This is the identity of the scope for the type. Id *uuid.UUID `json:"id,omitempty"` // Optional: The display name of the scope Name *string `json:"name,omitempty"` // Required: The event specific type of a scope. Type *string `json:"type,omitempty"` }
A resource, typically an account or project, in which events are published from.
type SubscriptionStatus ¶
type SubscriptionStatus string
Subscription status values. A value greater than or equal to zero indicates the subscription is enabled. A negative value indicates the subscription is disabled.
type SubscriptionTemplateQueryFlags ¶
type SubscriptionTemplateQueryFlags string
[Flags] Set of flags used to determine which set of templates is retrieved when querying for subscription templates
type SubscriptionTemplateType ¶
type SubscriptionTemplateType string
type SubscriptionTraceDiagnosticLog ¶
type SubscriptionTraceDiagnosticLog struct { // Identifier used for correlating to other diagnostics that may have been recorded elsewhere. ActivityId *uuid.UUID `json:"activityId,omitempty"` Description *string `json:"description,omitempty"` EndTime *azuredevops.Time `json:"endTime,omitempty"` Errors *int `json:"errors,omitempty"` // Unique instance identifier. Id *uuid.UUID `json:"id,omitempty"` LogType *string `json:"logType,omitempty"` Messages *[]NotificationDiagnosticLogMessage `json:"messages,omitempty"` Properties *map[string]string `json:"properties,omitempty"` // This identifier depends on the logType. For notification jobs, this will be the job Id. For subscription tracing, this will be a special root Guid with the subscription Id encoded. Source *uuid.UUID `json:"source,omitempty"` StartTime *azuredevops.Time `json:"startTime,omitempty"` Warnings *int `json:"warnings,omitempty"` // Indicates the job Id that processed or delivered this subscription JobId *uuid.UUID `json:"jobId,omitempty"` // Indicates unique instance identifier for the job that processed or delivered this subscription JobInstanceId *uuid.UUID `json:"jobInstanceId,omitempty"` SubscriptionId *string `json:"subscriptionId,omitempty"` }
type SubscriptionTraceEventProcessingLog ¶
type SubscriptionTraceEventProcessingLog struct { // Identifier used for correlating to other diagnostics that may have been recorded elsewhere. ActivityId *uuid.UUID `json:"activityId,omitempty"` Description *string `json:"description,omitempty"` EndTime *azuredevops.Time `json:"endTime,omitempty"` Errors *int `json:"errors,omitempty"` // Unique instance identifier. Id *uuid.UUID `json:"id,omitempty"` LogType *string `json:"logType,omitempty"` Messages *[]NotificationDiagnosticLogMessage `json:"messages,omitempty"` Properties *map[string]string `json:"properties,omitempty"` // This identifier depends on the logType. For notification jobs, this will be the job Id. For subscription tracing, this will be a special root Guid with the subscription Id encoded. Source *uuid.UUID `json:"source,omitempty"` StartTime *azuredevops.Time `json:"startTime,omitempty"` Warnings *int `json:"warnings,omitempty"` // Indicates the job Id that processed or delivered this subscription JobId *uuid.UUID `json:"jobId,omitempty"` // Indicates unique instance identifier for the job that processed or delivered this subscription JobInstanceId *uuid.UUID `json:"jobInstanceId,omitempty"` SubscriptionId *string `json:"subscriptionId,omitempty"` EvaluationIdentities *ProcessingIdentities `json:"evaluationIdentities,omitempty"` Channel *string `json:"channel,omitempty"` // Which members opted out from receiving notifications from this subscription OptedOut *[]DiagnosticIdentity `json:"optedOut,omitempty"` ProcessedEvents *map[int]ProcessedEvent `json:"processedEvents,omitempty"` }
type SubscriptionTraceNotificationDeliveryLog ¶
type SubscriptionTraceNotificationDeliveryLog struct { // Identifier used for correlating to other diagnostics that may have been recorded elsewhere. ActivityId *uuid.UUID `json:"activityId,omitempty"` Description *string `json:"description,omitempty"` EndTime *azuredevops.Time `json:"endTime,omitempty"` Errors *int `json:"errors,omitempty"` // Unique instance identifier. Id *uuid.UUID `json:"id,omitempty"` LogType *string `json:"logType,omitempty"` Messages *[]NotificationDiagnosticLogMessage `json:"messages,omitempty"` Properties *map[string]string `json:"properties,omitempty"` // This identifier depends on the logType. For notification jobs, this will be the job Id. For subscription tracing, this will be a special root Guid with the subscription Id encoded. Source *uuid.UUID `json:"source,omitempty"` StartTime *azuredevops.Time `json:"startTime,omitempty"` Warnings *int `json:"warnings,omitempty"` // Indicates the job Id that processed or delivered this subscription JobId *uuid.UUID `json:"jobId,omitempty"` // Indicates unique instance identifier for the job that processed or delivered this subscription JobInstanceId *uuid.UUID `json:"jobInstanceId,omitempty"` SubscriptionId *string `json:"subscriptionId,omitempty"` Notifications *[]DiagnosticNotification `json:"notifications,omitempty"` }
type SubscriptionTracing ¶
type SubscriptionTracing struct { // Indicates whether the diagnostic tracing is enabled or not. Enabled *bool `json:"enabled,omitempty"` // Trace until the specified end date. EndDate *azuredevops.Time `json:"endDate,omitempty"` // The maximum number of result details to trace. MaxTracedEntries *int `json:"maxTracedEntries,omitempty"` // The date and time tracing started. StartDate *azuredevops.Time `json:"startDate,omitempty"` // Trace until remaining count reaches 0. TracedEntries *int `json:"tracedEntries,omitempty"` }
Data controlling a single diagnostic setting for a subscription.
type SubscriptionUserSettings ¶
type SubscriptionUserSettings struct { // Indicates whether the user will receive notifications for the associated group subscription. OptedOut *bool `json:"optedOut,omitempty"` }
User-managed settings for a group subscription.
type UnsupportedFilter ¶
type UnsupportedSubscriptionChannel ¶
type UnsupportedSubscriptionChannel struct {
Type *string `json:"type,omitempty"`
}
type UpdateSettingsArgs ¶
type UpdateSettingsArgs struct { // (required) UpdateParameters *NotificationAdminSettingsUpdateParameters }
Arguments for the UpdateSettings function
type UpdateSubscriberArgs ¶
type UpdateSubscriberArgs struct { // (required) UpdateParameters *NotificationSubscriberUpdateParameters // (required) ID of the user or group. SubscriberId *uuid.UUID }
Arguments for the UpdateSubscriber function
type UpdateSubscripitonDiagnosticsParameters ¶
type UpdateSubscripitonDiagnosticsParameters struct { // Diagnostics settings for retaining delivery results. Used for Service Hooks subscriptions. DeliveryResults *UpdateSubscripitonTracingParameters `json:"deliveryResults,omitempty"` // Diagnostics settings for troubleshooting notification delivery. DeliveryTracing *UpdateSubscripitonTracingParameters `json:"deliveryTracing,omitempty"` // Diagnostics settings for troubleshooting event matching. EvaluationTracing *UpdateSubscripitonTracingParameters `json:"evaluationTracing,omitempty"` }
Parameters to update diagnostics settings for a subscription.
type UpdateSubscripitonTracingParameters ¶
type UpdateSubscripitonTracingParameters struct { // Indicates whether to enable to disable the diagnostic tracing. Enabled *bool `json:"enabled,omitempty"` }
Parameters to update a specific diagnostic setting.
type UpdateSubscriptionArgs ¶
type UpdateSubscriptionArgs struct { // (required) UpdateParameters *NotificationSubscriptionUpdateParameters // (required) SubscriptionId *string }
Arguments for the UpdateSubscription function
type UpdateSubscriptionDiagnosticsArgs ¶
type UpdateSubscriptionDiagnosticsArgs struct { // (required) UpdateParameters *UpdateSubscripitonDiagnosticsParameters // (required) The id of the notifications subscription. SubscriptionId *string }
Arguments for the UpdateSubscriptionDiagnostics function
type UpdateSubscriptionUserSettingsArgs ¶
type UpdateSubscriptionUserSettingsArgs struct { // (required) UserSettings *SubscriptionUserSettings // (required) SubscriptionId *string // (required) ID of the user UserId *uuid.UUID }
Arguments for the UpdateSubscriptionUserSettings function
type UserSubscriptionChannel ¶
type ValueDefinition ¶
type ValueDefinition struct { // Gets or sets the data source. DataSource *[]forminput.InputValue `json:"dataSource,omitempty"` // Gets or sets the rest end point. EndPoint *string `json:"endPoint,omitempty"` // Gets or sets the result template. ResultTemplate *string `json:"resultTemplate,omitempty"` }
Encapsulates the properties of a field value definition. It has the information needed to retrieve the list of possible values for a certain field and how to handle that field values in the UI. This information includes what type of object this value represents, which property to use for UI display and which property to use for saving the subscription