Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new: enforcerlog #403

Merged
merged 13 commits into from Nov 1, 2019
38 changes: 38 additions & 0 deletions doc/documentation.md
Expand Up @@ -2370,10 +2370,14 @@ providing a renewed certificate.

##### `collectInfo` `boolean`

_This attribute is deprecated_.

Indicates to the enforcer whether or not it needs to collect information.

##### `collectedInfo` `map[string]string`

_This attribute is deprecated_.

Represents the latest information collected by the enforcer.

##### `createTime` `time` [`autogenerated`,`read_only`]
Expand All @@ -2400,6 +2404,8 @@ Default value:

##### `lastCollectionTime` `time`

_This attribute is deprecated_.

Identifies when the information was collected.

##### `lastSyncTime` `time`
Expand Down Expand Up @@ -2500,6 +2506,38 @@ Last update date of the object.

Geographical zone. Used for sharding and georedundancy.

### EnforcerInfo

Post a new enforcer information.

#### Example

```json
{
"enforcerID": "xxx-xxx-xxx-xxx",
"enforcerInfoID": "xxx-xxx-xxx-xxx"
}
```

#### Attributes

##### `collectedInfo` `string`

Represents the latest information collected by the enforcer.

##### `collectionTime` `time`

Identifies when the information was collected.

##### `enforcerID` `string` [`required`]

ID of the enforcer.

##### `enforcerInfoID` `string` [`required`]

EnforcerInfoID is the ID of the enforcer information. EnforcerInfoID is used to
aggergate the multipart requests.

### EnforcerReport

Post a new enforcer statistics report.
Expand Down
6 changes: 6 additions & 0 deletions enforcer.go
Expand Up @@ -1071,6 +1071,7 @@ providing a renewed certificate.`,
"CollectInfo": elemental.AttributeSpecification{
AllowedChoices: []string{},
ConvertedName: "CollectInfo",
Deprecated: true,
Description: `Indicates to the enforcer whether or not it needs to collect information.`,
Exposed: true,
Name: "collectInfo",
Expand All @@ -1080,6 +1081,7 @@ providing a renewed certificate.`,
"CollectedInfo": elemental.AttributeSpecification{
AllowedChoices: []string{},
ConvertedName: "CollectedInfo",
Deprecated: true,
Description: `Represents the latest information collected by the enforcer.`,
Exposed: true,
Name: "collectedInfo",
Expand Down Expand Up @@ -1151,6 +1153,7 @@ providing a renewed certificate.`,
"LastCollectionTime": elemental.AttributeSpecification{
AllowedChoices: []string{},
ConvertedName: "LastCollectionTime",
Deprecated: true,
Description: `Identifies when the information was collected.`,
Exposed: true,
Name: "lastCollectionTime",
Expand Down Expand Up @@ -1538,6 +1541,7 @@ providing a renewed certificate.`,
"collectinfo": elemental.AttributeSpecification{
AllowedChoices: []string{},
ConvertedName: "CollectInfo",
Deprecated: true,
Description: `Indicates to the enforcer whether or not it needs to collect information.`,
Exposed: true,
Name: "collectInfo",
Expand All @@ -1547,6 +1551,7 @@ providing a renewed certificate.`,
"collectedinfo": elemental.AttributeSpecification{
AllowedChoices: []string{},
ConvertedName: "CollectedInfo",
Deprecated: true,
Description: `Represents the latest information collected by the enforcer.`,
Exposed: true,
Name: "collectedInfo",
Expand Down Expand Up @@ -1618,6 +1623,7 @@ providing a renewed certificate.`,
"lastcollectiontime": elemental.AttributeSpecification{
AllowedChoices: []string{},
ConvertedName: "LastCollectionTime",
Deprecated: true,
Description: `Identifies when the information was collected.`,
Exposed: true,
Name: "lastCollectionTime",
Expand Down