Skip to content

Commit db89d2d

Browse files
committed
docs
1 parent cb27c30 commit db89d2d

58 files changed

Lines changed: 486 additions & 817 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

ansible/modules/extras/monitoring/pagerduty_alert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
incident_key:
5959
description:
6060
- Identifies the incident to which this I(state) should be applied.
61-
- For C(triggered) I(state) - If there's no open (i.e. unresolved) incident with this key, a new one will be created. If there's already an open incident with a matching key, this event will be appended to that incident's log. The event key provides an easy way to "de-dup" problem reports.
61+
- For C(triggered) I(state) - If there's no open (i.e. unresolved) incident with this key, a new one will be created. If there's already an open incident with a matching key, this event will be appended to that incident's log. The _event key provides an easy way to "de-dup" problem reports.
6262
- For C(acknowledged) or C(resolved) I(state) - This should be the incident_key you received back when the incident was first opened by a trigger event. Acknowledge events referencing resolved or nonexistent incidents will be discarded.
6363
required: false
6464
client:

ansible/modules/extras/monitoring/stackdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
default: 'INFO'
7474
instance_id:
7575
description:
76-
- id of an EC2 instance that this event should be attached to, which will limit the contexts where this event is shown
76+
- id of an EC2 instance that this event should be attached to, which will limit the contexts where this _event is shown
7777
required: false
7878
default: null
7979
event_epoch:

apps/application/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from rest_framework import generics
44
from rest_framework.permissions import IsAuthenticated
55
from rest_framework.views import Response,status
6-
6+
__all__ = ['DBListAPI','DBAuthAPI','DBAuthCreateAPI','DBAuthRemoveAPI','DBRemoveAPI']
77
class DBListAPI(generics.ListAPIView):
88
serializer_class = serializers.DBSerializer
99
permission_classes = [IsAuthenticated]

apps/application/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from django import forms
77
import models
88
from django.utils.translation import gettext_lazy as _
9-
9+
__all__ = ['DBCreateUpdateForm']
1010
class DBCreateUpdateForm(forms.ModelForm):
1111
service_ip = forms.CharField(required=True,max_length=13,label='业务IP')
1212
class Meta:

apps/application/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from django.db import models
77
# Create your models here.
88
#
9+
__all__=['DB','DBDetail','DBUser']
10+
911
class DB(models.Model):
1012
IS_SLAVE=(
1113
(0,u'否'),

apps/application/permission/db.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from django.contrib.auth.mixins import AccessMixin
22
from django.http import HttpResponseRedirect
3+
__all__ = ['DBChangeRequiredMixin','DBAddRequiredMixin','DBAuthRequiredMixin','DBDeleteRequiredMixin']
34
class DBRequiredMixin(AccessMixin):
45
redirect_url= "/permission"
56
permission_required = u'application.all'

apps/application/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import models
22
from rest_framework import serializers
3-
3+
__all__ = ['DBSerializer','DBAuthSerializer']
44
class DBSerializer(serializers.HyperlinkedModelSerializer):
55
host_name = serializers.CharField(source='host.hostname',read_only=True)
66
service_ip = serializers.CharField(source='host.service_ip',read_only=True)

apps/application/views/db.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from django.urls import reverse_lazy
1111
from utils import aes
1212
# Create your views here.
13+
__all__ = ['ApplicationDBCreateView','ApplicationDBListView','ApplicationDBAuthView','ApplicationDBDetailView','ApplicationDBUpdateView']
1314
class ApplicationDBListView(LoginRequiredMixin,TemplateView):
1415
template_name= 'application/db/db.html'
1516

apps/authority/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from rest_framework import generics
44
from rest_framework.permissions import IsAuthenticated
55
from rest_framework.views import Response,status
6-
6+
__all__ = ['UserListAPI','UserRemoveAPI']
77
class UserListAPI(generics.ListAPIView):
88
module = models.ExtendUser
99
serializer_class = serializers.UserSerializer

0 commit comments

Comments
 (0)