Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

const models = require('./index');

/**
* Describes the horizontal auto scaling mechanism that adds or removes
* replicas (containers or container groups).
*
* @extends models['AutoScalingMechanism']
*/
class AddRemoveReplicaScalingMechanism extends models['AutoScalingMechanism'] {
/**
* Create a AddRemoveReplicaScalingMechanism.
* @member {number} minCount Minimum number of containers (scale down won't
* be performed below this number).
* @member {number} maxCount Maximum number of containers (scale up won't be
* performed above this number).
* @member {number} scaleIncrement Each time auto scaling is performed, this
* number of containers will be added or removed.
*/
constructor() {
super();
}

/**
* Defines the metadata of AddRemoveReplicaScalingMechanism
*
* @returns {object} metadata of AddRemoveReplicaScalingMechanism
*
*/
mapper() {
return {
required: false,
serializedName: 'AddRemoveReplica',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'kind',
clientName: 'kind'
},
uberParent: 'AutoScalingMechanism',
className: 'AddRemoveReplicaScalingMechanism',
modelProperties: {
kind: {
required: true,
serializedName: 'kind',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
minCount: {
required: true,
serializedName: 'minCount',
type: {
name: 'Number'
}
},
maxCount: {
required: true,
serializedName: 'maxCount',
type: {
name: 'Number'
}
},
scaleIncrement: {
required: true,
serializedName: 'scaleIncrement',
type: {
name: 'Number'
}
}
}
}
};
}
}

module.exports = AddRemoveReplicaScalingMechanism;
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

const models = require('./index');

/**
* Container Exited event.
*
* @extends models['ApplicationEvent']
*/
class ApplicationContainerInstanceExitedEvent extends models['ApplicationEvent'] {
/**
* Create a ApplicationContainerInstanceExitedEvent.
* @member {string} serviceName Name of Service.
* @member {string} servicePackageName Name of Service package.
* @member {string} servicePackageActivationId Activation Id of Service
* package.
* @member {boolean} isExclusive Indicates IsExclusive flag.
* @member {string} codePackageName Name of Code package.
* @member {string} entryPointType Type of EntryPoint.
* @member {string} imageName Name of Container image.
* @member {string} containerName Name of Container.
* @member {string} hostId Host Id.
* @member {number} exitCode Exit code of process.
* @member {boolean} unexpectedTermination Indicates if termination is
* unexpected.
* @member {date} startTime Start time of process.
*/
constructor() {
super();
}

/**
* Defines the metadata of ApplicationContainerInstanceExitedEvent
*
* @returns {object} metadata of ApplicationContainerInstanceExitedEvent
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationContainerInstanceExited',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'Kind',
clientName: 'kind'
},
uberParent: 'FabricEvent',
className: 'ApplicationContainerInstanceExitedEvent',
modelProperties: {
eventInstanceId: {
required: true,
serializedName: 'EventInstanceId',
type: {
name: 'String'
}
},
category: {
required: false,
serializedName: 'Category',
type: {
name: 'String'
}
},
timeStamp: {
required: true,
serializedName: 'TimeStamp',
type: {
name: 'DateTime'
}
},
hasCorrelatedEvents: {
required: false,
serializedName: 'HasCorrelatedEvents',
type: {
name: 'Boolean'
}
},
kind: {
required: true,
serializedName: 'Kind',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
applicationId: {
required: true,
serializedName: 'ApplicationId',
type: {
name: 'String'
}
},
serviceName: {
required: true,
serializedName: 'ServiceName',
type: {
name: 'String'
}
},
servicePackageName: {
required: true,
serializedName: 'ServicePackageName',
type: {
name: 'String'
}
},
servicePackageActivationId: {
required: true,
serializedName: 'ServicePackageActivationId',
type: {
name: 'String'
}
},
isExclusive: {
required: true,
serializedName: 'IsExclusive',
type: {
name: 'Boolean'
}
},
codePackageName: {
required: true,
serializedName: 'CodePackageName',
type: {
name: 'String'
}
},
entryPointType: {
required: true,
serializedName: 'EntryPointType',
type: {
name: 'String'
}
},
imageName: {
required: true,
serializedName: 'ImageName',
type: {
name: 'String'
}
},
containerName: {
required: true,
serializedName: 'ContainerName',
type: {
name: 'String'
}
},
hostId: {
required: true,
serializedName: 'HostId',
type: {
name: 'String'
}
},
exitCode: {
required: true,
serializedName: 'ExitCode',
type: {
name: 'Number'
}
},
unexpectedTermination: {
required: true,
serializedName: 'UnexpectedTermination',
type: {
name: 'Boolean'
}
},
startTime: {
required: true,
serializedName: 'StartTime',
type: {
name: 'DateTime'
}
}
}
}
};
}
}

module.exports = ApplicationContainerInstanceExitedEvent;
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ class ApplicationCreatedEvent extends models['ApplicationEvent'] {
name: 'String'
}
},
category: {
required: false,
serializedName: 'Category',
type: {
name: 'String'
}
},
timeStamp: {
required: true,
serializedName: 'TimeStamp',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ class ApplicationDeletedEvent extends models['ApplicationEvent'] {
name: 'String'
}
},
category: {
required: false,
serializedName: 'Category',
type: {
name: 'String'
}
},
timeStamp: {
required: true,
serializedName: 'TimeStamp',
Expand Down
7 changes: 7 additions & 0 deletions lib/services/serviceFabric/lib/models/applicationEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ class ApplicationEvent extends models['FabricEvent'] {
name: 'String'
}
},
category: {
required: false,
serializedName: 'Category',
type: {
name: 'String'
}
},
timeStamp: {
required: true,
serializedName: 'TimeStamp',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class ApplicationHealthPolicy {
* replicas. Default percentage is zero.
* @member {number}
* [defaultServiceTypeHealthPolicy.maxPercentUnhealthyServices] The maximum
* maximum allowed percentage of unhealthy services. Allowed values are Byte
* values from zero to 100.
* allowed percentage of unhealthy services. Allowed values are Byte values
* from zero to 100.
*
* The percentage represents the maximum tolerated percentage of services
* that can be unhealthy before the application is considered in error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class ApplicationHealthPolicyMapItem {
* replicas. Default percentage is zero.
* @member {number}
* [value.defaultServiceTypeHealthPolicy.maxPercentUnhealthyServices] The
* maximum maximum allowed percentage of unhealthy services. Allowed values
* are Byte values from zero to 100.
* maximum allowed percentage of unhealthy services. Allowed values are Byte
* values from zero to 100.
*
* The percentage represents the maximum tolerated percentage of services
* that can be unhealthy before the application is considered in error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ class ApplicationHealthReportExpiredEvent extends models['ApplicationEvent'] {
name: 'String'
}
},
category: {
required: false,
serializedName: 'Category',
type: {
name: 'String'
}
},
timeStamp: {
required: true,
serializedName: 'TimeStamp',
Expand Down
Loading