/// <summary> /// Initializes a new instance of the ChaosMoveSecondaryFaultScheduledEvent class. /// </summary> /// <param name="eventInstanceId">The identifier for the FabricEvent instance.</param> /// <param name="timeStamp">The time event was logged.</param> /// <param name="partitionId">An internal ID used by Service Fabric to uniquely identify a partition. This is a /// randomly generated GUID when the service was created. The partition ID is unique and does not change for the /// lifetime of the service. If the same service was deleted and recreated the IDs of its partitions would be /// different.</param> /// <param name="faultGroupId">Id of fault group.</param> /// <param name="faultId">Id of fault.</param> /// <param name="serviceName">Service name.</param> /// <param name="sourceNode">The name of a Service Fabric node.</param> /// <param name="destinationNode">The name of a Service Fabric node.</param> /// <param name="forcedMove">Indicates a forced move.</param> /// <param name="hasCorrelatedEvents">Shows there is existing related events available.</param> public ChaosMoveSecondaryFaultScheduledEvent( Guid?eventInstanceId, DateTime?timeStamp, PartitionId partitionId, Guid?faultGroupId, Guid?faultId, string serviceName, NodeName sourceNode, NodeName destinationNode, bool?forcedMove, bool?hasCorrelatedEvents = default(bool?)) : base( eventInstanceId, timeStamp, Common.FabricEventKind.ChaosMoveSecondaryFaultScheduled, partitionId, hasCorrelatedEvents) { faultGroupId.ThrowIfNull(nameof(faultGroupId)); faultId.ThrowIfNull(nameof(faultId)); serviceName.ThrowIfNull(nameof(serviceName)); sourceNode.ThrowIfNull(nameof(sourceNode)); destinationNode.ThrowIfNull(nameof(destinationNode)); forcedMove.ThrowIfNull(nameof(forcedMove)); this.FaultGroupId = faultGroupId; this.FaultId = faultId; this.ServiceName = serviceName; this.SourceNode = sourceNode; this.DestinationNode = destinationNode; this.ForcedMove = forcedMove; }
/// <summary> /// Initializes a new instance of the ChaosMovePrimaryFaultScheduledEvent class. /// </summary> /// <param name="eventInstanceId">The identifier for the FabricEvent instance.</param> /// <param name="timeStamp">The time event was logged.</param> /// <param name="partitionId">An internal ID used by Service Fabric to uniquely identify a partition. This is a /// randomly generated GUID when the service was created. The partition ID is unique and does not change for the /// lifetime of the service. If the same service was deleted and recreated the IDs of its partitions would be /// different.</param> /// <param name="faultGroupId">Id of fault group.</param> /// <param name="faultId">Id of fault.</param> /// <param name="serviceName">Service name.</param> /// <param name="nodeTo">The name of a Service Fabric node.</param> /// <param name="forcedMove">Indicates a forced move.</param> /// <param name="hasCorrelatedEvents">Shows there is existing related events available.</param> public ChaosMovePrimaryFaultScheduledEvent( Guid?eventInstanceId, DateTime?timeStamp, PartitionId partitionId, Guid?faultGroupId, Guid?faultId, string serviceName, NodeName nodeTo, bool?forcedMove, bool?hasCorrelatedEvents = default(bool?)) : base( eventInstanceId, timeStamp, Common.FabricEventKind.ChaosMovePrimaryFaultScheduled, partitionId, hasCorrelatedEvents) { faultGroupId.ThrowIfNull(nameof(faultGroupId)); faultId.ThrowIfNull(nameof(faultId)); serviceName.ThrowIfNull(nameof(serviceName)); nodeTo.ThrowIfNull(nameof(nodeTo)); forcedMove.ThrowIfNull(nameof(forcedMove)); this.FaultGroupId = faultGroupId; this.FaultId = faultId; this.ServiceName = serviceName; this.NodeTo = nodeTo; this.ForcedMove = forcedMove; }
/// <summary> /// Initializes a new instance of the ChaosRestartCodePackageFaultScheduledEvent class. /// </summary> /// <param name="eventInstanceId">The identifier for the FabricEvent instance.</param> /// <param name="timeStamp">The time event was logged.</param> /// <param name="applicationId">The identity of the application. This is an encoded representation of the application /// name. This is used in the REST APIs to identify the application resource. /// Starting in version 6.0, hierarchical names are delimited with the "\~" character. For example, if the application /// name is "fabric:/myapp/app1", /// the application identity would be "myapp\~app1" in 6.0+ and "myapp/app1" in previous versions. /// </param> /// <param name="faultGroupId">Id of fault group.</param> /// <param name="faultId">Id of fault.</param> /// <param name="nodeName">The name of a Service Fabric node.</param> /// <param name="serviceManifestName">Service manifest name.</param> /// <param name="codePackageName">Code package name.</param> /// <param name="servicePackageActivationId">Id of Service package activation.</param> /// <param name="hasCorrelatedEvents">Shows there is existing related events available.</param> public ChaosRestartCodePackageFaultScheduledEvent( Guid?eventInstanceId, DateTime?timeStamp, string applicationId, Guid?faultGroupId, Guid?faultId, NodeName nodeName, string serviceManifestName, string codePackageName, string servicePackageActivationId, bool?hasCorrelatedEvents = default(bool?)) : base( eventInstanceId, timeStamp, Common.FabricEventKind.ChaosRestartCodePackageFaultScheduled, applicationId, hasCorrelatedEvents) { faultGroupId.ThrowIfNull(nameof(faultGroupId)); faultId.ThrowIfNull(nameof(faultId)); nodeName.ThrowIfNull(nameof(nodeName)); serviceManifestName.ThrowIfNull(nameof(serviceManifestName)); codePackageName.ThrowIfNull(nameof(codePackageName)); servicePackageActivationId.ThrowIfNull(nameof(servicePackageActivationId)); this.FaultGroupId = faultGroupId; this.FaultId = faultId; this.NodeName = nodeName; this.ServiceManifestName = serviceManifestName; this.CodePackageName = codePackageName; this.ServicePackageActivationId = servicePackageActivationId; }
/// <summary> /// Initializes a new instance of the PartitionPrimaryMoveAnalysisEvent class. /// </summary> /// <param name="eventInstanceId">The identifier for the FabricEvent instance.</param> /// <param name="timeStamp">The time event was logged.</param> /// <param name="partitionId">An internal ID used by Service Fabric to uniquely identify a partition. This is a /// randomly generated GUID when the service was created. The partition ID is unique and does not change for the /// lifetime of the service. If the same service was deleted and recreated the IDs of its partitions would be /// different.</param> /// <param name="metadata">Metadata about an Analysis Event.</param> /// <param name="whenMoveCompleted">Time when the move was completed.</param> /// <param name="previousNode">The name of a Service Fabric node.</param> /// <param name="currentNode">The name of a Service Fabric node.</param> /// <param name="moveReason">Move reason.</param> /// <param name="relevantTraces">Relevant traces.</param> /// <param name="category">The category of event.</param> /// <param name="hasCorrelatedEvents">Shows there is existing related events available.</param> public PartitionPrimaryMoveAnalysisEvent( Guid?eventInstanceId, DateTime?timeStamp, PartitionId partitionId, AnalysisEventMetadata metadata, DateTime?whenMoveCompleted, NodeName previousNode, NodeName currentNode, string moveReason, string relevantTraces, string category = default(string), bool?hasCorrelatedEvents = default(bool?)) : base( eventInstanceId, timeStamp, Common.FabricEventKind.PartitionPrimaryMoveAnalysis, partitionId, metadata, category, hasCorrelatedEvents) { whenMoveCompleted.ThrowIfNull(nameof(whenMoveCompleted)); previousNode.ThrowIfNull(nameof(previousNode)); currentNode.ThrowIfNull(nameof(currentNode)); moveReason.ThrowIfNull(nameof(moveReason)); relevantTraces.ThrowIfNull(nameof(relevantTraces)); this.WhenMoveCompleted = whenMoveCompleted; this.PreviousNode = previousNode; this.CurrentNode = currentNode; this.MoveReason = moveReason; this.RelevantTraces = relevantTraces; }
/// <summary> /// Initializes a new instance of the PartitionReconfiguredEvent class. /// </summary> /// <param name="eventInstanceId">The identifier for the FabricEvent instance.</param> /// <param name="timeStamp">The time event was logged.</param> /// <param name="partitionId">An internal ID used by Service Fabric to uniquely identify a partition. This is a /// randomly generated GUID when the service was created. The partition ID is unique and does not change for the /// lifetime of the service. If the same service was deleted and recreated the IDs of its partitions would be /// different.</param> /// <param name="nodeName">The name of a Service Fabric node.</param> /// <param name="nodeInstanceId">Id of Node instance.</param> /// <param name="serviceType">Type of Service.</param> /// <param name="ccEpochDataLossVersion">CcEpochDataLoss version.</param> /// <param name="ccEpochConfigVersion">CcEpochConfig version.</param> /// <param name="reconfigType">Type of reconfiguration.</param> /// <param name="result">Describes reconfiguration result.</param> /// <param name="phase0DurationMs">Duration of Phase0 in milli-seconds.</param> /// <param name="phase1DurationMs">Duration of Phase1 in milli-seconds.</param> /// <param name="phase2DurationMs">Duration of Phase2 in milli-seconds.</param> /// <param name="phase3DurationMs">Duration of Phase3 in milli-seconds.</param> /// <param name="phase4DurationMs">Duration of Phase4 in milli-seconds.</param> /// <param name="totalDurationMs">Total duration in milli-seconds.</param> /// <param name="category">The category of event.</param> /// <param name="hasCorrelatedEvents">Shows there is existing related events available.</param> public PartitionReconfiguredEvent( Guid?eventInstanceId, DateTime?timeStamp, PartitionId partitionId, NodeName nodeName, string nodeInstanceId, string serviceType, long?ccEpochDataLossVersion, long?ccEpochConfigVersion, string reconfigType, string result, double?phase0DurationMs, double?phase1DurationMs, double?phase2DurationMs, double?phase3DurationMs, double?phase4DurationMs, double?totalDurationMs, string category = default(string), bool?hasCorrelatedEvents = default(bool?)) : base( eventInstanceId, timeStamp, Common.FabricEventKind.PartitionReconfigured, partitionId, category, hasCorrelatedEvents) { nodeName.ThrowIfNull(nameof(nodeName)); nodeInstanceId.ThrowIfNull(nameof(nodeInstanceId)); serviceType.ThrowIfNull(nameof(serviceType)); ccEpochDataLossVersion.ThrowIfNull(nameof(ccEpochDataLossVersion)); ccEpochConfigVersion.ThrowIfNull(nameof(ccEpochConfigVersion)); reconfigType.ThrowIfNull(nameof(reconfigType)); result.ThrowIfNull(nameof(result)); phase0DurationMs.ThrowIfNull(nameof(phase0DurationMs)); phase1DurationMs.ThrowIfNull(nameof(phase1DurationMs)); phase2DurationMs.ThrowIfNull(nameof(phase2DurationMs)); phase3DurationMs.ThrowIfNull(nameof(phase3DurationMs)); phase4DurationMs.ThrowIfNull(nameof(phase4DurationMs)); totalDurationMs.ThrowIfNull(nameof(totalDurationMs)); this.NodeName = nodeName; this.NodeInstanceId = nodeInstanceId; this.ServiceType = serviceType; this.CcEpochDataLossVersion = ccEpochDataLossVersion; this.CcEpochConfigVersion = ccEpochConfigVersion; this.ReconfigType = reconfigType; this.Result = result; this.Phase0DurationMs = phase0DurationMs; this.Phase1DurationMs = phase1DurationMs; this.Phase2DurationMs = phase2DurationMs; this.Phase3DurationMs = phase3DurationMs; this.Phase4DurationMs = phase4DurationMs; this.TotalDurationMs = totalDurationMs; }
/// <summary> /// Initializes a new instance of the DeployedServicePackageNewHealthReportEvent class. /// </summary> /// <param name="eventInstanceId">The identifier for the FabricEvent instance.</param> /// <param name="timeStamp">The time event was logged.</param> /// <param name="applicationId">The identity of the application. This is an encoded representation of the application /// name. This is used in the REST APIs to identify the application resource. /// Starting in version 6.0, hierarchical names are delimited with the "\~" character. For example, if the application /// name is "fabric:/myapp/app1", /// the application identity would be "myapp\~app1" in 6.0+ and "myapp/app1" in previous versions. /// </param> /// <param name="serviceManifestName">Service manifest name.</param> /// <param name="servicePackageInstanceId">Id of Service package instance.</param> /// <param name="servicePackageActivationId">Id of Service package activation.</param> /// <param name="nodeName">The name of a Service Fabric node.</param> /// <param name="sourceId">Id of report source.</param> /// <param name="property">Describes the property.</param> /// <param name="healthState">Describes the property health state.</param> /// <param name="timeToLiveMs">Time to live in milli-seconds.</param> /// <param name="sequenceNumber">Sequence number of report.</param> /// <param name="description">Description of report.</param> /// <param name="removeWhenExpired">Indicates the removal when it expires.</param> /// <param name="sourceUtcTimestamp">Source time.</param> /// <param name="category">The category of event.</param> /// <param name="hasCorrelatedEvents">Shows there is existing related events available.</param> public DeployedServicePackageNewHealthReportEvent( Guid?eventInstanceId, DateTime?timeStamp, string applicationId, string serviceManifestName, long?servicePackageInstanceId, string servicePackageActivationId, NodeName nodeName, string sourceId, string property, string healthState, long?timeToLiveMs, long?sequenceNumber, string description, bool?removeWhenExpired, DateTime?sourceUtcTimestamp, string category = default(string), bool?hasCorrelatedEvents = default(bool?)) : base( eventInstanceId, timeStamp, Common.FabricEventKind.DeployedServicePackageNewHealthReport, applicationId, category, hasCorrelatedEvents) { serviceManifestName.ThrowIfNull(nameof(serviceManifestName)); servicePackageInstanceId.ThrowIfNull(nameof(servicePackageInstanceId)); servicePackageActivationId.ThrowIfNull(nameof(servicePackageActivationId)); nodeName.ThrowIfNull(nameof(nodeName)); sourceId.ThrowIfNull(nameof(sourceId)); property.ThrowIfNull(nameof(property)); healthState.ThrowIfNull(nameof(healthState)); timeToLiveMs.ThrowIfNull(nameof(timeToLiveMs)); sequenceNumber.ThrowIfNull(nameof(sequenceNumber)); description.ThrowIfNull(nameof(description)); removeWhenExpired.ThrowIfNull(nameof(removeWhenExpired)); sourceUtcTimestamp.ThrowIfNull(nameof(sourceUtcTimestamp)); this.ServiceManifestName = serviceManifestName; this.ServicePackageInstanceId = servicePackageInstanceId; this.ServicePackageActivationId = servicePackageActivationId; this.NodeName = nodeName; this.SourceId = sourceId; this.Property = property; this.HealthState = healthState; this.TimeToLiveMs = timeToLiveMs; this.SequenceNumber = sequenceNumber; this.Description = description; this.RemoveWhenExpired = removeWhenExpired; this.SourceUtcTimestamp = sourceUtcTimestamp; }
/// <summary> /// Initializes a new instance of the NodeEvent class. /// </summary> /// <param name="eventInstanceId">The identifier for the FabricEvent instance.</param> /// <param name="timeStamp">The time event was logged.</param> /// <param name="kind">The kind of FabricEvent.</param> /// <param name="nodeName">The name of a Service Fabric node.</param> /// <param name="hasCorrelatedEvents">Shows there is existing related events available.</param> public NodeEvent( Guid?eventInstanceId, DateTime?timeStamp, FabricEventKind?kind, NodeName nodeName, bool?hasCorrelatedEvents = default(bool?)) : base( eventInstanceId, timeStamp, Common.FabricEventKind.NodeEvent, hasCorrelatedEvents) { nodeName.ThrowIfNull(nameof(nodeName)); this.NodeName = nodeName; }
/// <summary> /// Initializes a new instance of the DeployServicePackageToNodeDescription class. /// </summary> /// <param name="serviceManifestName">The name of service manifest whose packages need to be downloaded.</param> /// <param name="applicationTypeName">The application type name as defined in the application manifest.</param> /// <param name="applicationTypeVersion">The version of the application type as defined in the application /// manifest.</param> /// <param name="nodeName">The name of a Service Fabric node.</param> /// <param name="packageSharingPolicy">List of package sharing policy information.</param> public DeployServicePackageToNodeDescription( string serviceManifestName, string applicationTypeName, string applicationTypeVersion, NodeName nodeName, IEnumerable <PackageSharingPolicyInfo> packageSharingPolicy = default(IEnumerable <PackageSharingPolicyInfo>)) { serviceManifestName.ThrowIfNull(nameof(serviceManifestName)); applicationTypeName.ThrowIfNull(nameof(applicationTypeName)); applicationTypeVersion.ThrowIfNull(nameof(applicationTypeVersion)); nodeName.ThrowIfNull(nameof(nodeName)); this.ServiceManifestName = serviceManifestName; this.ApplicationTypeName = applicationTypeName; this.ApplicationTypeVersion = applicationTypeVersion; this.NodeName = nodeName; this.PackageSharingPolicy = packageSharingPolicy; }